2048266-Excel Part3
2048266-Excel Part3
TO EXCEL FOR
DATA ANALYTICS
TOPIC: LOOKUP FUNCTIONS,
INDEXING AND MATCHING
Indexes
VLookup Function 3
Vlookup Functions
The VLOOKUP (Vertical lookup) function looks for a value in the
leftmost column of a table and then returns a value in the same
row from another column you specify.
Approximate Match
Let's take a look at an example of the VLOOKUP function in
approximate match mode (fourth argument set to TRUE).
Partial Match
The VLOOKUP function supports wildcards for partial matches.
For example, take a look at the VLOOKUP function below.
Explanation: an asterisk (*) matches zero or more characters. The
VLOOKUP function matches the first instance that begins with
"Jess". Use "*"&G2 for an "ends with" match. Use "*"&G2&"*" for a
"contains" match.
Note: the array formula above looks up the salary of James Clark,
not James Smith, not James Anderson.
N/A Error
If the VLOOKUP function cannot find a match, it returns a #N/A
error.
The bonus depends on the market (UK or USA) and the sales
amount. The second argument of the VLOOKUP function does
the trick. If UK, the VLOOKUP function uses Table1, if USA, the
VLOOKUP function uses Table2.
3. Press Enter.
4. Select cell E4, click on the lower right corner of cell E4 and
drag it down to cell E10
Note: if you have Excel 365 or Excel 2021, you can also use
XLOOKUP to perform a horizontal lookup.
Xlookup Functions
If you have Excel 365 or Excel 2021, use XLOOKUP instead of
VLOOKUP. The XLOOKUP function is easier to use and has some
additional advantages.
It can use an exact match as the default search mode, unlike
other search functions on Excel.
It can search for both horizontal and vertical data.
It can perform a reverse search.
It can return entire rows and columns of data instead of a
single value.
Let's Take a look at one such example of using Xlookup.
Maybe this is one step too far for you at this stage, but it shows
you one of the many other powerful formulas Excel has to offer.
Closest Match
To find the closest match to a target value in a data column, use
INDEX, MATCH, ABS, and MIN in Excel.
Choose Function
The CHOOSE function returns a value from a list of values, based
on a position number.
Table Magic
Tables can make VLOOKUP formulas a lot easier. In the example
below, a single VLOOKUP function automatically looks up all
country codes.
Do you know?
“Artificial Intelligence
systems can predict
hypoglycemic events in
diabetics three hours in
advance.”