+ Reply to Thread
Results 1 to 5 of 5

How to count the number of cells that contain a number of words?

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    2

    Unhappy How to count the number of cells that contain a number of words?

    I want to count the number of cells in a column that contain 3 or more words in them. Is there any formula to do that? Let's say the range is from A3 to A21.

  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: How to count the number of cells that contain a number of words?

    Try this formula in B3

    Copy and paste in B3 and drag it down

    =LEN(A3)-LEN(SUBSTITUTE(A3," ",""))+1
    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 Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to count the number of cells that contain a number of words?

    or if you want it in a single cell.. from Alkey len()

    =SUMPRODUCT(--(LEN(A3:A21)-LEN(SUBSTITUTE(A3:A21," ",""))+1>=3))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: How to count the number of cells that contain a number of words?

    More robust is:
    =SUMPRODUCT(--(LEN(TRIM(A3:A21))-LEN(SUBSTITUTE(TRIM(A3:A21)," ",""))>1))
    Just in case there are leading/trailing spaces and/or repeated spaces.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Registered User
    Join Date
    11-15-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to count the number of cells that contain a number of words?

    Worked perfectly, Thanks so much

+ 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] number count two different words
    By m_789 in forum Excel General
    Replies: 3
    Last Post: 09-19-2013, 10:15 AM
  2. count number of duplicate words in 2 cells
    By arfa17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2012, 01:04 PM
  3. Replies: 1
    Last Post: 01-27-2011, 11:17 PM
  4. Replies: 1
    Last Post: 06-15-2006, 04:29 AM
  5. How do I count the number of words in a cell?
    By Phil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2006, 02:20 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