+ Reply to Thread
Results 1 to 2 of 2

Custom Format and Data Validation Q

  1. #1
    John
    Guest

    Custom Format and Data Validation Q

    How can I enter a format for a number that will appear when input as
    follows, and also have a Data Validation that ensures there is 8 numbers
    typed in

    0 1 2 3 4 5 6 7 (not there is a single space between characters)

    I have tried format as Custom # # # # # # # # with a Data Validation of 8 -
    but this doesn't work where the first number is Zero, I assume Excel doesn't
    recognise the Zero and thinks that there is only 7 numbers enter

    I need the spacing between each, thanks



  2. #2
    Tim C
    Guest

    Re: Custom Format and Data Validation Q

    The custom format of

    0 0 0 0 0 0 0 0

    would allow you to display leading zeros. But Excel would still drop them
    from the value, and would not be able to tell the difference between an
    entry with a leading zero's and an entry that was too short.

    You could format as text, and then set data validation based on length, but
    then you would have to manually enter the spaces. You can't format text.

    You could do it with a little programming. If you want to go that route,
    others here would be able to assist you.

    Tim C

    "John" <[email protected]> wrote in message
    news:[email protected]...
    > How can I enter a format for a number that will appear when input as
    > follows, and also have a Data Validation that ensures there is 8 numbers
    > typed in
    >
    > 0 1 2 3 4 5 6 7 (not there is a single space between characters)
    >
    > I have tried format as Custom # # # # # # # # with a Data Validation of
    > 8 -
    > but this doesn't work where the first number is Zero, I assume Excel
    > doesn't
    > recognise the Zero and thinks that there is only 7 numbers enter
    >
    > I need the spacing between each, 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