+ Reply to Thread
Results 1 to 5 of 5

character count in a cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    30

    character count in a cell

    How can I writ ea formula which counts the characters in a cell?
    Does it count the spaces too or not?

    Thank you
    Raphael

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: character count in a cell

    =len(cell)
    and yes it does
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: character count in a cell

    If you want to count spaces, use hum's suggestion. If you want to exclude spaces, try this...
    =LEN(SUBSTITUTE(A1," ",""))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: character count in a cell

    and for good measure

    if you want to count the space only
    =LEN(A1)-LEN(SUBSTITUTE(A1," ",""))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: character count in a cell

    lol good 1 hum

+ 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