+ Reply to Thread
Results 1 to 7 of 7

Data validation and Vlookup issues

  1. #1
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Unhappy Data validation and Vlookup issues

    This thread is solved!!I'm not really sure why but every time I use data validation to create a drop down and then vlookup in another cell to change to matching data based on whats in the drop down form the vlookup SearchCriterion it never seems to pull up the correct reference data. As a way around it I have found that if I make sure the dropdown box or the vlookup cell are not selected and then autofilter the SearchCriterion area and sort it assending that it usualy works after that, but I'm pretty sure that I shouldn't have to do that. Is there something wrong with the way that I have the formula? Here is what I have:

    Cell R14 contains the dropdown.
    Cell Q21 contains this formula: =IF(ISBLANK(R14);"";VLOOKUP(R14;A130:D220;2))
    Cell O21 contains this formula "=IF(ISBLANK(R14);"";VLOOKUP(R14;A130:D220;3))
    Last edited by scottwhittaker2333; 06-05-2010 at 11:37 AM. Reason: This post is solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation and Vlookup issues

    probably your Vlookup() needs a fourth argument to determine type of match


    e.g. VLOOKUP(R14;A130:D220;2;FALSE)

    this looks for an exact match in a not-necessarily sorted list.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Unhappy Re: Data validation and Vlookup issues

    I don't think thats working I tried it and now they return N/A.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation and Vlookup issues

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Data validation and Vlookup issues

    If I did this correctly (my first time attaching a shhet to a forum post) then the attached dummy sheet has the dropdown in light green the vlookups in yellow and if you scroll down a little the vlookup field. it is working correctly for now but only becasue it was autofiltered and sorted.dmys.xls

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation and Vlookup issues

    I added the False parameter to each of the Vlookups (there are 3).... and didn't get any #N/A errors after scrambling the data....


    Also, the references in cell M10 for the Sum and Count functions can be reduced to F66:Y66 instead of indicating each consecutive cell in those ranges.....

  7. #7
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Data validation and Vlookup issues

    You are correct, I realized that It didn't work the first time because I was not on my primary computer that has ms office and was trying to do it with open office that I have on my old computer. Sorry! Anyway its working fine now. Thanks!!!

+ 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