+ Reply to Thread
Results 1 to 5 of 5

Using countifs with date range, and summing values in that range

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    Michigan, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using countifs with date range, and summing values in that range

    Greetings,

    New to the forum and this is my first post so hopefully I don't muck it up too bad

    I have a sheet that has a column with a number of days an issue took, if that issue is still open. If the issue is closed, the column will be blank. I am looking to populate cells, based on a date range, that fall into the following categories:

    Total Issues for Month Still Open Open 0-28 Days Open 29-50 Days Open 50+ Days

    =COUNTIF('2013 Data'!B1:B600,">=08/01/13")-COUNTIF('2013 Data'!B1:B600,">08/31/13") is what I used to count the total number of issues for any given month which works fine.

    What I would like to do is count how many items within the date range, fall into those categories so the table would look like this:

    Capture.JPG


    This is Excel 2010 so I believe that I could use =COUNTIFS but I'm having a hard time with the syntax.

    Column B contains dates
    Column R is the total number of days that an issue was opened.

    Thanks in advance for any help you can lend.

    Brian
    Last edited by bmcoonan; 08-30-2013 at 10:52 AM. Reason: table didn't show good format.

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Using countifs with date range, and summing values in that range

    pls post a sample of the workbook
    pls click the star if you liked my answer!

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using countifs with date range, and summing values in that range

    Try something like this...


    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Date
    Days
    0
    29
    2
    2/23/2013
    82
    Month
    28
    50
    51
    3
    2/2/2013
    59
    1/1/2013
    0
    2
    0
    4
    2/28/2013
    37
    2/1/2013
    0
    1
    2
    5
    2/26/2013
    3/1/2013
    0
    1
    2
    6
    3/4/2013
    63
    7
    3/18/2013
    32
    8
    3/9/2013
    61
    9
    1/29/2013
    29
    10
    1/13/2013
    34


    Enter this formula in F3:

    =COUNTIFS($A$2:$A$10,">="&$E3,$A$2:$A$10,"<="&EOMONTH($E3,0),$B$2:$B$10,">="&F$1,$B$2:$B$10,"<="&F$2)

    Copy across to G3.

    Enter this formula in H3:

    =COUNTIFS(A$2:A$10,">="&$E3,A$2:A$10,"<="&EOMONTH($E3,0),B$2:B$10,">="&H$2)

    Select F3:H3 and copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-30-2013
    Location
    Michigan, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using countifs with date range, and summing values in that range

    Thank you both very much for your quick response. I was able to get this working with =COUNTIFS('2013 Data'!B1:B600,">=02/01/13",'2013 Data'!B1:B600,"<=02/28/13",'2013 Data'!R1:R600,">=0",'2013 Data'!R1:R600,"<=28")

    Much obliged!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using countifs with date range, and summing values in that range

    Good deal. Thanks for the feedback!

+ 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 With Date Range
    By OlYeller21 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2013, 08:32 AM
  2. [SOLVED] COUNTIFS with Date Range
    By whizbee in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-28-2013, 03:44 PM
  3. COUNTIFS - Count all values in a range that equal any value in another range.
    By HeebieGeebie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:05 AM
  4. Summing values for a particular date range and putting into one cell.
    By Catherine01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2013, 01:49 AM
  5. Summing values based on a dynamic date range
    By welchs101 in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 07:00 PM

Tags for this Thread

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