+ Reply to Thread
Results 1 to 4 of 4

totaling text occurence from 1 cell

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    totaling text occurence from 1 cell

    Hi there

    the below is a line of text that appears in a cell

    - (CM) - (FA) - (FA) - (FA) - (FA) - (FA) - (FA) - (FA) - (FA) - (FA) - (FJ) - (FJ) - (FJ)

    I am trying to set up a formula (in a separate column) that counts how many values equal FA.
    I have tried COUNTIF(A1,"*FA*") but that just equals 1.

    any ideas? i'm not sure if the hyphens/brackets are causing a problem or not?

    thanks for help

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    1,986

    Re: totaling text occurence from 1 cell

    Try this,

    =(LEN(A1)-LEN(SUBSTITUTE(A1,"FA","")))/LEN("FA")

    Hope this helps,
    windknife

  3. #3
    Registered User
    Join Date
    05-26-2009
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: totaling text occurence from 1 cell

    Thank you works perfect

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: totaling text occurence from 1 cell

    Please make thread [solved]

    Go to first post -> Edit -> Go advanced -> choose solved from drop down menu

+ 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