+ Reply to Thread
Results 1 to 2 of 2

Custom Validation rules

Hybrid View

  1. #1
    Registered User
    Join Date
    12-01-2006
    Posts
    31

    Custom Validation rules

    Hi all,

    I have a book with multiple sheets, each holding entries based on customer telephone number. I would like to restrict the values that a user is allowed to enter into the ID field (column A). The values i want to allow are:

    - number strings 8 number long, but MUST start as 200, i.e. 20012345,
    20054321, 20029292, etc.
    - the following text strings: 'free' & 'faulty'

    I've been reading up on validation rules on Excel, but cannot see examples that allow something on the lines of what i need, which is a mixture of text and numbers, but the numbers will vary so i cannot specify these before hand.

    Hope some1 can help.

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Select Custom from the Data Validation Allow menu and enter formula:

    =OR(AND(LEFT(A1,3)="200",LEN(A1)=8),A1="faulty",A1="free")

    where A1 is the cell you are placing the validation in.
    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.

+ 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