+ Reply to Thread
Results 1 to 6 of 6

COUNT Incidences of Specific Text within column referencing multiple rows

  1. #1
    Registered User
    Join Date
    10-10-2022
    Location
    Reading, England
    MS-Off Ver
    Microsoft 365
    Posts
    31

    COUNT Incidences of Specific Text within column referencing multiple rows

    Hi,

    I hope someone can help as I'm a little stuck on how to approach this one.

    I would like to know if there is a way I can count the number of times a specific text occurs within a column but by anchoring this only to those rows which match a certain code in the far left column.

    I have a large spreadsheet to which I need to apply this but have attached a simplified example of the problem.

    So, in this example, how can I return how many Oranges are 'Good' or how many Apples are 'Bad'?

    A slick and fast formula would help as I need to calculate around 300,000 rows and do so for around 90 column headings.

    Is there a way to do this?

    Any help would be really appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: COUNT Incidences of Specific Text within column referencing multiple rows

    Something like:

    =LET(a,$A$2:$A$15,b,$B$2:$B$15,ROWS(FILTER(a,(a=$D2)*(b=E$1))))

    Two options are in the file.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 11-10-2022 at 04:37 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,275

    Re: COUNT Incidences of Specific Text within column referencing multiple rows

    Try this:

    =COUNTIFS(A:A,F1,B:B,F2)

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    G
    1
    Fruit Appearance Fruit Oranges
    2
    Oranges Good Appearance Bad
    3
    Oranges Good
    4
    Oranges Bad
    2
    F4: =COUNTIFS(A:A,F1,B:B,F2)
    5
    Apples Good
    6
    Apples Bad
    7
    Apples Bad
    8
    Bananas Good
    9
    Oranges Good
    10
    Bananas Bad
    11
    Bananas Bad
    12
    Oranges Bad
    13
    Apples Good
    14
    Apples Bad
    15
    Oranges Good
    Sheet: Sheet1
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    10-10-2022
    Location
    Reading, England
    MS-Off Ver
    Microsoft 365
    Posts
    31

    Re: COUNT Incidences of Specific Text within column referencing multiple rows

    Thanks Glenn. That will do the trick.

  5. #5
    Registered User
    Join Date
    10-10-2022
    Location
    Reading, England
    MS-Off Ver
    Microsoft 365
    Posts
    31

    Re: COUNT Incidences of Specific Text within column referencing multiple rows

    Wow. I was really expecting it to be WAY more complicated. I MUST learn more about Excel. Thank you for responding so quickly. This will also work I think.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,275

    Re: COUNT Incidences of Specific Text within column referencing multiple rows

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Help! Find sum of the count of specific text appearing in multiple rows.
    By kelloggpdx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2022, 06:08 PM
  2. Replies: 2
    Last Post: 10-07-2019, 06:09 PM
  3. [SOLVED] Using a Referencing a Column to Count 2 different text strings in another Column
    By marshallmr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2019, 02:02 PM
  4. [SOLVED] Count incidences within 1 hour period
    By Ucpaul in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-30-2015, 05:45 PM
  5. [SOLVED] find sum of multiple rows referencing other rows and ignoring text
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2013, 03:29 PM
  6. [SOLVED] Perform calculations for multiple rows based on specific column text
    By justinmirsky in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-31-2013, 08:20 PM
  7. Replies: 3
    Last Post: 02-16-2013, 06:10 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