+ Reply to Thread
Results 1 to 6 of 6

How to use INDEX and MATCH to replace VLOOKUP?

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    How to use INDEX and MATCH to replace VLOOKUP?

    I've got a workbook with 700,000 cells. It uses VLOOKUP in about 110,000 of these cells. This causes the workbook to slow down so much that it almost hangs.

    So I want to replace VLOOKUP with INDEX and MATCH, on the theory that this will use less CPU/Memory.

    I've tried to create a replacement formula using these functions but it is giving me an #N/A.

    I've attached a (small) sample workbook which contains my non-working formula, as well as the original VLOOKUP formulas which do work correctly so that you can see what I'm trying to accomplish.

    Any advice? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,094

    Re: How to use INDEX and MATCH to replace VLOOKUP?

    How about
    =IFERROR(IF(O36="","",INDEX($M$36:$M37,MATCH(D36,$D$36:$D36,0))),"")

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: How to use INDEX and MATCH to replace VLOOKUP?

    Thanks Fluff, that worked! Looks like I had switched the arrays?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,094

    Re: How to use INDEX and MATCH to replace VLOOKUP?

    You're welcome & thanks for the feedback
    The match function can only work on a single row or column

  5. #5
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: How to use INDEX and MATCH to replace VLOOKUP?

    OK thank you!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,094

    Re: How to use INDEX and MATCH to replace VLOOKUP?

    My pleasure

+ 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. Index and Match to replace Vlookup
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2019, 09:45 AM
  2. [SOLVED] INDEX MATCH with MID or REPLACE
    By Emile du Toit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2017, 02:29 PM
  3. Create own formula to replace VLOOKUP or INDEX & MATCH
    By KriswithaK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-01-2017, 05:16 AM
  4. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  5. [SOLVED] using Index match in replace of vlookup
    By srinivasan1965 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2016, 07:58 AM
  6. [SOLVED] How to replace VLOOKUP with INDEX and MATCH
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2014, 04:38 PM
  7. Match and replace with index
    By prayami in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-26-2011, 08:51 PM

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