+ Reply to Thread
Results 1 to 5 of 5

Word count

Hybrid View

lachandl Word count 12-18-2007, 02:29 PM
StephenR =COUNTIF(A1:A10,"word") or... 12-18-2007, 02:41 PM
lachandl I should of been more clear.... 12-18-2007, 02:47 PM
Ron Coderre Word count 12-18-2007, 02:47 PM
PCI Word count 01-01-2008, 08:26 AM
  1. #1
    Registered User
    Join Date
    12-11-2007
    Posts
    5

    Word count

    Is there a formula that can count the times a certain word is in the column?

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    =COUNTIF(A1:A10,"word")

    or

    =COUNTIF(A1:A10,"*word*")

    if you want wildcards.

  3. #3
    Registered User
    Join Date
    12-11-2007
    Posts
    5
    I should of been more clear.
    I need it put the word in cell with the number
    Like 9 No's, 11 Yes

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Word count

    With
    A1: (the word to count....eg Sugar)
    
    If you only want  to the cells if the word is the only contents of the cell,
    D1: Sugar
    D2: Sugar and Spice.
    D3: Sugar
    
    try something like this:
    A2: =COUNTIF(D1:D10,A1)
    
    Count of Sugar is 2.
    ----------------------
    
    OR...if the word will occur only once, but may be embeded in other text
    like this....
    D1: Sugar
    D2: Sugar and Spice.
    D3: Sugar
    
    try something like this:
    A2: =COUNTIF(D1:D10,"*"&A1&"*")
    
    Count of Sugar is 3.
    ----------------------
    
    BUT...If the word may be embedded in other text, 
    and possibly repeated
    like this....
    D1: Sugar and Spice
    D2: Sugar Bears contain no Sugar.
    D3: Spice
    
    Then this formula counts each occurrence:
    A2: =SUMPRODUCT(LEN(D1:D10)-LEN(SUBSTITUTE(UPPER(D1:D10),UPPER(A1),"")))/LEN(A1)
    
    Count of Sugar is 3.
    Note: SUBSTITUTE is case sensitive, hence the UPPER function.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Word count

    Why not to use:
    ="there is = " & COUNTIF(A2:A13,"yes") & " yes"
    assuming data are in column A

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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