+ Reply to Thread
Results 1 to 7 of 7

Count Values between dates and multiple criteria

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    SG
    MS-Off Ver
    2010
    Posts
    12

    Count Values between dates and multiple criteria

    Hi All,

    I am trying to create a excel dash board that will show my work for the past week. I have 2 sheets, the dashboard (sheet 1) and the raw data sheet 2.

    Summary

    1)

    In sheet 2 I have a column of case ID's (A) and adjacent to them I have a column of a "submit date" (B)

    What I need to do is count all the the cases that have a submit date of between 9-29-2013 and 10-5-2013. I should be able to drag this formula to the adjacent cell so
    it will calculate all the cases that have been submitted next week as well.

    2)

    I need a count of all the case id's that are between 9-29-2013 through 10-5-2013 in the UPDATE DAte column (column C) AND the status column is "closed"

    3)

    I need a count of all the cases from 01-01-2011 through 10-5-2013 and the status column is NOT closed.

    Any help will be greatly appreciated!!

    I have attached a sample work book as well
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count Values between dates and multiple criteria

    This is the "form" of the formula to get what you want:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Your data has problems.

    The dates in Raw Data $J$2:$J$328 and Raw Data $O$2:$O$328 are all text and have to be converted to real dates. You can do this by inserting helper columns next to columns J and O.

    In the new column K enter this formula and copy down the length of the data:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Format as yyyy/mm/dd

    Copy column K and Paste Values into column J and then delete the helper column. Repeat this for column P and copy and paste values back into column O.

    The other problem that you have is that the dates have no data for the dates that you have specified. Start your dates earlier in the year and you won't run into errors until the dates don't have data. As it is, you can't check the formulae for correctness because they will always produce an error.

    To eliminate the errors in your final formulae enter the formulae like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    08-27-2013
    Location
    SG
    MS-Off Ver
    2010
    Posts
    12

    Re: Count Values between dates and multiple criteria

    Hi newdoverman,

    Thanks for the help! I figured out how to convert the text dates. Therefore I figured out part one of my question, however part 2 is where I need to find:

    All the cases that have been updated (updated column, Column O) between days 9/25/2013 - 10/5/2013 that have the status (column Q), as closed. is there a spesific formula for this?

    To find all the dates assigned for part 1 of the question, I assigned a start date and a end date column, and then used the sum products formula listed below:

    =SUMPRODUCT((Sheet2!$J$1:$J$337>=G7)*(Sheet2!$J$1:$J$337<=G8))

    Here is an updated view of my worksheet. Thanks again for the help!! I really appreciate it.
    Attached Files Attached Files

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count Values between dates and multiple criteria

    I can't find a column for Opened and assumed that it was column Q but that isn't right. Just change the Q in the formula to the column that is correct and it should work.
    Attached Files Attached Files

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count Values between dates and multiple criteria

    If the data is going to grow and you will be producing reports based on new data and maybe reports on old data as well, perhaps you would want to consider handling your data this way. Instead of SUMPRODUCT, use COUNTIFS as it is quicker and use named ranges based on a table of your data. The ranges will expand with new data.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-27-2013
    Location
    SG
    MS-Off Ver
    2010
    Posts
    12

    Re: Count Values between dates and multiple criteria

    Thanks again! I ended up using the sum product function, and I figured out how to export my data into a csv file so the dates are all formatted correctly.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count Values between dates and multiple criteria

    Very good!

    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. Count rows meeting multiple criteria of multiple values
    By borcimaeh in forum Excel General
    Replies: 4
    Last Post: 08-24-2014, 02:37 PM
  2. count values with multiple criteria
    By briandel7 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-03-2013, 03:47 PM
  3. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  4. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  5. Replies: 1
    Last Post: 04-07-2012, 11:47 AM

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