+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP Function to display entire row of value selected via drop-down list

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    25

    VLOOKUP Function to display entire row of value selected via drop-down list

    Hello,

    I'm trying to use the VLOOKUP function to populate some cells based on my drop-down list selection, however, I'm getting N/A errors.

    Attached is my sample file.

    Sheet 2, which is populated from Sheet 1, contains my list, where I'm extracting the information.

    Sheet 3, cell A1 is where the Drop-down list is selected.

    I'd like cell B2 on Sheet 3 to point to Column C of Sheet 2, depending on my drop-down selection.

    I'm thinking that I must use the VLOOKUP function AND the MATCH function to accomplish this.

    Let me also add that I need the list on Sheet 2 to be a dynamic named range.

    Thanks for reading, and for the help if possible.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: VLOOKUP Function to display entire row of value selected via drop-down list

    Try

    =IFERROR(INDEX(Sheet2!C2:C11,MATCH(A1,Sheet2!D2:D11,0)),"Number does not exist")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: VLOOKUP Function to display entire row of value selected via drop-down list

    try using index/match instead of vlookup...
    =INDEX(Sheet2!$A$2:$D$11,MATCH(Sheet3!$A$1,Sheet2!$D$2:$D$11,0),1)

    =index(range,row,column) so, to return other columns, either change 1 to 2 etc, or, if you have column headings, you can use these in a 2nd match() function so you dont have to manually adjust the index() function.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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