+ Reply to Thread
Results 1 to 14 of 14

Vlookup to search 3rd column instead of fitst

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Vlookup to search 3rd column instead of fitst

    I have a table with 4 columns of data. to lookup from the first column and return from the third, I use: =VLOOKUP(B9,Table1,3,0). If I want to lookup from the fourth column and return the balue in the third column, how would I do this?
    thanks

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Vlookup to search 3rd column instead of fitst

    You should use combination of two funtions: MATCH and INDEX

    send the attachment and I will show You how to do this
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup to search 3rd column instead of fitst

    What is the formula? =match(index(B9,Table1,3,0)) or something like that?

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Vlookup to search 3rd column instead of fitst

    first index then match
    Attached Files Attached Files
    Last edited by tom1977; 12-13-2011 at 05:20 AM.

  5. #5
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup to search 3rd column instead of fitst

    I still cant get it to return the correct value. Based on this formula =VLOOKUP(B9,Table1,3,0) In table1 how do I write it? How do I attach the file?
    thx

  6. #6
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup to search 3rd column instead of fitst

    I see it. Is it within the vlookup formula?

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Vlookup to search 3rd column instead of fitst

    I do not follow...
    please click Go Advanced icon and then Paper Clip icon an attach the file with description of your problem

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Vlookup to search 3rd column instead of fitst

    You can get the nth column from a multi-column range with INDEX like this

    INDEX(Range,0,n)

    ...therefore to lookup a value in the 4th column and return a value from 3rd you can use this version

    =INDEX(INDEX(Table1,0,3),MATCH(B9,INDEX(Table1,0,4),0))
    Audere est facere

  9. #9
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup to search 3rd column instead of fitst

    I now get the #N/A error. If b9 is blank then it returns a value from the correct column.

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Vlookup to search 3rd column instead of fitst

    If you get #N/A with the formula I suggested then that probably means that B9 does't exist in the 4th column of the named range - are you sure there's an exact match?

  11. #11
    Registered User
    Join Date
    12-13-2011
    Location
    israel
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup to search 3rd column instead of fitst

    Here is my version. See sheet1. B16 & C16.
    thanks
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,324

    Re: Vlookup to search 3rd column instead of fitst

    =INDEX(Index!B3:B3600;MATCH(B16;Index!C3:C3600;0))
    I think this works

  13. #13
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Vlookup to search 3rd column instead of fitst

    look at attachment
    Attached Files Attached Files

  14. #14
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Vlookup to search 3rd column instead of fitst

    You said you wanted to look up a value in the 4th column and return a value from the 3rd. That formula looks up the value in the 3rd column and returns a value from the 2nd.....

    If you want to to that while referring to parts of the named range rather than specific columns then that would be as I suggested before except with a 3 in place of the 4 and a 2 in place of the 3, i.e.

    =INDEX(INDEX(Table1,0,2),MATCH(B16,INDEX(Table1,0,3),0))

+ 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