+ Reply to Thread
Results 1 to 5 of 5

Counting amount of times capital word appears in list of rows

  1. #1
    Forum Contributor
    Join Date
    03-05-2015
    Location
    norwich
    MS-Off Ver
    365
    Posts
    107

    Counting amount of times capital word appears in list of rows

    Hi,

    Quick question. Below I have 5 cells of text in range A1:A5, is it possible to count the amount of times the capital word appears? Example below:

    Very stiff extremely high strength dark greenish grey silty CLAY with...
    Dark greenish grey slightly clayey silty fine to medium SAND with...
    Very stiff extremely high strength dark greenish grey silty CLAY with...
    Very stiff extremely high strength dark greenish grey silty CLAY with...
    Dark greenish grey slightly clayey silty fine to medium SAND with...

    The answer would be

    SAND:2
    CLAY:3

    Thanks for any help

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,819

    Re: Counting amount of times capital word appears in list of rows

    You can't do this with formulae. Shall I move this to the VBA section?
    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.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Counting amount of times capital word appears in list of rows

    Is this what you're looking for?

    =SUMPRODUCT(--ISNUMBER(SEARCH(" "&C1&" ",$A$1:$A$5)))

    Untitled.png
    Quang PT

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Counting amount of times capital word appears in list of rows

    Based on the picture from post #3, try this:

    D1 =SUMPRODUCT(--(ISNUMBER(FIND(C1,A$1:A$5))))

    Drag down to D2.

  5. #5
    Forum Contributor
    Join Date
    03-05-2015
    Location
    norwich
    MS-Off Ver
    365
    Posts
    107

    Re: Counting amount of times capital word appears in list of rows

    Thank you for the replies! It worked!

    Much more simpler than the answer I came up with scouring the internet

    =SUMPRODUCT((LEN($a$1:$a$1000)-LEN(SUBSTITUTE($a$1:$a$1000,d1,"")))/LEN(d1))

    if D1 was the capital word I was looking for

+ 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. Counting the number of times a word appears with a twist
    By laurigardner in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-02-2017, 12:37 AM
  2. Counting number of times a word appears across worksheets
    By danltd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2012, 04:33 AM
  3. Counting Formula - Amount of times a value appears
    By m_789 in forum Excel General
    Replies: 4
    Last Post: 12-14-2011, 05:38 AM
  4. Replies: 19
    Last Post: 05-26-2011, 04:15 PM
  5. Replies: 2
    Last Post: 12-09-2009, 06:36 AM
  6. Counting the number of times a word appears 'anywhere' on a page
    By Brother Laz in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-17-2006, 10:10 AM
  7. [SOLVED] Counting the number of times a word appears in a worksheet
    By Jig Bhakta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2005, 11:06 PM

Tags for this Thread

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