+ Reply to Thread
Results 1 to 14 of 14

Count specific words in a cell

  1. #1
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Count specific words in a cell

    I have a cell of data that contains the following:
    Cell A2: plastic straws; plastic cups; plastic soda bottles; plastic cutlery; plastic stirrers;

    I want to count in a different cell how many of the following words are in the above cell:
    straws
    cups
    water
    soda
    cutlery
    stirrers
    cotton
    other
    The answer should be 5.

    Is this possible in Excel?

    Thanks in advance!
    Attached Files Attached Files
    Last edited by mlmsimmons; 11-16-2022 at 11:09 PM. Reason: solved

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Count specific words in a cell

    is that what you want?
    Company 1 Count
    straws
    1
    cups
    1
    soda bottles
    1
    cutlery
    1
    stirrers
    1
    Total
    5

  3. #3
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Re: Count specific words in a cell

    No, I need a single number to be in the cell. Similar to what I highlighted in yellow on the attachment.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,434

    Re: Count specific words in a cell

    An option, please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Count specific words in a cell

    like this ?

    Score for Company 1
    5

  6. #6
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Re: Count specific words in a cell

    Amazing!!!! OK, one more question. What if I wanted straws to be given 2 points and the rest were 1?

  7. #7
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Re: Count specific words in a cell

    Amazing!!!! OK, one more question. What if I wanted straws to be given 2 points and the rest were 1?

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,434

    Re: Count specific words in a cell

    Please try =SUM(FILTER(D3:D10,ISNUMBER(FIND(C3:C10,A2))))
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Count specific words in a cell

    after set your own points Refresh green table

    Company 1
    plastic straws; plastic cups; plastic soda bottles; plastic cutlery; plastic stirrers;
    Plastics Chart
    Value
    straws
    2
    cups
    1
    Score for Company 1
    water
    1
    18
    soda
    3
    cutlery
    11
    stirrers
    1
    cotton balls
    1
    other
    1
    Attached Files Attached Files
    Last edited by sandy666; 11-16-2022 at 10:18 PM.

  10. #10
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Re: Count specific words in a cell

    THANK YOU for such a quick response. And one more question (hopefully this is the last one!) For the first formula you provided...if the cell doesn't include any of the words, how do I get it to show a 0 instead of #CALC! ?

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Count specific words in a cell

    use @username !

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,434

    Re: Count specific words in a cell

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    11-16-2022
    Location
    Charlotte, NC
    MS-Off Ver
    365
    Posts
    6

    Re: Count specific words in a cell

    Thank you Hans and Sandy, I truly appreciate your time and help! THANK YOU!!!!

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,434

    Re: Count specific words in a cell

    You are welcome, thanks for your feedback.

+ 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: 9
    Last Post: 04-01-2020, 03:29 AM
  2. how to count specific words in a cell range
    By 1.zer0 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-08-2015, 12:02 PM
  3. Replies: 1
    Last Post: 01-25-2013, 04:59 PM
  4. Replies: 3
    Last Post: 12-21-2012, 05:33 AM
  5. Replies: 11
    Last Post: 07-11-2012, 02:24 PM
  6. Count if specific words in cell
    By este994 in forum Excel General
    Replies: 2
    Last Post: 04-05-2012, 10:07 AM
  7. [SOLVED] Count 2 (Two) specific words in a cell in a given range
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2006, 12: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