+ Reply to Thread
Results 1 to 3 of 3

Data Validation

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    3

    Data Validation

    Hi,

    I would be most grateful if someone could offer some advice.

    I need to set some kind of validation on columns to only except a 10 digit number and nothing else. For example if a 9 or 11 digit number is added an error message is displayed. Is this possible.

    Kind regards,

    John.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Go to Data|Validation and select Text Length from the Allow list. Then choose Equal to from the Data drop down and then enter 10 in the Length field.

    Click Ok.

    Note: You can create Input and Error messages with Data|Validation to guide the user.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Data Validation

    This may seem picky, but....what do you consider a 9-digit number?

    Must it be 100000000 thru 999999999?
    or
    is this range ok: 000000000 thru 999999999
    or...
    can it contain decimal places, like 123.45678?
    or
    ...what about negative numbers?

    You see where I'm going, right?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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