+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS between Dates

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    COUNTIFS between Dates

    Hi,

    I am having a bad morning and for some reason cant get a COUNTIFS to work, throwing a #VALUE error?

    I have this data as an example, see attached.

    P = PLANNED
    C=COMPLETED
    Cld = CANCELLED

    and I am simply trying to look across all dates for "P","C" & "Cld", Events to determine;

    How many PLANNED events I have, how many COMPLETED, etc... per Quarter.

    For example:
    Report is by Quarter, So Jan-Mar, Apr-Jun, etc

    Jan-Mar Planned = 1
    Completed = 1
    Cancelled = 1

    Apr-Jun Planned = 3
    Completed = 1
    Cancelled = 1

    etc...


    I am sure i have done this before?

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,011

    Re: COUNTIFS between Dates

    Your ranges need to have the same shape (row counts and column counts equal).

    So, you can use this in J8, copied to J8:L13

    =COUNTIFS($D$7:$D$21,J$7,$C$7:$C$21,">="&$I8,$C$7:$C$21,"<"&$I9)+COUNTIFS($E$7:$E$21,J$7,$C$7:$C$21,">="&$I8,$C$7:$C$21,"<"&$I9)+COUNTIFS($F$7:$F$21,J$7,$C$7:$C$21,">="&$I8,$C$7:$C$21,"<"&$I9)

    You would be much better off if you had a table of all events with a date column, some descriptor, and a status (Planned, Completed, Cancelled) and then you could just use a pivot table with no formulas.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: COUNTIFS between Dates

    Oh.....I thought so.

    This works so I am having to COUNTIFS for each Event and Add the results together...... I get it :-)

    I have never tried PIVOTS, i'll have a look into this.... thanks for the advice.

    Simon

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,980

    Re: COUNTIFS between Dates

    Another way:

    =SUMPRODUCT(($D$7:$F$21=J$7)*($C$7:$C$21>=$I8)*($C$7:$C$21<=EOMONTH($I8,0)))

+ 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] COUNTIFS between 2 dates
    By t0mrogers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2021, 05:58 AM
  2. Countifs counting dates with concurrents dates as one
    By tom8635 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2015, 12:38 PM
  3. [SOLVED] COUNTIFS between 2 dates - how to calculate for blank dates
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2014, 12:03 AM
  4. Countifs and dates
    By Cullymore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2013, 10:13 PM
  5. Help with CountIfs looking between dates
    By Whittle82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2013, 02:21 PM
  6. Replies: 3
    Last Post: 07-19-2010, 01:02 PM
  7. COUNTIFS for dates
    By colbyclay in forum Excel General
    Replies: 2
    Last Post: 01-28-2010, 01:43 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