![]() |
Vlookup and Match
Maybe a stupid question .. but what exactly is the difference in function?
|
Vlookup and Match
VLOOKUP allows you to find an entry in a list and return a value that
is a given number of columns away from that entry. This can be a text string or numeric value. MATCH returns an integer number of the row within a range that matches the entry in question. You can next a MATCH function within an INDEX function and perform an operation very similar to a VLOOKUP, because the INDEX function works on a grid-type array of data. |
Vlookup and Match
Thanks Dave. That is what I thought. I use Index, match and offset to
return values outside of the specified array, where vlookup seems limited eg: =OFFSET(INDEX(samplearray,MATCH(C10,col,0),MATCH(C 11,row,0)),-2,-3) but thought I was missing something! "Dave O" wrote: VLOOKUP allows you to find an entry in a list and return a value that is a given number of columns away from that entry. This can be a text string or numeric value. MATCH returns an integer number of the row within a range that matches the entry in question. You can next a MATCH function within an INDEX function and perform an operation very similar to a VLOOKUP, because the INDEX function works on a grid-type array of data. |
Vlookup and Match
VLOOKUP looks in an mxn array, and returns the value in the row that the
lookup value is in, offset by the column offset number. MATCH looks in either an mx1 or 1xn array, and just returns the index of the matched item within the lookup range. -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Newbie" wrote in message ... Maybe a stupid question .. but what exactly is the difference in function? |
Vlookup and Match
An other important difference between vlookup and index&match is that when using vlookup the look-up value needs to be in the leftmost column. Index&match doe not require that. ie vlookup: Col A Col B Col C 1 A HI 2 B Bye 3 C Yes 4 D No If your lookup value was in Col B (lets say "B"), you could not look up values form Col A ("2") You could do it with index & match though. -- Dark_Templar ------------------------------------------------------------------------ Dark_Templar's Profile: http://www.excelforum.com/member.php...o&userid=33279 View this thread: http://www.excelforum.com/showthread...hreadid=542246 |
All times are GMT +1. The time now is 11:15 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com