+ Reply to Thread
Results 1 to 9 of 9

Count # of times a text string appears

  1. #1
    Forum Contributor
    Join Date
    02-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    122

    Count # of times a text string appears

    I need a formula to count how many times a specific text string occurs in a column of data. However the text string will not always be the same it will be based on the text in cell E2. I tried using a countif and search but it didn't come out right.

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Count # of times a text string appears

    If your data is in column A

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count # of times a text string appears

    What do you mean by "based on the value in E2??

    What's in E2 and how can the strings vary from what's in E2? Is the content of E2 always at the start, at the end, or separated by come characteristic characters?

    Better still, can you post a spreadsheet contsining some examples?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    02-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Count # of times a text string appears

    Example.xlsx

    I put the counts in manually.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count # of times a text string appears

    Try

    =COUNTIF(A$1:A$10,D1&"*")

  6. #6
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Count # of times a text string appears

    Okay you need a wild card:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Count # of times a text string appears

    It gives me an issue with the " marks

  8. #8
    Forum Contributor
    Join Date
    02-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Count # of times a text string appears

    This seems to work thank you.

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Count # of times a text string appears

    You're welcome.

+ 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] Count of Times a String Appears in an Array
    By mikealoni in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-07-2014, 11:34 AM
  2. Count the number of times a particular text appears in group of cells
    By L.LEE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2013, 04:16 AM
  3. Count the number of times a specific text appears in column D
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2011, 02:02 PM
  4. Replies: 6
    Last Post: 01-30-2008, 01:30 PM
  5. How to count the number of times a string appears in a column?
    By btsray in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2006, 06:55 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