+ Reply to Thread
Results 1 to 7 of 7

Count specific text inside the cell

Hybrid View

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Count specific text inside the cell

    Hi everyone,

    Can someone guide me how to count specific text inside the cell

    for ex B1 CONTAINS 200+300+400,

    THERE ARE 6 0'S, 2 +'S.

    Now i need formula to do this

    Thanks in advance

    Raj

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,032

    Re: Count specific text inside the cell

    Use this:

    =LEN(B1)-LEN(SUBSTITUTE(B1, 0, ""))

    or you can write in, for example, C1 0, C2 +, C3 text etc.

    And use:

    =LEN($B$1)-LEN(SUBSTITUTE($B$1, C1, ""))

    and pull down
    Never use Merged Cells in Excel

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Count specific text inside the cell

    hi Raj, something like:
    ="There are "&LEN(B1)-LEN(SUBSTITUTE(B1,0,""))&" 0'S, "&LEN(B1)-LEN(SUBSTITUTE(B1,"+",""))&" +'S"

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Re: Count specific text inside the cell

    your formula was amazing, you gave the exact sentence. Not bad you can do so many things in excel.

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Re: Count specific text inside the cell

    May be i did not make myself very clear. straight to the point.

    in B1, Iam etering amount like this, =500+200+300. so B1 adds the amount and becomes 1000. in c1 i want the result. how many "+" is there in b1. now if i put your formula only 0 is appearing.

    i think i explained

    Thanks for the help
    Raj.

  6. #6
    Registered User
    Join Date
    09-12-2012
    Location
    DUBAI
    MS-Off Ver
    2007
    Posts
    65

    Re: Count specific text inside the cell

    did anyone find the answer. i have attached excel sheet.
    Attached Files Attached Files

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,032

    Re: Count specific text inside the cell

    You've attached empty sheet?

+ 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