+ Reply to Thread
Results 1 to 8 of 8

Using VLOOKUP when Data Validation is Applied

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Using VLOOKUP when Data Validation is Applied

    Is there any way to use a VLOOKUP on a column which already has Data Validation applied. If I try this, even though the lookup values match the data validation values 100% it always errors and I end up having to remove the data validation prior to doing the lookup and then re-applying it afterwards which is a bit of a pain.

    Anyone know a way around this?

    Many thanks

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using VLOOKUP when Data Validation is Applied

    Hi.

    In what way does it error? What precisely is the data validation and to which column(s) does it apply?

    Perhaps this is a case where seeing an actual workbook would be of benefit.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using VLOOKUP when Data Validation is Applied

    Common problems when trying to do lookups:

    http://contextures.com/xlFunctions02.html#Trouble
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Using VLOOKUP when Data Validation is Applied

    I want to use a VLOOKUP to populate column D using the data from Sheet 2. Column D uses Data Validation.

    The issue is that if the 'LOOKUP' value in column A doesn't appear on Sheet2, then the VLOOKUP errors.

    So in this example, '1' is not available in column A on Sheet2, therefore the lookup, =IFERROR(VLOOKUP($A2,Sheet2!$A$2:$D$23,4,FALSE),"") errors.

    However if I started the lookup in row 3, because '2' is available on Sheet2, =IFERROR(VLOOKUP($A3,Sheet2!$A$2:$D$23,4,FALSE),"") works.

    Therefore the question is, how can I use a VLOOKUP in this instance so I don't get the error?
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Using VLOOKUP when Data Validation is Applied

    If properly understood, can they?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Using VLOOKUP when Data Validation is Applied

    Um, okay, so that works, but why not a VLOOKUP?

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Using VLOOKUP when Data Validation is Applied

    And I think that the work both of the same formula. I give the check formula.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Using VLOOKUP when Data Validation is Applied

    Strangely both work on the sample sheet, but neither on my main sheet (which I can't upload), so really not sure what is going on there...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 03-06-2015, 01:53 PM
  2. [SOLVED] Fill cell with a value from List Validation applied
    By varunit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2013, 07:30 AM
  3. (A level applied ICT):VBA Cell referencing, VLOOKUP and IF statements in one line
    By kelvin.l1994 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-02-2011, 12:35 PM
  4. VLOOKUP applied to mulitple cells based on dropdown
    By paxile2k in forum Excel General
    Replies: 3
    Last Post: 04-06-2011, 12:21 PM
  5. Validation applied to formula result
    By GlennO in forum Excel General
    Replies: 1
    Last Post: 04-21-2005, 05:06 PM

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