+ Reply to Thread
Results 1 to 3 of 3

data validation-setup a validation rule

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

    data validation-setup a validation rule

    Hi all,

    I need to setup a validation rule that would permit entries like those that follow:

    - 8 digit number that MUST commence with 200 (i.e. 20012345, 20034342,
    etc).

    - The words "Free" , "Faulty" and "Employee"

    I would the user to receive an error message is any of the above is not met, buit no need for a message before entering the data.

    This rule will be applied to a single column (i.e. Column A)

    Would have prefered to send you how far i've got with code, but not sure how to even start this one. Not even using the Excel 2007 Data Validation wizards.

    Hope you can help,

    Million thanks

    D

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Hi,
    Perhaps a worksheet change event would work for you, right click on the sheet tab and selet view code, copy and past the code there...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-01-2006
    Posts
    31
    That works perfectly. However, i would also need to add to that criteria text strings like "Free", Faulty", etc.

    Do i need another instance of the If statement, or can i make it part of the same If arguement?

    Please advise.

    Thanks again

    D

+ 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