+ Reply to Thread
Results 1 to 3 of 3

Cell validation with wildcard match possible?

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    77

    Cell validation with wildcard match possible?

    Hi folks,

    I need to apply cell validation to a column of string data whereby the following entries are allowed:

    "RELIEF"
    "NO USH"
    anything matching the pattern "??-??-??*"

    I found a solution (of sorts) over at Mr. Excel, which in my case would give me the following custom validation formula:

    Please Login or Register  to view this content.

    ...where A1 is the cell being validated.

    As you can see however, this validation formula refers directly to the cell being validated, so I would have to use a unique formula for every cell. To put it mildly that would not be very elegant. Also, because the number of rows in my data constantly varies, I would prefer to simply "set and forget" validation for the entire column.

    I have a feeling I am missing something obvious!

    Any ideas?
    Last edited by blackworx; 09-27-2010 at 06:10 AM. Reason: solved

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Cell validation with wildcard match possible?

    The address of the cell is relative, so if you select say A1:A10 and apply that validation (with A1 active) the address used in each cell's validation will alter (just as it does for conditional formatting). Try it and see!
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    09-02-2009
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Cell validation with wildcard match possible?

    Quote Originally Posted by romperstomper View Post
    The address of the cell is relative, so if you select say A1:A10 and apply that validation (with A1 active) the address used in each cell's validation will alter (just as it does for conditional formatting). Try it and see!
    Spot on.

    Just goes to show it doesn't matter how much you think you know Excel, something as simple as this can come along and stump you even after decades of using it day in, day out.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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