+ Reply to Thread
Results 1 to 4 of 4

Count word found in column of sentences

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2011 Mac
    Posts
    25

    Count word found in column of sentences

    Hi

    I have a column of sentences in Column A, and a column of words in Column B. I wondered if there is a formula I can place in cell i Column C that will give med the number if times the word appears in Column A?

    It would be best if it was not case sensitive.

    I have attached an example file.


    Thanks

    Regards, Njaal, Norway
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count word found in column of sentences

    Try this
    =COUNTIF($A$1:$A$7,"*"&B1&"*")


    A
    B
    C
    1
    The monkey found the donkey rat
    3
    2
    The monkey screamed rats
    2
    3
    A monkey is dead donkey
    2
    4
    Some rats live in houses monkey
    4
    5
    Rats are afraid of donkeys
    6
    No money for the rat
    7
    All the money goes to the monkey
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count word found in column of sentences

    trouble with that it counts rat in all of rat rats and rattan
    if you want a seperate count of whole words only so rats is 2 and rat is 1
    =IF(B1="","",SUMPRODUCT(--ISNUMBER(SEARCH(" "&B1&" "," "&$A$1:$A$10&" "))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    01-16-2014
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2011 Mac
    Posts
    25

    Re: Count word found in column of sentences

    Thank you

+ 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] Counting in one column, based on the word found in another column
    By raynejan in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-28-2013, 01:16 AM
  2. Sum one column if a word is found in EITHER of multiple other columns
    By kmanbob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2013, 03:49 PM
  3. Delete rows or Clear contents below a specific word is found in Column A
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2012, 04:08 PM
  4. How to search for a word in a column and have entire row opaque once word is found
    By copleyr in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-04-2009, 07:11 PM
  5. Upper only first character in first word of sentences
    By cuongvt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-31-2007, 06:03 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