+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS between two dates over multiple columns with additional criteria

  1. #1
    Registered User
    Join Date
    05-28-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    86

    COUNTIFS between two dates over multiple columns with additional criteria

    I'm trying to count the total number of various statuses that occur between two dates.

    Please see attached.

    I've tried the formula =COUNTIFS($C$2:$G$11,">="&K$1,$C$2:$G$11,"<"&L$1,$B$2:$B$11,K2)

    But this only seems to work for one column of dates or when you exclude the last criteria.

    Any help appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: COUNTIFS between two dates over multiple columns with additional criteria

    COUNTIFS requires identically sized arrays -- so you cannot have C2:G11 (10x5) and B2:B11 (10x1)

    You would need to switch to SUMPRODUCT, e.g.:

    =SUMPRODUCT(($C$2:$G$11>=K$1)*($C$2:$G$11<L$1)*($B$2:$B$11=$K2))

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: COUNTIFS between two dates over multiple columns with additional criteria

    Many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to use COUNTIFS and COUNTIF with multiple criteria using dates
    By rowena229 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2020, 02:10 PM
  2. Countifs - multiple columns with the same criteria
    By danici in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2017, 07:07 AM
  3. Weighted Average, Multiple Criteria, Adding additional columns.
    By JeffN1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2016, 11:05 AM
  4. [SOLVED] Countifs on multiple columns & criteria
    By tabkaz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 02:59 AM
  5. Countifs Help with multiple columns in one criteria
    By itobon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2015, 02:03 PM
  6. [SOLVED] countifs needs additional offset criteria
    By Willardio in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-15-2012, 06:50 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1