r/excel • u/leenmi2 • Apr 29 '14
discussion Why use VLOOKUP?
Since I was shown INDEX and MATCH, I can't see the point to VLOOKUP.
Just out of curiosity, is there a common situation where VLOOKUP would be more appropriate? Is VLOOKUP a legacy function that predates the combination of INDEX and MATCH?
I use Excel 2007 and newer.
28
Upvotes
10
u/apaniyam 3 Apr 29 '14
Performance. I run a personal set of spreadsheets that just cracked the 60Mb mark (sure they could be optimised, but it'd take a week that I don't have to de-tangle some of the references). The conversion back to vlookup over index/match saved me a a good 5-6 minutes in processing time for calculations.
3
u/No_Cat_No_Cradle Apr 29 '14
To turn it around, why use INDEX and MATCH together if there's VLOOKUP?
31
u/[deleted] Apr 29 '14
Vlookup is just easier to write.
12
u/Grnwd Apr 29 '14
I completely agree, this is my all time most usefull function: =INDEX(C:C,MATCH(A:A,B:B,0))
Finds the value in column A with the same value in B and returns the Value in C.
11
u/not_last_place 71 Apr 29 '14 edited Apr 29 '14
You are all referring to using VLOOKUP when the "range_lookup" value is set to "FALSE". And in that situation I agree with you; INDEX/MATCH is superior.
However, there are a few situations where you use can VLOOKUP when setting the "range_lookup" value to "TRUE". You can't replace this type of VLOOKUP with INDEX/MATCH.
I've provided a few examples in a workbook which I've linked below. They are 1) looking up a student's grade 2) Determining pricing on a order if your company gives a volume discount 3) Determining the current rent a tenant pays given the current date.
https://dl.dropboxusercontent.com/u/3535032/VLOOKUP%20-%20TRUE.xlsx
Edit: VLOOKUP formulas highlighted in Green (and yellow on the first page to show the wrong way to use it)
Edit 2: I'm wrong. As collapsible_chopstix points out, you can replace these VLOOKUPS with INDEX/MATCH. INDEX/MATCH formulas added to spreadsheet and highlighted in orange.
5
u/jsommer3 20 Apr 29 '14
IMO, vlookup is more 'advertised' than nesting match/index. people were taught how to use the function, rather than combining multiple functions... then they couldve heard about the awesomeness that is index/match. but change is the devil/evil/scary
...i guess nesting functions make them more complicated....but also more powerful & useful....but also scarier
6
u/SOLUNAR Apr 29 '14
speed, you cant write a match and index function faster than a vlookup
2
u/avplol Apr 29 '14
My contribution: I seem to recall index/match has greater performance, in terms of computing power.
2
u/alittlebigger 6 Apr 29 '14
I only use index match when the data is more complex. When I want a quick check to see if a name on one list is listed on another list I always default to Vlookup because do how easy the formula is to type
0
u/[deleted] Apr 29 '14
[deleted] — view deleted comment