Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: serial number

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have a number and i want to count the number of digits which are present in the number.
    ie
    123456 iwant to count how many digits their is ie in this case their is 6.

  2. #2
    Board Regular Brian from Maui's Avatar
    Join Date
    Feb 2002
    Posts
    8,450
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-16 10:14, drag-driver wrote:
    I have a number and i want to count the number of digits which are present in the number.
    ie
    123456 iwant to count how many digits their is ie in this case their is 6.
    http://www.mrexcel.com/board/viewtop...c=5253&forum=2

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Millbank, London, UK
    Posts
    1,790
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    if it's always a number with no decimals, try :

    =IF(ISNUMBER(a1),LEN(a1))

    (where a1 houses my example number)



    _________________
    Hope this helps,
    Chris


    [ This Message was edited by: Chris Davison on 2002-04-16 14:06 ]

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =LEN(123456)

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •