+ Reply to Thread
Results 1 to 8 of 8

Using Index Vs Vlookup

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Using Index Vs Vlookup

    Hi, I am trying to retrieve data from a separate table by matching certain criteria in Excel 2010. I have used Vlookup but without success and now trying to use Index/Match but not completely getting the results. Please see attachment as it shows a better explanation and what the results should be.. Hope it makes sense ......thanks
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Using Index Vs Vlookup

    d2
    =INDEX($I$2:$I$10,MATCH(A2&B2,INDEX($G$2:$G$10&$H$2:$H$10,0),0))
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Using Index Vs Vlookup

    or
    =LOOKUP(2,1/(($G$2:$G$10=A2)*($H$2:$H$10=B2)),$I$2:$I$10)

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Using Index Vs Vlookup

    or use INDEX(MATCH(IF...))

    =INDEX(H$2:I$10,MATCH(A2,IF(B2=H$2:H$10,G$2:G$10),0),2)
    Array formula, use Ctrl-Shift-Enter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,997

    Re: Using Index Vs Vlookup

    Or

    try

    D2=OFFSET($G$1,MATCH(A2&B2,INDEX($G$1:$G$10&$H$1:$H$10,),0)-1,2,,)

    Formula: copy to clipboard
    =OFFSET($G$1,MATCH(A2&B2,INDEX($G$1:$G$10&$H$1:$H$10,),0)-1,2,,)
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: Using Index Vs Vlookup

    Or, another option: Array Formula
    Formula: copy to clipboard
    =INDEX($I$2:$I$10,MATCH($A2&$B2,$G$2:$G$10&$H$2:$H$10,0))
    committed with Ctrl-Shift-Enter rather than just Enter.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    02-22-2013
    Location
    brisbane, australia
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: Using Index Vs Vlookup

    Thanks to nflsales, Special-K, Shukla-Ankur281190 and TMS, All formulas work perfectly....Now I will go and practice them within my spreadsheet. Thanks once again.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: Using Index Vs Vlookup

    You're welcome.

    Just for reference, see the attached updated sample workbook. It has all the five formula for comparison.

    Regards, TMS
    Attached Files Attached Files

+ 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. Vlookup & index
    By BelshazzarSP in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2014, 09:53 PM
  2. [SOLVED] Vlookup or Index?
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2014, 05:17 AM
  3. [SOLVED] Vlookup or index?
    By mido609 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2013, 03:35 AM
  4. Vlookup, index??
    By busterbr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2013, 03:52 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. VLookup, IF, Index help please.
    By aopsahl7 in forum Excel General
    Replies: 1
    Last Post: 10-11-2011, 03:47 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