LOOKUP FUCTIONS
By Aditya Singh
(17thJune,7am – 9am),
Banglore Batch (Group 14)
TOPICS COVERED:-
Intro
Lookup
Vlookup
Hlookup
Xlookup
Trim
Concatenate
Match & Index
INTRO
This function is use to extract data from
source to another row or column against
the cell.
Uses :-
Play a major role in any industry where data
is huge.
Time saving tool.
User friendly .
LOOKUP FUNCTION
This is the first function which was commonly
used in industry for extracting data upto
Excel(2003) version ,but after that there are
other functions introduced which are more user
friendly and easy to use.
Formula :-
=Lookup(Lookup value, lookup vector, result
vector)
note :- Lookup vector and result vector are always
should be locked.
exm :- LOOKUP(L4,$B$2:$B$21,$D$2:$D$21)
VLOOKUP FUNCTION
Now a days this function is most commonly use.
After Excel 2003 version this function came into the
picture and widely use by any industry. In this
function our source data in column vise, from where
we have extract our data.
Formula :-
=Vlookup(Lookup value, table array, column
index num, range lookup)
exm :-
=VLOOKUP($A2,Data1,MATCH(B$1,HEAD1,F
ALSE),0)
FORMULA DETAILS :
LOOKUP VALUE – Column should be locked at
the time of applying of formula.
TABLE ARRAY – It is the whole data which is
selected from the source but without selecting
header. It should be locked or we can naming
them by using Name Manager tool.
COLUMN INDEX NUM – Match(cell of output
header, source header,False or True)
Note :- in cell of header row should be locked, source
header is also locked.
RANGE LOOKUP – Most of the time we use
false/0 to extract exact result in some cases
we use True/1 also for approximate result.
HLOOKUP FUNCTION
IT is same as VLOOKUP but in some cases
when source data are in row wise then we use
this function ,otherwise in most of the cases
we use VlOOKUP function.
Formula –
=Hlookup(Lookup value, table array, column
index num, range lookup)
exm :-
=HLOOKUP(B$13,Data1,MATCH($A14,Head1,0)
,0)
FORMULA DETAILS :
LOOKUP VALUE –Row should be locked at the
time of applying of formula.
TABLE ARRAY – It is the whole data which is
selected from the source but without selecting
header. It should be locked or we can naming
them by using Name Manager tool.
COLUMN INDEX NUM – Match(cell of output
header, source header,False or True)
Note :- in cell of output header column should be
locked, source header is also locked.
RANGE LOOKUP – Most of the time we use
false/0 to extract exact result in some cases
we use True/1 also for approximate result.
XLOOKUP FUNCTION
This function is the most versatile function
now a days, in Excel (2021 or 365) version this
function is available. This function is most easy
to use instead of Vlookup or Hlookup.
Formula :-
= XLOOKUP(Lookup value, lookup
array,return array,[if not found],[match mode],
[search mode])
exm :
=XLOOKUP(J8,$A$2:$A$21,$B$2:$B$21,,1or-1)
FORMULA DETAILS :
LOOKUP VALUE – the value we want to search.
LOOKUP ARRAY – the range or array where we
want to search the value.
RETURN ARRAY – the range or array from which
we want the result.
[IF NOT FOUND] – if the value we want to display
but there is no result then ;
[MATCH MODE] – if no result found :
a. “0” – Exact match ( if no result found)
b. “-1” – Exact or next smaller (if no result found
then next smaller.
c. “1” – Exact or next larger(if no result found then
next larger.
TRIM & CONCATENATE
Trim and Concatenate are parts of VLOOKUP
function , where we use Trim when there is more
space between two text and we use concate or
concatenate to add text of two cells.
Formula for TRIM in VLOOKUP :-
= VLOOKUP(TRIM(LookupValue),Table array, Column
index num, range lookup)
exm :- =VLOOKUP(TRIM(L5),$D$4:$G$13,4,0)
Formula for CONCATENATE in VLOOKUP :-
= VLOOKUP(CONCATENATE(LookupValue),Table array,
Column index num, range lookup)
exm :- =VLOOKUP(CONCATENATE(L3,M3),
$E$3:$H$12,4,0)
MATCH & INDEX
This function is second most user friendly function
after XLOOKUP, why we use this function instead of
VLOOKUP because it is less time consuming and
inputs are limited.
FORMULA :-
=INDEX(Array, row_ num , Column_ num)
exm :-
=INDEX(data,MATCH($M17,emp,0),MATCH(O$15,hea
d,0))
If we want table array by data validation process
exm :-
=VLOOKUP($I17,INDIRECT($H$12),MATCH(K$16,$A$1
:$G$1,0),FALSE)