+ Reply to Thread
Results 1 to 5 of 5

Count Text in a Cell

  1. #1
    JavyD
    Guest

    Count Text in a Cell

    Hello, is it possible to count the number of text in a cell. I need to
    change descriptions on items if the number of text in that description is
    larger than 30. Sort of like a validation I guess. But I just want a
    formula so that I can sort by that formula and change those descriptions that
    have a text value, including spaces, etc, that is greater than 30.

    Thanks.

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

    If A1 contains the word test

    Then putting the formula =LEN(A1) in another cell will return 4

    It also counts spaces.

  3. #3
    PCLIVE
    Guest

    Re: Count Text in a Cell

    Try:

    To count the number of characters in a case, including spaces.
    =len(A1)

    And to change a description based on greater than 30.
    =IF(LEN(A1)>30,"description change","no change")

    Regards,
    Paul

    "JavyD" <[email protected]> wrote in message
    news:[email protected]...
    > Hello, is it possible to count the number of text in a cell. I need to
    > change descriptions on items if the number of text in that description is
    > larger than 30. Sort of like a validation I guess. But I just want a
    > formula so that I can sort by that formula and change those descriptions
    > that
    > have a text value, including spaces, etc, that is greater than 30.
    >
    > Thanks.




  4. #4
    Peo Sjoblom
    Guest

    Re: Count Text in a Cell

    =LEN(A1)


    --

    Regards,

    Peo Sjoblom


    "JavyD" <[email protected]> wrote in message
    news:[email protected]...
    > Hello, is it possible to count the number of text in a cell. I need to
    > change descriptions on items if the number of text in that description is
    > larger than 30. Sort of like a validation I guess. But I just want a
    > formula so that I can sort by that formula and change those descriptions

    that
    > have a text value, including spaces, etc, that is greater than 30.
    >
    > Thanks.




  5. #5
    JavyD
    Guest

    Re: Count Text in a Cell

    Man, that was too easy, made me look foolish. You guys are the best!

    "Peo Sjoblom" wrote:

    > =LEN(A1)
    >
    >
    > --
    >
    > Regards,
    >
    > Peo Sjoblom
    >
    >
    > "JavyD" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello, is it possible to count the number of text in a cell. I need to
    > > change descriptions on items if the number of text in that description is
    > > larger than 30. Sort of like a validation I guess. But I just want a
    > > formula so that I can sort by that formula and change those descriptions

    > that
    > > have a text value, including spaces, etc, that is greater than 30.
    > >
    > > Thanks.

    >
    >
    >


+ 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