+ Reply to Thread
Results 1 to 13 of 13

VLOOKUP and Data Validation

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    VLOOKUP and Data Validation

    Hello all!

    Its been a long time becuase of all your useful help!

    however I am at a quandry and I need your assistance.

    What I am doing:

    I am making a Custodian form for customers based on what software they buy -- each item is categorized as a CLIN Item (X005, X006, etc) Each of that number corresponds to a specific Microsoft Software, however the customer needs to give me the correct Version. So in order to make that easier, I made a drop down menu on the next column to let the customer choose which version they ordered.

    currently I just have a default software list of all the CLINS and I just go through the list and delete what I dont need for each customer, as my CLIN list gets bigger it just becomes more of a hassle.



    I divided my spreadsheet into two worksheets 1) MAIN 2)DATA

    I uploaded the form for you to check out.

    Thanks ahead of time!

    I successfully used VLOOKUP so when I put the CLIN number in (COlumn A) that it shows me the type of software (Column B), however when I try Vlookup to use on the drop down menus -- it does not work.

    Is there a way around it?



    I successfully used VLOOKUP so when I put the CLIN number in Column A, the Type of Software Shows up in COLUMN B
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    should work with a dropdown OK

    see row 9 on attached sheet
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: VLOOKUP and Data Validation

    Further to etafs response you may want to modify the vlookup formula itself to:

    =IFERROR(vlookupbit,"")

    'vlookupbit' is you current formula, this will then leave the cell blank when a match is not found or in your case when the CLIN cell is blank (before an item is selected) otherwise you will have #N/A displayed.
    Say thanks, click *

  4. #4
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: VLOOKUP and Data Validation

    thank you !!!!!!!!!!!!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  6. #6
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: VLOOKUP and Data Validation

    Wait -- ETAF --

    There is nothing in Column C -- that is where i need the versions to be...

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    use this
    =VLOOKUP(A9,DATA!A3:C52,3,FALSE)

    you can add the iferror posted by Harribone also if it does find the entry but nothing is in the version , you will get 0 - what do you want if zero ?
    you can add another IF to test for zero 0 and put what you would prefer to have in column C

  8. #8
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: VLOOKUP and Data Validation

    Right, WHen i do that it adds a zero but I want the drop down list provided in the DATA worksheet under column C's so that I can enter the CLIN ID and the customer can use the drop down based on the Column C list.

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    each CLIN ID only has one option in column C - or do you just want a dropdown list with all the options in ?
    can you give some examples

  10. #10
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: VLOOKUP and Data Validation

    Sure - Please note that " / " denotes each column (A,B,C)

    X005-A/ Windows OS / *Drop Down XP, Windows 7, Windows 8

    ------------------------------------------------------------------

    So when In Column A -- i type "X005-A"

    Column B will use VLOOKUP from the "DATA" worksheet, and see that is "Windows O/S" and Column C will use the dropdown based on the CLIN.

    If you look at the spreadsheet I uploaded, in the DATA worksheet I have data validation set, and each CLIN line has a different dropdown.

    Thanks if you can help me!

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    OK - didn't see the dropdown in C
    probably need to setup a dependant list
    like here
    http://www.contextures.com/xlDataVal02.html

    i'm in UK timezone - so if noone else replies, I will see if can have a look tomorrow
    you probably need to breakout the lists - onto the data sheet -

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,759

    Re: VLOOKUP and Data Validation

    I think you may need a VBA solution otherwise quite a complicated dropdown validation list
    and - and spaces are not allowed in names and so a substitute will need to be used
    i can have a look at, but may take a few days

  13. #13
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: VLOOKUP and Data Validation

    Hi,

    Here is my contribution to your problem. I've taken etaf's file and done some changes (i think this is what you are looking for).
    In Col C of the DATA tab i've removed all the drop down lists. then I've created three example lists which have been give a name for the range (let me know if you need help on naming a range). Then in col C for the first three items you enter the name of the list that should appear for that item.

    On the MAIN tab i've used data validation to show a list where the formula is =INDIRECT(IFERROR(VLOOKUP($A9,DATA!$A$3:$C$52,3,FALSE),""))
    Basically this looks up column C for the chosen item which with the first 3 items is ListA, ListB and ListC and then the INDIRECT bit does some magic and basically tells excel to use this as the range reference for your list.

    Hopefully that made sense and you can apply this method to your work, if you have any issues setting this up then let us know.

    EDIT Forgot to point out that the values in Col C of your DATA tab must match to the name of the range you want to show in you drop down, note you can't have spaces and can't call them something like A1 as that is a cell reference.
    Attached Files Attached Files

+ 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