+ Reply to Thread
Results 1 to 4 of 4

Thread: Excel 2007 new formula: COUNTIFS

  1. #1
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    Excel 2007 new formula: COUNTIFS

    I thought this might make a nice tip... For those of you that have been as frustrated as me when trying to count cells which need to meet multiple criteria, there is a new formula that does this called COUNTIFS. The syntax is =COUNTIFS(range1, criteria1, range2, criteria2, range[n], criteria[n]). Note that this must be saved in .xlsx format!

    For example, if you have a month number in column A and a weekday indication (marked with an X) in column B and you want to count only weekdays in this month, your formula might look like this: =COUNTIFS(A2:A65536,MONTH(TODAY()),B2:B65536,"X"). This will give you the number of cells meeting BOTH criteria, so that if you have cells in another month that are also marked with an X in column B they will not be counted! You can use this in any number of creative ways whenever you need to summarize data meeting multiple criteria. If you have Office 2007, I recommend that you give it a try
    Attached Images
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  2. #2
    Barn Newbie Bindhu is an unknown quantity at this point Bindhu's Avatar
    Join Date
    Feb 2010
    Posts
    3
    Rep Power
    2

    Countifs with the date function within

    Hi,

    I was trying to find the count of the no. of entries for the month, i.e the criteria range would be the date range and the criteria should be a month.
    I tried =countifs(a2:a10, (month(a2:a10)=2))...is this correct...it does not seem to work

  3. #3
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    First, add a column to your list and make it a month. You can use the month formula to accomplish this. The goal being to have a month next to each date.
    The month formula only works on a single cell, so that is probably why your formula is not working.

    Now use the COUNTIF formula to count the number of cells in a certain month. COUNTIFS is mostly used in the case of multiple criteria... Like the number of sales over 100 dollars in a certain month.

    I hope this helps!
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

  4. #4
    Barn Newbie Bindhu is an unknown quantity at this point Bindhu's Avatar
    Join Date
    Feb 2010
    Posts
    3
    Rep Power
    2

    Thanks

    It helped, thanks

+ Reply to Thread

Similar Threads

  1. If formula help in excel
    By Rebelle in forum Microsoft Office
    Replies: 5
    Last Post: April 2nd, 2009, 09:52 PM
  2. Excel Convertor
    By Centurion in forum ASP Development
    Replies: 6
    Last Post: March 24th, 2009, 07:08 AM
  3. Microsoft Excel 2007 Apparent Memory Issue
    By Lauramc in forum Microsoft Office
    Replies: 1
    Last Post: February 12th, 2009, 06:02 AM
  4. Access 2007 Calendar Year wrong
    By coolcatkelso in forum Microsoft Access
    Replies: 3
    Last Post: February 9th, 2009, 08:04 AM
  5. Excel 2003 formula time issue
    By Rebelle in forum Microsoft Office
    Replies: 1
    Last Post: January 16th, 2009, 02:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO