+ Reply to Thread
Results 1 to 3 of 3

Count Number of Characters in a cell?

  1. #1
    Registered User
    Join Date
    01-12-2004
    Posts
    7

    Question Count Number of Characters in a cell?

    Is there a way to check the number of characters that are in a cell, and then if that number isn't what it is supposed to be add leading 0's till it is the correct number?

    We are getting some new accounts sent to us that use an 11 digit number to represent the account number. Some of these have leading 0's in them but excel loses them when sent over. So ideally I'd like to create something that would look at the cell, count the characters and if it is less than 11 add 0's to the front till it is 11 characters.

    Ex: Account number 00123123123

    It's sent to us and now looks like 123123123

    I'd do the formula on the cell and get the original number back 00123123123

    It's usually only missing 1 or 2 0's. It's very rare that the number starts with 3 0's.

    If anyone has any suggestions it's appreceated.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    There are many solution to your problem, one of them is

    select the cells for which you want enforce 11 digit number, right click->format cells-> select custom-> type in 0000000000#, click ok.

  3. #3
    Registered User
    Join Date
    01-12-2004
    Posts
    7
    Worked like a charm. Knew someone would have a solution.

    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