+ Reply to Thread
Results 1 to 3 of 3

Data Validation with multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Data Validation with multiple criteria

    Quote Originally Posted by ncmay View Post
    Hi all,
    I have data :

    A B
    C0360000B038 = ???
    C036000B8
    C036000B10

    Every last character B038 must consist of 12 digits, if last character B8 must consist of 9 digits, and if last character B10 must consist of 10 digits.

    if I have only one conditions I can fill validation data with :
    =LEN(A1)=12
    Error Alert :
    "Must Be 12 digits"

    but its only for one condition how about 3.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Data Validation with multiple criteria

    Hi Hedeyatch,

    When I asked you to read the forum rules via PM, I wasn't really asking. I've removed this post from the end of the thread you replied to and created this new thread.

    Please (re-)read the forum rules and pay close attention to rules 2 and 4.

    Thanks.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Data Validation with multiple criteria

    Perhaps Custom Validation rule of:

    =LEN(A1)=IF(RIGHT(A1,4)="B038",12,IF(RIGHT(A1,3)="B10",10,IF(RIGHT(A1,2)="B8",9,0)))
    where A1 is the cell against which the validation is applied and cell subsequently copied as required
    note: the above would restrict any not B8,B10,B038 entries

+ 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