+ Reply to Thread
Results 1 to 3 of 3

Re: CountIFs with multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    05-04-2011
    Location
    montreal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: CountIFs with multiple criteria

    I'm using the following code to count how many rows in the "Tracker" sheet match the given criteria
    =COUNTIFS(Tracker!$I5:$I516,DATE(YEAR(TODAY()),MONTH(TODAY()),1),Tracker!$F5:$F516,">11:30",Tracker!$F5:$F516,"<12:00")

    However as soon as i change the range "$i5:$i516" to include more cells. the formula stops working.

    I've attatched the actual document i'm working on. Any help would be greatly apreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,694

    Re: CountIFs with multiple criteria

    If you change 1 range you have to change the others to match, i.e. for counting up to row 1000 try

    =COUNTIFS(Tracker!$I5:$I1000,DATE(YEAR(TODAY()),MONTH(TODAY()),1),Tracker!$F5:$F1000,">11:30",Tracker!$F5:$F1000,"<12:00")

    Note that this part

    DATE(YEAR(TODAY()),MONTH(TODAY()),1)

    could be shortened to

    =EOMONTH(TODAY(),-1)+1
    Audere est facere

  3. #3
    Registered User
    Join Date
    05-04-2011
    Location
    montreal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: CountIFs with multiple criteria

    Thanks so much! you're amazing! I love you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1