Results 1 to 3 of 3

Thread: Vlookup help

  1. #1
    Neophyte bkullman's Avatar
    Join Date
    Mar 2011
    Location
    Winnipeg, Manitoba
    Posts
    1
    Articles
    0

    Vlookup help



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Just started using the vlookup function and I am trying to put in a toggle between two names and then use the name in a vlookup function to return a value from a table. I've never used forms control and the documentation on list boxes or combo boxes is not very helpful.

    Any suggestions?

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,189
    Articles
    57
    Blog Entries
    14
    Hi there, and welcome to the forum!

    It sounds like you're stuck on the portion of trying to make sure the users are selecting valid options, rather than actually making the VLOOKUP work right now?

    Form controls can work (I have a basic article on using them here), and can certainly help you with implementing any of them.

    Personally, though, I actually like using data validation lists in many cases. (Data-->Data Validation). Set up a list, and point it to a range of valid options.

    I've attached an example using a Data Validation list to drive a VLOOKUP for you. Let me know if you would like any help in adapting it to your situation, or if you'd like to pursue form controls instead.
    Attached Files Attached Files
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,189
    Articles
    57
    Blog Entries
    14
    Brian emailed me directly, and he is trying to work out how to get the data validation list completed. So in the example file I built:
    • Select the cell where you want the drop-down to appear (in this case B5)
    • Go to Data->Data Validation (if I recall correctly this is true in all versions of Excel)
    • Set "Allow" to "List"
    • Set "Source" to the range that contains the list (in this case =$E$6:$E$8)
    • Make sure "In-cell dropdown" is checked
    • Click OK
    A drop down arrow will appear when you select B5, and you should be able to pull from the list.

    Hope it helps,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •