+ Reply to Thread
Results 1 to 6 of 6

Counting number with multiple criteria

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Counting number with multiple criteria

    I have a spreadsheet used for reporting on issue stats. On a daily basis I take a csv from the issues DB and dump it into a tab within the workbook.

    What I am trying to work out is how to best do a formula to count the number of issues no longer open (status of: Closed, Resolved or Rejected) that happened on a certain date (Sequential Dates column below). The system I am pulling information from has an Updated Date column which covers the last time the record was edited, which isn't necessarily the close date as issues still open are edited regularly.

    These are the columns I am working with:
    • Data - column F
    • Status - column G
    • Reformatted date - column H
    • Sequential Dates - column I
    • Issues - column J


    Data currently returns the updated date in the following format: 20/12/2013 15:14
    Status is the status of the issue (Assigned, Feedback - Testing, Reopen, Roadmap, New, Closed, Resolved, Rejected) - I need to return those that have a Closed, Resolved and Rejected status.
    Reformatted date is using =DAY(F3) & "/" & MONTH(F3) & "/" & YEAR(F3) to get a 20/12/2013 format.
    Sequential date is the dates I'm reporting on

    What I'm trying to get is the total for the issues column.

    I have tried sumproduct, countif and countifs to no avail. I know I need to write a formula that counts how many times the sequential date (column I) shows up in the reformatted date (column H) column AND matches the criteria of "Closed", "Rejected" and "Resolved" from column G. If somebody could please help, that would be wonderful.

    Thank you in advance.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Counting number with multiple criteria

    can you upload a book with sample data !
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Counting number with multiple criteria

    Hi and welcome to the forum

    You may need to use a helper column that, for each row, tests those criteria for you, and then base the count on that?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Counting number with multiple criteria

    attached is a cut down version of the spreadsheet, with only 2 tabs and minimal records (with all confidential things removed).

    So column E & J in the rawdata tab are the ones that I need to get the number of issues on a certain date (column D & I) with the status taken from B & G.
    Attached Files Attached Files

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Counting number with multiple criteria

    welcome to the forum, sangomas.

    first off, Excel recognises dates as integers & time as decimals. to verify, type in 1jan2013 in A1. and 12 pm in B1. Format both cells to General. you will see that A1 is 41275 (meaning 41,275th day from 1 Jan 1900) & B1 is 0.5 (1/2 a day). try to right-click & format your cells in column C to General. you notice that it doesn't turn into a number. that's because you have made it into a text by using the ampersand (&).

    not sure what you're trying to do with Column C. if you just want the date without the time, try:
    =INT(A3)
    since you know Date are integers & Time are decimals, INT takes the integer of the number. if it's about re-arranging from MDY to DMY, simply formatting the cells will do (provided it's a real date of course).

    counts how many times the sequential date (column I) shows up in the reformatted date (column H) column AND matches the criteria of "Closed", "Rejected" and "Resolved" from column G.
    by showing up, do you mean on the same row? i filtered "Resolved" in Column G (you don't have the other 2 in the data) & the only one where both Column H & I are equal is in row 22?
    =SUMPRODUCT((($G$3:$G$100="Closed")+($G$3:$G$100="Rejected")+($G$3:$G$100="Resolved"))*($H$3:$H$100=$I$3:$I$100))

    or if you mean as long as Column G is either of the 3 AND Column H can be found anywhere in Column I, then:
    =SUMPRODUCT((($G$3:$G$100="Closed")+($G$3:$G$100="Rejected")+($G$3:$G$100="Resolved"))*(ISNUMBER(MATCH($H$3:$H$100,$I$3:$I$100,0))))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    12-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Counting number with multiple criteria

    The date/time comes directly from the production tab which is output from the database.

    The full data I am working with is nearly 2,000 rows (at the moment with it increasing on a daily basis).

    Thank you for the tip on the date issue (column C), that worked a treat.

    I ended up using the following formulas (removed the duplicate columns of F, G, H & I):

    Open issues: =SUMPRODUCT(((B:B="Assigned")+(B:B="New")+(B:B="Feedback - Testing"))*(C:C=D3))
    Closed issues: =SUMPRODUCT(((B:B="Closed")+(B:B="Rejected")+(B:B="Resolved"))*(C:C=D3))

+ 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: 3
    Last Post: 03-01-2012, 06:17 AM
  2. show Counting criteria with multiple criteria
    By Peter Harris in forum Excel General
    Replies: 2
    Last Post: 01-29-2009, 09:26 AM
  3. Replies: 0
    Last Post: 08-25-2005, 05:55 AM
  4. Counting Cells with multiple criteria.One criteria supporting wild
    By Azhar Saleem in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 07:06 AM
  5. [SOLVED] Counting Cells with multiple criteria.One criteria supporting wild
    By Azhar Arain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 05:06 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