+ Reply to Thread
Results 1 to 8 of 8

Count occurences with a certain month (column A) and certain text criteria (eg column B)

  1. #1
    Registered User
    Join Date
    09-13-2016
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    5

    Count occurences with a certain month (column A) and certain text criteria (eg column B)

    Hi

    I have a spreadsheet which I want to use for workload tracking and also summarising.

    I am far from experienced in Excel and desperately need help so bear with me.

    The tracking spreadsheet has a date we received an item in dd-m format. I then have another column for due date, date closed. There are then various columns that describe the item in different ways which I have formatted as lists using data validation (for example, 'DECLINED, APPROVED, WITHDRAWN is column H, 'MOVE HOUSE, GO TO HOSPITAL, SEPARATE' or some other descriptor is column I, etc.

    On the summary sheet I want to count the occurences of the various descriptors by month.

    EG, "How many items were closed in August"

    My summary is set up like this
    descriptor
    descriptor
    descriptor as rows

    and then the columns "AUG" "SEP" "OCT" etc

    I can use sumproduct to count the number received or closed in a certain month because that is one column (eg count number received in august, received is a column on the tracker so I used sumproduct)

    I want the summary to count "RECEIVED in MONTH" AND certain descriptor and fill that in on each cell for each month
    eg column B is August, B17 is 'declined in August'

    On the tracking sheet declined is an outcome which is column I, and date received is column A.

    So look to items on sheet 'Tracking' in column A that are 'august', and then look to column 'I' for declined and complete in cell B17 on sheet 'summary'. I have a whole heap of criteria to do this with.

    I have tried sumproduct? But don't know how to get it to work with multiple criteria and text values. Thanks so much.! Please help!!!!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Welcome to Excel Forum.
    It will make it easier to resolve this query, or even know if a solution is possible, if you would upload a sample of your file. Wont take a lot of data, just enough to show where you are having issues with writing the SUMPRODUCT formula. I can imagine that there may be privacy issues with names and/or ID's which could be overcome by simply using Name1, Name2 etc and 123, 124, 125 etc for ID's. To attach a sample workbook click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    09-13-2016
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Thanks so much. Here is my attachment.

    You can see the summary sheet and the fields I want to fill in by month, and what I have managed to do so far.

    I need to hand this over soon and so any help would be greatly appreciated.

    My organisation has a new system without proper reporting so we need to track it manually at the moment.

    I thought I could use SUMPRODUCT with two different criteria but I don't know how.

    By the way I am in Australia hence the dates being like that!

    I will be so happy if anyone can help and try and return in kind when I have greater knowledge.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    I don't see anything about 'Declined', 'Accepted' etc in column I of the 'Tracking' sheet, you may want to upload another sample file. I did see 'CHANGE ACCOMODATION ' in column H so I set up a Sumproduct formula in row 25 of the 'Summary' sheet that I believe speaks to the question that you are asking about using two criteria in a Sumproduct formula. The formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: the formula references B10 of the 'Summary' sheet. I populated row 10 with the first date in each of the months (Aug:Dec) and hid the dates by using a white font. I also changed the formulas in rows 12 and 13 of the 'Summary' sheet.
    Let me know if you have any questions.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-13-2016
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Hi, yes it was just an example. My request was not clear - I am also doing this sleep deprived having just come back from maternity leave with my baby!

    There is a column with outcomes on the tracking sheet that has various outcomes, then other columns with various descriptors.

    I will have a closer look at your response in half an hour or so when I have a bit more time.

    Cheers

  6. #6
    Registered User
    Join Date
    09-13-2016
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Thank you so much for your quick reply!

    So, can you just explain how I build it to count another item? I can't see "change accommodation" in your formula so are you basically telling it to match the entry on the summary cell with the entry on the tracking sheet? I think that is what you were explaining. Brilliant!
    I want to count ALL of those criteria, as you can see there are a lot. So, if I have an item from 1 August and the reason is not "change accommodation" but HEALTH, for example how would I do that. I think with one more I should be good to go. Thank you so much!

    It would also be awesome if the monthly average days to complete (at end of month) would auto calculate but I don't know how to do that.That is not as important though, it can be a month-end task to record the current average.

  7. #7
    Registered User
    Join Date
    09-13-2016
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Ok, it looks like I can just copy it across (?) . So wonderful! Thank you. So is it matching the description in the summary column with the text in the tracking field? Can you also build it into this file, it is the same format but I don't understand it well enough to replicate it. Or also explain the multiple operators in the sum product so I know for next time. Hopefully it will only take you a moment. The descriptors are the same, just the type of work is different. Thank you

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Count occurences with a certain month (column A) and certain text criteria (eg column

    Quote Originally Posted by Leksie5000 View Post
    Ok, it looks like I can just copy it across (?)
    Yes in fact once the actual dates are put in row 8 you can use two formulae for Review Type and Outcome which can both be copied across and down.
    The formula for Review Type is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The formula for Outcome is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Both formulae compare the month of the date in column B of the Tracking sheet to the month of the dates that I entered in row 8. The * can be thought of as being 'AND'. In each formula the second part compares what is in the respective column, Review Type (M) or Outcome (F), on the Tracking sheet to what is in column A of the Summary sheet. Select a cell, especially B21, B25 or B27, of the Summary sheet and run the Evaluate Formula from the Formula tab to see the way the formula works.
    Let me know if you have any questions.

+ 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 unique occurences in column A if column B equals value
    By butler1012 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2014, 09:15 AM
  2. COUNT UNIQUE OCCURENCES IF - in column A based on value of column B
    By butler1012 in forum Hello..Introduce yourself
    Replies: 3
    Last Post: 07-26-2014, 07:59 AM
  3. [SOLVED] Count text in one column Matching single or multiple Criteria from Other Column Excel 2003
    By Jose Macieira in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 06:55 AM
  4. Count number occurences based on criteria Column
    By SamCrome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 04:32 PM
  5. Replies: 2
    Last Post: 07-10-2012, 05:25 PM
  6. Replies: 1
    Last Post: 04-12-2006, 10:10 PM
  7. How do I count the # of unique occurences of a text in a column?
    By Rob Kaiser in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 02:05 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