1 Basic Lookup Examples
1 Basic Lookup Examples
1 Basic Lookup Examples
Tax Rate
or Equal To… Equal To…
Enter Income: $32,650 $0 $2,650 15.00%
The Tax Rate is: 31.00% $2,651 $27,300 28.00%
$27,301 $58,500 31.00%
$58,501 $131,800 36.00%
$131,801 $284,700 39.60%
$284,701 45.25%
Looks up the value in the first column (here D) of the lookup table
Returns the corresponding value in a specified table column (here 3--> F)
The Table Array is the range that contains the lookup table
[Range Lookup] is an optional logical value that specifies whether you want VLOOKUP to find an approximate or an exact mat
Note that an exact match is not required. If an exact match is not found in the fi rst column
of the lookup table, the VLOOKUP function uses the next largest value that is less than the
lookup value. In other words, the function uses the row in which the value you want to
look up is greater than or equal to the row value but less than the value in the next row. In
the case of a tax table, this is exactly what you want to happen.
Many tables are arranged so that the key piece of data, the data that makes a certain row
unique, is in the far-left column. While Excel has many lookup functions, VLOOKUP was
designed for just that situation.
There are four pieces of information that you will need in order to build the VLOOKUP syntax:
The value you want to look up, also called the lookup value.
approximate or an exact match:
The range where the lookup value is located. Remember that the lookup value should always
The column number in the range that contains the return value. For example, if you specify B
Optionally, you can specify TRUE if you want an approximate match or FALSE if you want an e
=VLOOKUP(lookup value, range containing the lookup value, the column number in the range
r to build the VLOOKUP syntax:
he lookup value should always be in the first column in the range for VLOOKUP to work correctly. For example, if your lookup value is in ce
e. For example, if you specify B2:D11 as the range, you should count B as the first column, C as the second, and so on.
match or FALSE if you want an exact match of the return value. If you don't specify anything, the default value will always be TRUE or appro
e column number in the range containing the return value, Approximate match (TRUE) or Exact match (FALSE)).
le, if your lookup value is in cell C2 then your range should start with C.
Date Hired
3/5/1998
4/16/2003
12/1/2010
9/16/1999
3/12/2011
4/15/2009
2/9/2012
3/24/2004
11/12/2003
Income is Greater Than
$0 $2,651 $27,301 $58,501
or Equal To…
Enter Income: $21,566 But Less Than… $2,650 $27,300 $58,500 $131,800
The Tax Rate is: 28.00% Tax Rate 15.00% 28.00% 31.00% 36.00%
Note:
The HLOOKUP function works just like the VLOOKUP function except that the lookup
table is arranged horizontally instead of vertically. The HLOOKUP function looks up the
value in the first row of the lookup table and returns the corresponding value in a specified table row.
HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)
$284,700
39.60% 45.25%
Income is Greater Than
But Less Than… Tax Rate
or Equal To…
Enter Income: $123,409 $0 $2,650 15.00%
The Tax Rate is: 36.00% $2,651 $27,300 28.00%
$27,301 $58,500 31.00%
$58,501 $131,800 36.00%
$131,801 $284,700 39.60%
$284,701 45.25%
Caution:
Values in the lookup_vector must be in ascending order. If the values in the fi rst column are not arranged in
ascending order, the LOOKUP function may return an incorrect value.
Note that LOOKUP (as opposed to VLOOKUP) requires two range references: a range to be
looked in and a range that contains result values. VLOOKUP, on the other hand, uses a
single range for the lookup table, and the third argument determines which column to use
for the result. This argument, of course, can consist of a cell reference.
1st Nails
2nd Screws
3rd Nuts
Finished Bolts
=CHOOSE(2,A2,A3,A4,A5) 2nd
=CHOOSE(4,B2,B3,B4,B5) Bolts
=CHOOSE(3,"Wide",115,"world",8) world
CHOOSE function
Uses index_num to return a value from the list of value arguments. Use CHOOSE to select one of up to 254 values based on the index numbe
For example, if value1 through value7 are the days of the week, CHOOSE returns one of the days when a number between 1 and 7 is used a
Syntax
CHOOSE(index_num, value1, [value2], ...)
Index_num Required. Specifies which value argument is selected. Index_num must be a number between 1 and 254, or a formula or referen
If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value.
Value1, value2, ... Value 1 is required, subsequent values are optional. 1 to 254 value arguments from which CHOOSE selects a value or a
The arguments can be numbers, cell references, defined names, formulas, functions, or text.
Survey Results
Resp. Q1 Q2 Q3 Q4 Q5 Avg. Result
R01 5 5 5 5 4 4.8 Agree
R02 4 4 4 4 4 4 Agree
R03 1 2 2 2 2 1.8 Strongly Disagree
R04 5 4 4 3 4 4 Agree
R05 3 3 2 2 2 2.4 Disagree
R06 1 1 1 1 1 1 Strongly Disagree
R07 5 4 4 4 5 4.4 Agree
R08 1 1 1 1 1 1 Strongly Disagree
R09 5 5 5 5 5 5 Strongly Agree
R10 4 5 5 5 5 4.8 Agree
R11 5 4 4 4 4 4.2 Agree
R12 2 3 4 4 4 3.4 Neutral
R13 5 5 5 5 5 5 Strongly Agree
R14 1 1 1 1 1 1 Strongly Disagree
R15 3 3 3 3 3 3 Neutral
R16 5 5 5 5 5 5 Strongly Agree
R17 4 4 4 5 5 4.4 Agree
R18 4 4 4 5 5 4.4 Agree
R19 4 4 5 4 5 4.4 Agree
R20 2 2 3 3 2 2.4 Disagree
R21 4 4 4 4 5 4.2 Agree
R22 5 5 4 4 4 4.4 Agree
R23 2 1 0 1 2 1.2 Strongly Disagree
R24 4 4 3 3 4 3.6 Neutral
R25 5 5 5 4 5 4.8 Agree
R26 5 5 5 5 5 5 Strongly Agree
R27 1 1 2 2 2 1.6 Strongly Disagree
R28 1 1 1 1 2 1.2 Strongly Disagree
R29 4 4 3 3 2 3.2 Neutral
R30 3 3 2 2 2 2.4 Disagree
R31 3 3 3 4 3 3.2 Neutral
R32 5 5 5 5 4 4.8 Agree
R33 3 4 4 4 4 3.8 Neutral
R34 4 4 4 4 4 4 Agree
R35 1 1 1 1 1 1 Strongly Disagree
R36 1 1 2 1 1 1.2 Strongly Disagree
R37 3 4 3 3 3 3.2 Neutral
R38 3 2 1 1 1 1.6 Strongly Disagree
R39 5 5 5 4 4 4.6 Agree
R40 3 3 3 4 3 3.2 Neutral
R41 3 3 4 4 5 3.8 Neutral
R42 2 3 2 2 3 2.4 Disagree
R43 5 4 5 5 5 4.8 Agree
R44 4 4 4 4 4 4 Agree
R45 5 4 4 4 5 4.4 Agree
R46 3 3 3 3 3 3 Neutral
R47 3 2 2 2 2 2.2 Disagree
R48 4 5 5 5 5 4.8 Agree
R49 5 5 5 5 5 5 Strongly Agree
R50 5 4 4 3 2 3.6 Neutral
R51 2 1 1 2 2 1.6 Strongly Disagree
R52 2 1 1 2 3 1.8 Strongly Disagree
R53 5 5 5 5 5 5 Strongly Agree
R54 2 1 1 1 1 1.2 Strongly Disagree
R55 4 4 4 3 3 3.6 Neutral
R56 4 4 4 5 5 4.4 Agree
R57 5 5 4 3 4 4.2 Agree
R58 2 1 1 1 2 1.4 Strongly Disagree
R59 2 1 0 0 0 0.6 Err:502
R60 2 3 3 4 5 3.4 Neutral
R61 5 5 5 5 5 5 Strongly Agree
R62 2 3 3 3 3 2.8 Disagree
R63 4 4 4 3 4 3.8 Neutral
R64 1 1 1 1 1 1 Strongly Disagree
R65 4 4 3 3 3 3.4 Neutral
R66 2 2 2 1 1 1.6 Strongly Disagree
R67 1 1 1 1 1 1 Strongly Disagree
R68 3 2 3 3 3 2.8 Disagree
R69 3 2 2 3 3 2.6 Disagree
R70 1 1 1 1 2 1.2 Strongly Disagree
R71 5 5 5 4 3 4.4 Agree
R72 1 1 1 1 1 1 Strongly Disagree
R73 1 1 1 1 1 1 Strongly Disagree
R74 3 4 5 5 5 4.4 Agree
R75 3 3 3 4 4 3.4 Neutral
R76 4 4 4 4 3 3.8 Neutral
R77 5 5 5 5 5 5 Strongly Agree
R78 3 3 4 5 5 4 Agree
R79 2 2 2 2 2 2 Disagree
R80 3 2 1 1 1 1.6 Strongly Disagree
R81 5 5 4 4 4 4.4 Agree
R82 3 3 2 2 2 2.4 Disagree
R83 5 5 5 5 5 5 Strongly Agree
R84 5 5 5 5 4 4.8 Agree
R85 4 4 5 5 5 4.6 Agree
R86 1 1 1 1 1 1 Strongly Disagree
R87 1 1 1 1 1 1 Strongly Disagree
R88 4 4 5 5 5 4.6 Agree
R89 1 1 1 2 2 1.4 Strongly Disagree
R90 3 3 3 3 3 3 Neutral
R91 3 3 3 2 3 2.8 Disagree
R92 5 5 5 4 4 4.6 Agree
R93 3 3 2 2 2 2.4 Disagree
R94 5 5 5 5 5 5 Strongly Agree
R95 1 1 1 1 1 1 Strongly Disagree
R96 2 2 3 4 4 3 Neutral
R97 4 4 4 4 4 4 Agree
R98 1 1 1 1 1 1 Strongly Disagree
R99 1 2 2 2 3 2 Disagree
R100 4 3 4 3 3 3.4 Neutral
R101 2 2 2 3 3 2.4 Disagree
R102 4 4 4 4 3 3.8 Neutral
R103 1 1 0 1 2 1 Strongly Disagree
R104 4 4 3 3 3 3.4 Neutral
R105 4 4 4 4 3 3.8 Neutral
R106 4 4 4 5 4 4.2 Agree
R107 1 1 1 2 1 1.2 Strongly Disagree
R108 1 1 0 1 2 1 Strongly Disagree
The example shows survey data from a set of respondents
Column B:F indicate responses on five measures of a specific service
Column G calculates an average that ranges from 1 to 5
Task: To add words to colum H to characterise the overall rating from the respondent
Formula used in cell H4:
=CHOOSE(G4,"Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree")
Student Score Grade Grades
CECILIA ALBERT 96 A 0F
KRISTEN FOREMAN 88 B 65 D
DOROTHY MARTINEZ 76 C 70 C
LUIS FISCHER 93 A 85 B
TERRY SKINNER 89 B 92 A
SHELLEY OSBORN 69 D
MARVIN SCHULTZ 77 C
JOE TRUJILLO 93 A
WILLIAM SKINNER 92 A
CAROLYN CURRY 68 D
CARL ZAMORA 96 A
LUIS CALLAHAN 85 B
JENNY PHILLIPS 73 C
LUCY WASHINGTON 76 C
KAYLA CLARKE 69 D
NELLIE GRAHAM 93 A
VICTOR LANGLEY 74 C
MYRTLE MANN 88 B
MICHAEL COTE 70 C
CAROL HEAD 71 C
ANTHONY MYERS 93 A
BILLY ORR 74 C
The table is built showing the scores where the grading scale changes from one grade to next
The lookup table here needs to be sorted in ascending sequence
0 - 65 --> F
> 65 & < = 70 ---> D
The numeric value of the lookup table must be on the left most column in the lookup table
The third argument specifies the column of the lookup table to be returned
Final argument can be TRUE or omitted
Rep Date Sale Amt Rep Name Rep No.
R5 2/17/2006 181.85 Manny R4
R7 2/17/2006 144.78 Michael R8
R5 2/17/2006 139.13 Manny R6
R3 2/17/2006 155.54 Marc R5
R6 2/18/2006 178.49 Linda R3
R3 2/18/2006 158.21 Marc R7
R8 2/18/2006 158.79 Jerry
R8 2/18/2006 167.6 Jerry
R2 2/19/2006 155.94 #N/A
R3 2/19/2006 101.56 Marc
R4 2/19/2006 163.24 Amar
R3 2/19/2006 177.56 Marc
R6 2/20/2006 155.13 Linda
R4 2/20/2006 161.35 Amar
R4 2/20/2006 147.47 Amar
R3 2/20/2006 174.8 Marc
R7 2/21/2006 174.48 Michael
R6 2/21/2006 195.48 Linda
R5 2/21/2006 123.71 Manny
R8 2/21/2006 161.46 Jerry
R4 2/22/2006 145.62 Amar
R6 2/22/2006 178.17 Linda
R5 2/22/2006 138.67 Manny
R4 2/22/2006 146.97 Amar
R7 2/23/2006 198.95 Michael
R6 2/23/2006 138.55 Linda
R5 2/23/2006 167.43 Manny
R5 2/23/2006 144.65 Manny
R5 2/24/2006 114.16 Manny
R7 2/24/2006 165.31 Michael
R4 2/24/2006 120.93 Amar
R8 2/24/2006 155.12 Jerry
R8 2/25/2006 100.47 Jerry
R5 2/25/2006 149.58 Manny
R8 2/25/2006 171.48 Jerry
R4 2/25/2006 130.36 Amar
R4 2/26/2006 171.03 Amar
R6 2/26/2006 173.68 Linda
R5 2/26/2006 143.69 Manny
R6 2/26/2006 190.95 Linda
R8 2/27/2006 180.91 Jerry
R8 2/27/2006 131.38 Jerry
R4 2/27/2006 153.56 Amar
R4 2/27/2006 110.92 Amar
R7 2/28/2006 122.14 Michael
R5 2/28/2006 176.6 Manny
R5 2/28/2006 167.55 Manny
R3 2/28/2006 123.82 Marc
R3 3/1/2006 168.09 Marc
R4 3/1/2006 162.45 Amar
R5 3/1/2006 159.43 Manny
R6 3/1/2006 120.83 Linda
R3 3/2/2006 112.66 Marc
R3 3/2/2006 104.26 Marc
R4 3/2/2006 108.86 Amar
R7 3/2/2006 182.16 Michael
R4 3/3/2006 117.15 Amar
R7 3/3/2006 104.32 Michael
R6 3/3/2006 115.8 Linda
R5 3/3/2006 175.86 Manny
R4 3/4/2006 115.24 Amar
R7 3/4/2006 191.87 Michael
R7 3/4/2006 114.89 Michael
R8 3/4/2006 117.78 Jerry
Rep Name
Amar In this exercise, Excel finds the exact match in the Lookup table
Jerry
Linda The lookup table has rep numbers and names
Manny This table do not need to be sorted by the rep number field
Marc FALSE is the fourth parameter: close mahces are not acceptable in this case
Michael Since VLOOKUP is very time-intensive, the live formulas can be converted to their c
in the Lookup table
p number field
s are not acceptable in this case
ive formulas can be converted to their current values
RSVP's LAST WEEK RSVP's THIS WEEK
There?
VERONICA HAHN ARTHUR FLETCHER ARTHUR FLETCHER
ELLEN LINDSAY BARBARA BERGER BARBARA BERGER
CECILIA HARMON CANDICE GLENN CANDICE GLENN
DONALD TYLER CECILIA HARMON CECILIA HARMON
NICOLE KELLY CHRIS PAGE CHRIS PAGE
MARCIA ERICKSON CHRISTOPHER DONOVAN #N/A
BARBARA BERGER JOANN BROOKS #N/A
CHRIS PAGE ELLEN LINDSAY ELLEN LINDSAY
CANDICE GLENN JACOB MCINTYRE #N/A
STACY DUNLAP JOHN GARRISON JOHN GARRISON
ARTHUR FLETCHER KATHLEEN RICHARD KATHLEEN RICHARD
KATHLEEN RICHARD MARCIA ERICKSON MARCIA ERICKSON
JOHN GARRISON MYRTLE MOON #N/A
NICOLE KELLY NICOLE KELLY
STACY DUNLAP STACY DUNLAP
VERONICA HAHN VERONICA HAHN
Note
Here the only choice to return is Column 1, which is the third argument
Who dropped from the last week's list?
VERONICA HAHN
ELLEN LINDSAY
CECILIA HARMON
#N/A
NICOLE KELLY
MARCIA ERICKSON
BARBARA BERGER
CHRIS PAGE
CANDICE GLENN
STACY DUNLAP
ARTHUR FLETCHER
KATHLEEN RICHARD
JOHN GARRISON
ShipmentID Destination
SI3049224 51102
2 In cell B3, enter SI3049224, and press Enter. The value 51102 appears in c
5 In cell B3, enter SI3049209. The value in cell B3 is smaller than the smalle
the Shipments table’s first column, so the VLOOKUP formula displays the #
code in cell C3.
6 In cell B3, enter SI3049245. The ShipmentID entered into cell B3 is greate
last value in the table’s first column, so the VLOOKUP formula displays the
in the target column (in this case, the fourth column). Therefore, the incorr
44493 appears in cell C3. The error occurs because the range_lookup argum
to TRUE.
https://support.office.com/en-us/article/vlookup-function-0bbc8083-26fe-
Use VLOOKUP, one of the lookup and reference functions, when you need
=VLOOKUP(Value you want to look up, range where you want to lookup the
Tip: The secret to VLOOKUP is to organize your data so that the value you
3, Shipments, 5, FALSE). Cell B3, which
ipments table, is blank, so the #N/A error
ookup-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1
ence functions, when you need to find things in a table or a range by row. For example, look up a price of an automotive part by the part n
e where you want to lookup the value, the column number in the range containing the return value, Exact Match or Approximate Match –
your data so that the value you look up (part number) is to the left of the return value you want to find (price of the part).
motive part by the part number.