+ Reply to Thread
Results 1 to 8 of 8

Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    Hello,

    I have been struggling to locate a solution for my current predicament. I have spreadsheet of customer service inquiries, which includes both the date created and date last modified in two respective columns.

    I am making a dashboard to breakdown date ranges of the inquiries. I have performed counts of all inquiries from today, all inquiries from this month, and all inquiries to date. Each inquiry also has a status (open or resolved). Now I am working on getting counts for how many inquiries were resolved on the same day for each of those sub-counts (i.e. how many inqueries were resolved today, how many resolved on the same day for this month, and how many total resolved on same day).

    For the cell where I am trying to compute the total inquiries responded to on same day this month, I am running into some issues and am not sure how to add in the criteria for it to count when the created date column equals the last modified date, and the status is set to "resolved."

    Here are the current cells for the dashboard and the corresponding formulas I have to give you a better idea:

    Total inquiries today: =COUNTIF('Raw Data'!J2:J1048576,TODAY())
    Total inquiries this month: =COUNTIFS('Raw Data'!J:J,">="&DATEVALUE(MONTH(TODAY())&"-1"&"-"&YEAR(TODAY())),'Raw Data'!J:J,"<"&DATEVALUE(MONTH(TODAY())+1&"-1"&"-"&YEAR(TODAY())))
    Total inquiries to date: =COUNT('Raw Data'!A2:A1048576)
    Total inquries responded to today: =COUNTIFS('Raw Data'!J2:J1048576,TODAY(),'Raw Data'!D2:D1048576,"Resolved")
    Total inquiries responded to same day this month: ???? NEED HELP!!!
    Total inquiries responded to same day to date: =COUNTIF('Raw Data'!D2:D1048576,"Resolved")


    Please help - and let me know if you need me to clarify anything. Thanks.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    Total inquiries responded to same day this month?
    What does this mean - "on the same day"?
    Could you attached your workbook?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    When an inquiry was resolved/responded to on the same day, it means that the created date column and the last modified date column will be equal to one another, AND the status column will be "Resolved."

    Based on the above formulas, the created date column is column J, last modified is column K, and the status column is column D.

    I cannot attach the workbook unfortunately as the workbook contains sensitive data.
    Last edited by erabinov; 08-14-2013 at 03:16 PM. Reason: spelling

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    OK, I have sanitized the data and have attached the workbook to show you what I am trying to do. Let me know if you have any other questions or points. Thanks for your time!

    CS Dashboard Template Dummy.xlsx

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    CS Dashboard Template Dummy.xlsx
    Please see attached.

  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    This is quite nice. Thank you very much for the help! Just to better understand how this formula is working, do you think you could provide any further breakdown of how the formula is working exactly, or direct me to a good resource on SUMPRODUCT capabilities? I slightly tweaked what you provided but it seems to be working beautifully. I added another condition for it to sum only "Resolved" cases. I have practically no experience with this formula so this great to learn.

    Thanks again.

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

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    For more info on the SUMPRODUCT function see this:

    http://xldynamic.com/source/xld.SUMPRODUCT.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need to use either COUNTIFS or SUMPRODUCT to count rows based on multiple criteria

    Another one here:
    http://www.excelhero.com/blog/2010/0...umproduct.html
    The SUMPRODUCT is very powerfull Excel function.
    It can take array of values and compare (match)/multiply to one/many criteria(s).
    The other way wouild be use CSE (Control+Shift+Enter) formula =SUM(IF(...
    but in this case SUMPRODCUT is sufficient.

+ 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. Replies: 4
    Last Post: 07-20-2012, 07:51 AM
  2. count rows based on multiple criteria
    By tendercombo in forum Excel General
    Replies: 1
    Last Post: 12-23-2009, 11:41 AM
  3. How to count rows based on multiple criteria
    By jackb1117 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2009, 08:36 AM
  4. Count Multiple Entries, Return Multiple Rows, Based On 3 Criteria
    By gtj_global in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2008, 06:40 PM
  5. count rows based on multiple criteria
    By indyman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2007, 03:40 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