+ Reply to Thread
Results 1 to 9 of 9

how to count words in cells (and compare it to quantity before adding it up)

  1. #1
    Registered User
    Join Date
    12-12-2023
    Location
    Finland
    MS-Off Ver
    365 Version 2311
    Posts
    3

    how to count words in cells (and compare it to quantity before adding it up)

    How to count how many times word appears (and compare it to quantity before adding it up). Same word can be multiple times in one cell. Please see example attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,064

    Re: how to count words in cells (and compare it to quantity before adding it up)

    Try this,

    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,970

    Re: how to count words in cells (and compare it to quantity before adding it up)

    One way
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,970

    Re: how to count words in cells (and compare it to quantity before adding it up)

    Building on windknife's solution:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-12-2023
    Location
    Finland
    MS-Off Ver
    365 Version 2311
    Posts
    3

    Re: how to count words in cells (and compare it to quantity before adding it up)

    Thank you for prompt replies. But I think I expressed my problem unclearly. Quantity column is essential part of my problem.
    In example.xlsx row 3 should not be counted because quantity of sets is 0. And line 5 should be counted as 2 because quantity of set "hammer+hammer" is 1. (If quantity of "hammer+hammer" sets would be 2, count of that row should be 4).

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,064

    Re: how to count words in cells (and compare it to quantity before adding it up)

    Try this,
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-12-2023
    Location
    Finland
    MS-Off Ver
    365 Version 2311
    Posts
    3

    Re: how to count words in cells (and compare it to quantity before adding it up)

    perfect, thank you

  8. #8
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,883

    Re: how to count words in cells (and compare it to quantity before adding it up)

    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 anyone who offered you help towards a solution for your issue 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 each of those who offered help.
    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.

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,064

    Re: how to count words in cells (and compare it to quantity before adding it up)

    You are welcome.
    --------------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] Looking For Way to Count Words With Unique Beginning Characters and Then Add the Quantity
    By LucasSp in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-26-2020, 02:16 AM
  2. [SOLVED] Compare cells with words
    By pansovic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-29-2019, 12:50 PM
  3. Replies: 21
    Last Post: 10-10-2019, 03:12 AM
  4. Compare words between two cells and get matching percentage
    By scottgambaro in forum Excel General
    Replies: 3
    Last Post: 02-08-2019, 03:16 PM
  5. [SOLVED] Compare cells with text (words, dates and symbols) to see if the cell has changed
    By brewcitybiz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2013, 11:52 AM
  6. How do I compare text in Excel cells to see if same words are found?
    By pankajsc96 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-12-2013, 09:11 AM
  7. Compare words between two cells for percentage match
    By lkuchel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2010, 07:06 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