+ Reply to Thread
Results 1 to 8 of 8

Data Validation

  1. #1
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Data Validation

    Hello,

    I have a data validation list on cell A2:A11,what i want is not to display the duplicate values (such as apple & oranges
    twice) in the list without changing the values in the validation table..is it possible..second thing is when i check apple
    on A2 only chile and Poland should appear on B2 and the blank when i open the list should be avoided without changing the validation
    list..third-thing is to get the ref# no on c3 on condition if apple matches chile then Ref should be 000011..

    Please check the attached file for further ref

    Thanks In Advance,
    Ak
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data Validation

    You could use defined name ranges for each fruit to pick only relevant countries in the drop-down list. A simple Vlookup after that can pick the code.

    See attached. Is this something you can work with?

    This thread too might prove useful in case you do not want to make separate named ranges for each fruit.

    http://www.excelforum.com/excel-gene...l-entries.html
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Data Validation

    Thanks Ace it works..but i want to know whether i can ignore the duplicate values and blank cells in the list or not..and the link
    you have shown is a good example how to do that but i didn't get how you did it..the validation list in f3 shows only =a..

    Thanks,
    Ak

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data Validation

    Yes you could ignore the duplicate and blank values.

    The =a (in the other thread) is a defined name range called 'a' which uses the 'offset' & 'match' function to determine the drop down list. Have a look in the name manager.

    =OFFSET(Sheet1!$A$1,1,MATCH(Sheet1!$F$2,Sheet1!$B$1:$D$1,0),COUNTA(OFFSET(Sheet1!$A:$A,0,MATCH(Sheet1!$F$2,Sheet1!$B$1:$D$1)))-1,1)

  5. #5
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Data Validation

    Thanks Ace it works..

    Thanks,
    Ak

  6. #6
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Data Validation

    Ace validation seems not to ignore duplicate values..how is it possible..

    Thanks,
    Ak

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data Validation

    You do not need the duplicate values in your list at all. You can simply delete them and have a single list for the fruits.

    With the defined name ranges in place for each fruit, the second drop-down validation (for countries) will pick only relevant lists and no duplication of fruit names is required.

    Does that make sense?

  8. #8
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Data Validation

    Thanks Ace...

+ 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