+ Reply to Thread
Results 1 to 7 of 7

Index Match or Vlookup to return values?

  1. #1
    Registered User
    Join Date
    11-29-2007
    Posts
    4

    Index Match or Vlookup to return values?

    I have a workbook with multiple sheet within it.

    In Sheet 1, Column B, I want it to contain a name which is on another sheet. The problem is that The name is associated with a particular "location" number which is on a separate sheet.

    The best I can explain:

    On sheet 1 cell B2, I want excel to look at cell C2 to get the reference point then, look to sheet 2, cell A1 and where it matches sheet 1 cell B2, return the value from sheet 2 cell C1.

    I have seen this done before using Index command but for the life of me, I cannot figure it out.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Could you post an example?

  3. #3
    Registered User
    Join Date
    11-29-2007
    Posts
    4

    Index

    Sample spreadsheet.
    Attached Files Attached Files

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    This VLOOKUP function should help.
    =VLOOKUP(C2,Sheet3!$A$2:$C$20,3)

  5. #5
    Registered User
    Join Date
    11-29-2007
    Posts
    4

    VLookup

    That wold work if the list stayed the same but, the names and the locations could move on the list depending on who is handling them.

    Here is the working model, you will see where it is not doing what I need it to do.
    Attached Files Attached Files

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If you use VLOOKUP you need a final argument of FALSE or zero, i.e. in B2 copied down

    =VLOOKUP(C2,BOB!$A$2:$C$61,3,0)

    or you can use INDEX/MATCH like

    =INDEX(BOB!$C$2:$C$61,MATCH(C2,BOB!$A$2:$A$61,0))

  7. #7
    Registered User
    Join Date
    11-29-2007
    Posts
    4

    Index, Match

    Thank You!!! That was what I needed.

+ 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