+ Reply to Thread
Results 1 to 2 of 2

Validation rule - custom 5 digits w/ leading zeroes

  1. #1
    jennifer
    Guest

    Validation rule - custom 5 digits w/ leading zeroes

    I am having trouble creating a validation rule for cells. I would like only
    6 digit numbers to be entered. However, when using CUSTOM (000000) I can't
    seem to get it to work. Any thoughts?

    012345
    234567

    It works for 234567 but not for 012345

  2. #2
    N Harkawat
    Guest

    Re: Validation rule - custom 5 digits w/ leading zeroes

    First change the cell to format-->Text
    Then under data--> Validation
    select custome from drop down choices and enter
    =len(trim(a1))=6

    Now cell A1 will only accept texts = 6 characters If you need space as a
    character then remove "trim" from the formula


    "jennifer" <jennifer@discussions.microsoft.com> wrote in message
    news:7AD4F54A-5CC3-4819-A3DC-836A1E2C8074@microsoft.com...
    >I am having trouble creating a validation rule for cells. I would like
    >only
    > 6 digit numbers to be entered. However, when using CUSTOM (000000) I
    > can't
    > seem to get it to work. Any thoughts?
    >
    > 012345
    > 234567
    >
    > It works for 234567 but not for 012345




+ 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