+ Reply to Thread
Results 1 to 8 of 8

Countifs with Multiple Criterion

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Post Countifs with Multiple Criterion

    I need help writing a formula that will count the entries in w2:w2500 from sheet 2 if 3 criterions are met.

    1st does column b2:b2500 on sheet 2 =Ordered
    2nd is the date in column f2:f2500 on sheet 2 =>c5 (date from sheet 1)
    3rd is the date in column f2:f2500 =<d5 (date on sheet 1)

    If criteria are met count w2:w2500 (note: there will be some empty cells in Column W)

    Just so you know I tried this but the count was not accurate
    =COUNTIFS('Sheet 2'!$W$2:$W$2504,"<>",'Sheet 2'!$F$2:$F$2504,"=<$c5",'Sheet 2'!$F$2:$F$2504,"=>$d5",'Sheet 2'!$B$2:$B$2504,"=Ordered")

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Countifs with Multiple Criterion

    Amend what you have to be

    =COUNTIFS('Sheet 2'!$W$2:$W$2504,"<>",'Sheet 2'!$F$2:$F$2504,"<="&$c5,'Sheet 2'!$F$2:$F$2504,">="&$d5,'Sheet 2'!$B$2:$B$2504,"Ordered")

  3. #3
    Registered User
    Join Date
    10-26-2011
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Countifs with Multiple Criterion

    Still gives me a 0.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Countifs with Multiple Criterion

    I just tested it on a quick mock up and it correctly counted based on the criteria.
    Any chance the cells in column B containing "Ordered" might have leading/trailing spaces?

  5. #5
    Registered User
    Join Date
    10-26-2011
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Countifs with Multiple Criterion

    I copied your formula and "ordered" is selected from a drop down box so there shouldn't be any spaces. I will try it again or something else. Thanks.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Countifs with Multiple Criterion

    I would next examine the dates. Are they numeric values?

  7. #7
    Registered User
    Join Date
    10-26-2011
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Countifs with Multiple Criterion

    Cutter; your 1st post worked. I guess I didn't copy the complete formula or something. THANKS for your help and time!

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Countifs with Multiple Criterion

    You're welcome. I'm glad you got it working.

+ 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