+ Reply to Thread
Results 1 to 6 of 6

conditional formatting to count characters in a cell

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010
    Posts
    2

    conditional formatting to count characters in a cell

    Hello everybody!
    I'm desperate for help since I was looking for the solutions for hours today.
    I have a cell with a key (example > fgrjwyd%fnksdf%) and then equal a text (example > read your book)

    So in this example the cell contains>
    fgrjwyd%fnksdf%=read your book

    How can I do to count the characters of the text only ? (limit would be the = sign)

    Thank you!

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: conditional formatting to count characters in a cell

    I think you want

    =LEN(A2)-FIND("=",A2)

    A2 contains the "fgrjwyd%fnksdf%=read your book" and result is 14 (the length of "read your book")

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: conditional formatting to count characters in a cell

    Hi,

    So you want the # of characters before the "="?

    =FIND("=",A1,1)-1

    HTH
    Steve

  4. #4
    Registered User
    Join Date
    05-31-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: conditional formatting to count characters in a cell

    Hello Cutter, SteveG,

    First of all, thank you both for your quick help !!! It is very appreciated!
    Yes, that's what I needed! the answer in that case is 14.
    So cool, you rock

  5. #5
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: conditional formatting to count characters in a cell

    lol, Like Steve, I calculated the KEY on the left of the = sign.

    >_<

    =SEARCH("=",G36)-1

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: conditional formatting to count characters in a cell

    You're welcome. Don't forget to mark your thread as SOLVED (for instructions click on Forum Rules @ top of page - see rule #9).

+ 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