Closed Thread
Results 1 to 4 of 4

Count number of times a specific text appears for a certain date

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Count number of times a specific text appears for a certain date

    Hi,

    Following on from a similar post I made yesterday. What I am looking to do is count the number of times a specific value is found for a given date, where the specific date can be found within different rows of the column.

    Unless you guys come up with a totally better method, for now as shown in the below screenshot (full spreadsheet also attached). I created a separate table on the right starting from column G, where I count the number of times each event (Major, Minor or blank) occurs for a given date, so 11/11/2019 as shown within cell G2 and G3.

    I know I can do a COUNTIF but I don't know how to do the formula for example to count the number of times the text "Major occurs for all rows which are listed as date "11/11/2019". As shown in my example below, "Major" occurs 4 times across the 2 columns which are dated as 11/11/2019. I also want the formula to count the total of blank cells and not just ignore them.

    I have manually entered for now the first 4 rows on the right table to show how the results should be populated based on the table on the left. I want to enter formulas within cells H2 to J14 (providing this is the method to do so haha!) to count the total for me.

    Capture3.PNG


    - Is there a certain function(s) that works best?
    - Is there a neater way to go about this then the table I created?
    - Also for the blank cells, is whatever formula you guys suggest going to be able to pick the blank cells up and count it to the total?

    I would appreciate if someone could help me please and happy to clarify anything if I am unclear
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Count number of times a specific text appears for a certain date

    In H2 copied across and down:

    =SUMPRODUCT(($B$2:$E$15=H$1)*($A$2:$A$15=$G2))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Count number of times a specific text appears for a certain date

    This is virtually the same as the thread you posted yesterday, but now you show that some dates may be duplicated and not in the same sequence. Instead of giving us your problem in dribs and drabs, it would be better to give us all of it in the beginning, so that we don't waste our time giving you solutions to partial problems.

    Pete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Count number of times a specific text appears for a certain date

    As this would appear to be a duplicate, pretty much, I'm closing the thread.

    If you have any further questions, post here: https://www.excelforum.com/excel-for...iven-date.html

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-01-2018, 03:24 PM
  2. Count number of times a specific word appears
    By csepesy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2017, 09:48 PM
  3. count the number of times a number appears in a specific range
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:01 AM
  4. Count number a times a specific value appears consecutively.
    By kww0027 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 06:17 PM
  5. Count the number of times a specific text appears in column D
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2011, 02:02 PM
  6. How to count the number of times a date appears in a column
    By smellsgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2010, 06:35 AM
  7. [SOLVED] count the number of times a specific word appears in a column
    By BAR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 12:10 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