Excel Basics
Excel Basics
XLOOKUP, LOOKUP
FILTER, SWITCH
XMATCH
Excel Basics #6
Len
98 MS 365 Excel Basics 06: Mastering Excel Lookup: XLOOKUP, FILTER, XMATCH, LOOKUP, SWITCH Functions!
XLOOKUP FILTER
lookup a value from a cell One Lookup Value, Return Multiple Items
Lookup a column
Lookup a row XMATCH
Lookup a cell reference Comapare Two Lists
Lookup a range
Perform exact match lookup LOOKUP
Perform exact match or next smaller Binary Search - REALLY fast
Perform exact match or next bigger Use when lookup table first column sorted A-Z
Perfom wildcard lookup like all tax tables, commision tables & rate tables
Perform binary search Benefit is that formula is easier and faster to create
Search first-to-last
Search last-to-first SWITCH
& much more! Can lookup anything: formulas, tables,
ask with:
OKUP
H X
X
X
Len
100 MS 365 Excel Basics 06: XLOOKUP, FILTER, XMATCH, LOOKUP, SWITCH Functions to Master Any
XLOOKUP
lookup a value from a cell
Lookup a column
Lookup a row
Perform exact match lookup
Perform exact match or next smaller
Perform exact match or next bigger
Perfom wildcard lookup
Perform binary search
Search first-to-last
Search last-to-first
Lookup a cell reference
Lookup a range
X
& much more!
FILTER
One lookup value, return multiple items
XMATCH
Return relative position of an item in a list
Comapare Two Lists
LOOKUP
Binary Search - REALLY fast
Use when lookup table first column sorted A-Z
like all tax tables, commision tables & rate tables
Benefit is that formula is easier and faster to create
SWITCH
Can lookup anything: formulas, tables,
to lookup values from an array
rizontal range
What happens if we ask AI to help us build Excel solutions?
I would like an Excel formula that can assign an "A+" grade to 95% or higher, an "A" grade to less than 95%
and greater than or equal to 90%, a "B+" grade to less than 90% and greater than or equal to 85%, a "B"
grade to less than 85% and greater than or equal to 80%, a "C+" grade to less than 80% and greater than or
equal to 75%, a "C" grade to less than 75% and greater than or equal to 70%, a "D+" grade to less than 70%
and greater than or equal to 65%, a "D+" grade to less than 65% and greater than or equal to 60%,and a "F"
grade to all other scores that are less than 60%.
de to less than 95%
qual to 85%, a "B"
and greater than or
de to less than 70%
ual to 60%,and a "F"
When you ask AI a question about building a solution in Excel, AI WILL give you an answer, but the a
For example, if you ask a reasonable question like this:
I would like an Excel formula that can assign an "A+" grade to 95% or higher, an "A" grade to less than 95% and greater th
to less than 90% and greater than or equal to 85%, a "B" grade to less than 85% and greater than or equal to 80%, a "C+"
greater than or equal to 75%, a "C" grade to less than 75% and greater than or equal to 70%, a "D+" grade to less than 70%
65%, a "D+" grade to less than 65% and greater than or equal to 60%,and a "F" grade to all other scores that are less than
n "A" grade to less than 95% and greater than or equal to 90%, a "B+" grade
% and greater than or equal to 80%, a "C+" grade to less than 80% and
equal to 70%, a "D+" grade to less than 70% and greater than or equal to
grade to all other scores that are less than 60%.
Err:509
1) The lookup_array does not need to be sorted in a particular order, unless you use the search_mode binary options.
2) When you use the match_modes Exact match, Exact match or next smaller, or Exact match or next bigger, if there are NO duplicat
the search_modes Search first-to-last and Search last-to-first yield the same results. Said a different way: when there are NO dupl
the order of records in the lookup table and the direction of the search have no effect on the result.
3) In situations where there are duplicates in the lookup_array, the direction of the search, either Search first-to-last or Search last-to
results. For example, in a sales table with many duplicate sales rep names and a sorted date or invoice column, you could look up
by a sales rep (Search first-to-last) or the last sale made by a sales rep (Search last-to-first). In situations like this, the order of reco
the direction of the search directly effect the value that is returned by the XLOOKUP function.
4) If you have typical tax or commission or sales discount lookup table, where the first column in the lookup table is sorted A-Z and th
use the LOOKUP function rather than the XLOOKUP function because it 1) calculates more quickly because of its binary search and
2) It takes less time to create the formula because it needs only 2 arguments, whereas the XLOOKUP requires 5 or 6 arguments.
=
d A-Z
d Z-A
A B C D E F G H I
1
2 When there are no duplicates, order of records and search direction has no effect on returned value:
3
4 Search First To Last Search Last To First
5 Exact Match Exact Match
6 Err:509 Err:509
7 Product Carlota Product Carlota
8 Price 32 <= Same => Price 32
9
10 Product Price Product Price
11 Quad 43 Quad 43
12 Carlota 32 Carlota 32
13 Sunshine 28 Sunshine 28
14 Aspen 25 Aspen 25
15
16 Exact Match or Next Smaller Exact Match or Next Smaller
17 Err:509 Err:509
18 Sales 1250 Sales 1250
19 Price 0.2 <= Same => Price 0.2
20
21 Sales Discount Sales Price
22 0 0 0 0
23 2500 0.4 1000 0.2
24 1000 0.2 500 0.1
25 500 0.1 2500 0.4
26
27 Exact Match or Next Larger Exact Match or Next Larger
28 Err:509 Err:509
29 Sales 1250 Sales 1250
30 Price 0.4 <= Same => Price 0.4
31
32 Sales Discount Sales Price
33 0 0 0 0
34 2500 0.4 1000 0.2
35 1000 0.2 500 0.1
36 500 0.1 2500 0.4
37
A B C D E F G H I J K L M N
1
2 When there are duplicates, the order of records and search direction can effect the returned value:
3
4 Search First To Last Search First To Last Search Last To First
5 Goal: Get first sale for SalesRep Goal: Get first sale for SalesRep Goal: Get last sale for SalesRep
6 Exact Match Exact Match Exact Match
Order of Search
7 Err:509 Err:509 records in Err:509 direction
table changes, changed, so
8 SalesRep Sioux SalesRep Sioux so result is SalesRep Sioux result is
9 Sales 640.56 Sales 1589.69 different Sales 474.26 different
10
11 Date SalesRep Sales Date SalesRep Sales Date SalesRep Sales
12 10/3/2021 Sioux $640.56 10/3/2021 Chin $1,706.02 10/3/2021 Sioux $640.56
13 10/3/2021 Chin $1,706.02 10/4/2021 Sioux $1,589.69 10/3/2021 Chin $1,706.02
14 10/4/2021 Sioux $1,589.69 10/5/2021 Chin $786.13 10/4/2021 Sioux $1,589.69
15 10/4/2021 Chin $695.31 10/4/2021 Chin $695.31 10/4/2021 Chin $695.31
16 10/5/2021 Sioux $474.26 10/3/2021 Sioux $640.56 10/5/2021 Sioux $474.26
17 10/5/2021 Chin $786.13 10/5/2021 Sioux $474.26 10/5/2021 Chin $786.13
18 Note: The match_modes Exact match or next smaller and Exact match or next larger behave the same as the Exact Match example above.
Goal: Lookup product price using "Exact match lookup"
Product Price
Quad 43.95
Match?
Retrieve
Lookup Table:
ProductID Product Cost Price
A25C-4884 Aspen 14.55 26.95
C20G-4398 Carlota 11.18 27.95
Q22G-9634 Quad 19.34 43.95
S35G-4382 Sunshine 11.25 22.95
Corresponding position
Y30C-4942 Yanaki 12.88 29.95
Goal: Lookup product price using "Exact match" lookup
Old School 1:
Product Price Product First
Quad Quad 43.95 Formula in I5:
duct5[Price],"Not In List")
Goal: Lookup employee record based on EmployeeID in cell B5.
Formula in D5:
Old School 1:
First Last StartDate CellPhone Department
Sioux Chin 10/6/12 206-767-2190 Accounting
Formula in D18: =VLOOKUP($B$5,$B$10:$G$13,COLUMNS($D18:D18)+1,0)
Old School 2:
First Last StartDate CellPhone Department
Sioux Chin 10/6/12 206-767-2190 Accounting
Formula in D24: =INDEX($C$10:$G$13,MATCH($B$5,$B$10:$B$13,0),MATCH(D23,$C$9:$G$
8:D18)+1,0)
13,0),MATCH(D23,$C$9:$G$9,0))
Goal: Lookup employee record based on EmployeeID in cell B5.
Old School 1:
First Last StartDate CellPhone Department
Sioux Chin 10/6/12 206-767-2190 Accounting
Formula in D18: =VLOOKUP($B$5,$B$10:$G$13,COLUMNS($D18:D18)+1,0)
Old School 2:
First Last StartDate CellPhone Department
Sioux Chin 10/6/12 206-767-2190 Accounting
Formula in D24: =INDEX($C$10:$G$13,MATCH($B$5,$B$10:$B$13,0),MATCH(D23,$C$9:$G$
8:D18)+1,0)
13,0),MATCH(D23,$C$9:$G$9,0))
Goal: Lookup column and then aggregate as sum.
Add total units by Day selected in cell C5.
Units by Day:
Units by Day:
Lookup Table:
Earnings Range TaxRate
$0 $0 - $299.99 0.0%
$300 $300 - $599.99 2.5%
$600 $600 - $999.99 7.0%
$1,000 $1,000 - $1,999.99 10.0%
$2,000 $2,000 - $4,999.99 15.0%
$5,000 $5,000 or more 20.0%
Old School 1:
Earnings TaxRate
$1,200 10.0%
10.0%
Formula in C37:
=VLOOKUP(B37,B19:D24,3)
OR
Formula in C38:
=LOOKUP(B37,B19:D24)
< Much Slower calculating, duplicates may yield different answers
< Much slower calculating, if duplicates will yield same results as LOOKUP
< If lookup_array is not sorted and there are no duplicates, this yields
same answer as Exact Match or Next Smaller
Goal: Lookup earnings tax rate using "Exact match or next smaller lookup"
Earnings TaxRate: XLOOKUP Formula in C5:
$1,000 10.0% =_xlfn.xlookup(B5,B19:B24,D19:D24,0,-1)
Lookup Table:
Earnings Range TaxRate
$0 $0 - $299.99 0.0%
$300 $300 - $599.99 2.5%
$600 $600 - $999.99 7.0%
$1,000 $1,000 - $1,999.99 10.0%
$2,000 $2,000 - $4,999.99 15.0%
$5,000 $5,000 or more 20.0%
Old School 1:
Earnings TaxRate
$1,200 10.0%
10.0%
Formula in C37:
=VLOOKUP(B37,B19:D24,3)
OR
Formula in C38:
=LOOKUP(B37,B19:D24)
< Much Slower calculating, duplicates may yield different answers
< Much slower calculating, if duplicates will yield same results as LOOKUP
< If lookup_array is not sorted and there are no duplicates, this yields
same answer as Exact Match or Next Smaller
LOOKUP only performs: "Aproximate Match with Binary Search"
First Column MUST always be sorted A-Z
lookup_value lookup_vector = [result_vector] relative position from
argument = search for lookup_value to yield lookup_vector is used to retrieve item from
Item to lookup a relative position. Can be a [result_vector]. Can be a column or a row (not
column or a row (not a table). a table). Does not have to have same
Must be sorted A-Z orientation as lookup_vector
Note: Use LOOKUP rather than XLOOKUP for tax, commission, discount & other similar lookup tables that
have first column sorted A-Z and where you perform approximate match lookup. LOOKUP takes less time to
create the formula than XLOOKUP and the formula calculates faster than XLOOKUP.
ary Search"
e position from
to retrieve item from
e a column or a row (not
e to have same
_vector
Lookup Value: 2
LOOKUP(lv, lookup_table) 5 =LOOKUP(F5,C10:D15)
Lookup Table: Step 1
1 4 1 4
1 6 1 6
2 10 2 10
2 5
3 16 2 5 Checks if 2 (lv) >= 2 (la) and finds that this is TRUE
3 22 3 16 And so it takes the upper values (table on bottom)
3 22
Step 2
2 5
Lookup Value: 2
XLOOKUP(lv,la,ra,,-1,-1) 5 =_xlfn.xlookup(O5,L13:L18,M13:M18,,-1,-1)
Because this is not a Binary Search that requires a sorted lookup_array, the XLOOKUP array-formula-type-algorithm
works something like this:
Step 3:
If the search_mode is Last-to-first, then the max position is used to retrieve a value from the return_array:
Algorithmn
First calculations steps XLOOKUP & Exact Match or Next Smaller & Binary Search calculation
ation time is slower than the Binary ) (XLOOKUP Binary Search, but not same results as LOOKUP Binary Search and the calculation
Lookup Value: 2
XLOOKUP(lv,la,ra,,-1,2) 10 =_xlfn.xlookup(Z5,W10:W15,X10:X15,,-1,2)
OOKUP array-formula-type-algorithm Lookup Table: Step 1
1 4 1 4
on of TRUE values? 1 6 1 6
2 10 2 10
{=IF(_xlfn.anchorarray(O13),_xlfn.sequence( 2 5
3 16 2 5
3 22 3 16
3 22
Step 2
1 4
alue from the return_array:
1 6
2 10
alue from the return_array: Step 3
1 4
2 10
ext Smaller & Binary Search calculations steps
esults as LOOKUP Binary Search and the calculation time
is slower than the Binary )
_xlfn.xlookup(Z5,W10:W15,X10:X15,,-1,2)
Old School 1:
Land Square Footage 23,000 Formula in C20:
Pipe Size Required 8'' =INDEX(C8:C14,MATCH(C19,B8:B14,-1))
C19,B8:B14,-1))
Goal: Retrieve drain pipe size based on land square footage.
Old School 1:
Land Square Footage 23,000 Formula in C20:
Pipe Size Required 8'' =INDEX(C8:C14,MATCH(C19,B8:B14,-1))
4,C8:C14,"Enter a value equal "&B8&" or less",1)
C19,B8:B14,-1))
Goal: Lookup Coca Cola and get a match for Coca Cola Inc.
Example of: Wildcard lookup (synonyms: partial text lookup, fuzzy lookup)
* = zero or more characters. ? = a single wildcard characters.
Company (partial
text) City Formula in C7:
Coca
Lookup Table:
Company
(full text) City
Coca Cola Inc. Atlanta
Pepsi Cola Inc. NY
RC Cola KC
Shasta Drinks Calistoga
Old School 1:
Company
(partial text) City
Coca Cola Atlanta
Formula in L7:
=VLOOKUP("*"&K7&"*",B12:C15,2,0)
Goal: Lookup Coca Cola and get a match for Coca Cola Inc.
Example of: Wildcard lookup (synonyms: partial text lookup, fuzzy lookup)
* = zero or more characters. ? = a single wildcard characters.
Company (partial
text) City Formula in C7:
Coca Atlanta =_xlfn.xlookup("*"&B7&"*",B12:B15,C12:C15,,2)
Lookup Table:
Company
(full text) City
Coca Cola Inc. Atlanta
Pepsi Cola Inc. NY
RC Cola KC
Shasta Drinks Calistoga
Old School 1:
Company
(partial text) City
Coca Cola Atlanta
Formula in L7:
=VLOOKUP("*"&K7&"*",B12:C15,2,0)
Goal: Lookup first date worked on project.
"Get First" when there are duplicates = Exact Match Lookup does this by default.
First Date
Employee Worked 10/4/2021 10/5/2021 10/6/2021 10/7/2021 10/8/2021
Chin x x x
Gigi #NAME? x x
Sioux #NAME? x x x
Chantel #NAME? x x x x x
Billy #NAME? x x
Formula in C8:
Old School 1:
10/6/2021
Err:509
First Date
Employee Worked 10/4/2021 10/5/2021 10/6/2021 10/7/2021 10/8/2021
Chin #NAME? x x x
Gigi #NAME? x x
Sioux #NAME? x x x
Chantel #NAME? x x x x x
Billy #NAME? x x
First Date
Employee Worked 10/4/2021 10/5/2021 10/6/2021 10/7/2021 10/8/2021
Chin 10/6/2021 x x x
Gigi #NAME? x x
Sioux #NAME? x x x
Chantel #NAME? x x x x x
Billy #NAME? x x
Formula in C8:
=_xlfn.xlookup("x",D8:H8,$D$7:$H$7)
Enter and copy to rows below.
Old School 1:
10/6/2021
Err:509
First Date
Employee Worked 10/4/2021 10/5/2021 10/6/2021 10/7/2021 10/8/2021
Chin #NAME? x x x
Gigi #NAME? x x
Sioux #NAME? x x x
Chantel #NAME? x x x x x
Billy #NAME? x x
Date Sales Rep Sales Sales Rep Last Sale Formula in G6:
10/3/2021 Sioux $640.56 Sioux
10/3/2021 Chin $1,706.02 Chin Enter and it spills down to rows below.
10/4/2021 Sioux $1,589.69
10/4/2021 Chin $695.31
10/5/2021 Sioux $474.26 Searching for the position last implies that the table has been sorted
10/5/2021 Chin $786.13
10/6/2021 Sioux $811.12
10/6/2021 Chin $983.25
10/7/2021 Sioux $696.97
10/7/2021 Chin $765.99
AX(IF($C$6:$C$15=F18,$B$6:$B$15))&F18,$B$6:$B$15&$C$6:$C$15,0))}
Goals: 1) Lookup last sale for each sales rep, then 2) lookup up last date each Sales Rep made a sale.
"Get Last" when there are duplicates.
If Data Set Will NOT Be Sorted and there are no duplicat
Date Sales Rep Sales Sales Rep Last Sale Formula in G6:
10/3/2021 Sioux $640.56 Sioux #NAME? {=_xlfn.xlookup(F6:F7,C6:C15,D6:D15,,,-1)}
10/3/2021 Chin $1,706.02 Chin #NAME? Enter and it spills down to rows below.
10/4/2021 Sioux $1,589.69
10/4/2021 Chin $695.31 If you know there are no duplicate sales for a given day:
10/5/2021 Sioux $474.26 Sales Rep Last Sale Formula in G11:
10/5/2021 Chin $786.13 Sioux 696.97 {=SUMIFS(D6:D15,B6:B15,MAXIFS(B6:B15,C6:C15,F11:F12
10/6/2021 Sioux $811.12 Chin 765.99 Enter and it spills down to rows below.
10/6/2021 Chin $983.25
10/7/2021 Sioux $696.97
10/7/2021 Chin $765.99 Sales Rep Last Date Formula in G16:
Sioux 10/7/2021 {=MAXIFS(B6:B15,C6:C15,F16:F17)}
Chin 10/7/2021 Enter and it spills down to rows below.
Old School 1:
Sales Rep Last Sale Formula in G26:
Sioux 696.97 {=INDEX($D$6:$D$15,MATCH(MAX(IF($C$6:$C$15=F26,$
Chin 765.99 Copy Down
Old School 2:
Sales Rep Last Sale Formula in G31:
Sioux 696.97 {=SUMIFS($D$6:$D$15,$B$6:$B$15,MAX(IF($C$6:$C$15=
Chin 765.99 Copy Down
and there are no duplicate matches for SalesRep and Date!!!
6:D15,,,-1)}
IFS(B6:B15,C6:C15,F11:F12),C6:C15,F11:F12)}
5,C6:C15,F21:F22)&F21:F22,B6:B15&C6:C15,D6:D15)}
MAX(IF($C$6:$C$15=F26,$B$6:$B$15))&F26,$B$6:$B$15&$C$6:$C$15,0))}
B$15,MAX(IF($C$6:$C$15=F31,$B$6:$B$15)),$C$6:$C$15,F31)}
Goal: Lookup price based on product & store.
Two value lookup to determine price.
Old School 1:
Store Seattle Store Seattle
Product Quad Product Quad
Price Price 39.95
ATCH(J5&J6,B13:B21&C13:C21,0))}
Goal: Lookup price based on product & store.
Two value lookup to determine price.
Old School 1:
Store Seattle Store Seattle
Product Quad Product Quad
Price #NAME? Price 39.95
ATCH(J5&J6,B13:B21&C13:C21,0))}
Goal: Lookup federal income tax deduction based on gross pay and allowances.
Perform 2-way look, with row header & column header determining intersecting lookup value.
6 7
0 0
0 0
0 0
0 0
0 0
0 0
0 0
Goal: Lookup federal income tax deduction based on gross pay and allowances.
Perform 2-way look, with row header & column header determining intersecting lookup value.
6 7
0 0
0 0
0 0
0 0
0 0
0 0
0 0
Goal: Extract student class records.
Famous Excel task: One lookup value, return multiple items/records.
Student Class Department Grade Student
Sioux Chin Acc 121 Accounting 1.7 Chantel Mimms
Chantel Mimms Busn 216 Business 3.1
Dylan Franks Busn 101 Business 2.1 Class Department Grade Formula in G9:
Sioux Chin Acc 201 Accounting 4
Chantel Mimms Busn 218 Business 3.8
Dylan Franks Eng 201 English 2
Sioux Chin Econ 201 Economics 2.6
Chantel Mimms Busn 210 Business 3.3
Dylan Franks Busn 216 Business 1.9 Class Department Grade
Gigi Dmitri Busn 210 Business 2.6 Busn 216 Business 3.1
Chantel Mimms Eng 201 English 3.1 Busn 218 Business 3.8
Gigi Dmitri Econ 202 Economics 2 Busn 210 Business 3.3
Eng 201 English 3.1
Formula 'before we had FILTER' in G15:
Formula in G9:
Err:509
Student
#NAME?
#NAME?
#NAME?
#NAME?
Goal: Extract student class records.
Famous Excel task: One lookup value, return multiple items/records.
Err:509
Student
#NAME?
#NAME?
#NAME?
#NAME?
lookup_array argument =
lookup_value search for lookup_value to yield
argument = a relative position. Can be a [match_mode] and [search_mode]
item to lookup column or a row (not a table) arguments = same as XLOOKUP
Signups Sat. Event Signups Sun. Event Only Sunday Formula in E18:
Ty Miki
Gigi Gigi
Sioux Kip
Chantel Chantel
Fran
#N/A
Goal: Are names in Sunday list also in the Saturday list?
Saturday List Sunday List Are Items From This List In The Other List?
Signups Sat. Event Signups Sun. Event In Both? Formula in E18:
Ty Miki 0 {=ISNA(_xlfn.xmatch(D18:D22,B18:B21))}
Gigi Gigi 0
Sioux Kip 0
Chantel Chantel 0
Fran 0
n The Other List?
value1 result1
expression argument = argument =
argument = match against if value1 = expression,
lookup_value lookup_value this is result to return
efault_or_value2, results2], …)
Price
Product Price Units Sold Discount Bellen Units P. Discount
Bellen 26.95 24 0 0%
Aspen 28.95 60 15 25%
Bellen 26.95 50 45 40%
Quad 43.95 5
Quad 43.95 25 Quad Units P. Discount
Bellen 26.95 96 0 0%
Yanaki 30.95 8 20 20%
Quad 43.95 124 60 45%
Bellen 26.95 55
Bellen 26.95 2 Default Units P. Discount
Quad 43.95 5 0 0%
Yanaki 30.95 19 15 30%
25 50%
atch or Next Smaller with Binary Search"
IFS is longer formula
Price
Discount
0.25
0.5
0.4
0
0.2
0.4
0
0.45
0.4
0
0
0.3
Goal:
1) With SWITCH function, lookup correct lookup table based on product name.
2) Then use SWITCH result in the LOOKUP function to perform lookup for Unit "Exact Match or Next Smaller with Binary Sea
Units Transaction Table: IFS is longer formula
Price Price
Product Price Units Sold Discount Bellen Units P. Discount Discount
Bellen 26.95 24 0.25 0 0% 0.25
Aspen 28.95 60 0.5 15 25% 0.5
Bellen 26.95 50 0.4 45 40% 0.4
Quad 43.95 5 0 0
Quad 43.95 25 0.2 Quad Units P. Discount 0.2
Bellen 26.95 96 0.4 0 0% 0.4
Yanaki 30.95 8 0 20 20% 0
Quad 43.95 124 0.45 60 45% 0.45
Bellen 26.95 55 0.4 0.4
Bellen 26.95 2 0 Default Units P. Discount 0
Quad 43.95 5 0 0 0% 0
Yanaki 30.95 19 0.3 15 30% 0.3
25 50%
Formula in E9:=LOOKUP(D9,SWITCH(B9,$G$8,$I$9:$J$11,$G$13,$I$14:$J$16,$I$19:$J$21))
h or Next Smaller with Binary Search"
S is longer formula Dynamic Spilled Array
Price
Discount
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
Err:504
,$I$19:$J$21))
Goal: "Approximate match" lookup when 1st column sorted & we want item from last column.
Advantage: Enter fewer arguments, as compared to XLOOKUP. Faster to create formula with LOOKUP.
Formula in F22:=_xlfn.xlookup(F20,B6:B13,F6:F13,,-1)+(F20-_xlfn.xlookup(F20,B6:B13,E6:E13,,-1))
*_xlfn.xlookup(F20,B6:B13,D6:D13,,-1)
want item from last column.
ster to create formula with LOOKUP.
0-_xlfn.xlookup(F20,B6:B13,E6:E13,,-1))
Goal: "Approximate match" lookup when 1st column sorted & we want item from last column.
Advantage: Enter fewer arguments, as compared to XLOOKUP. Faster to create formula with LOOKUP.
0,B6:E13))*LOOKUP(F20,B6:D13)
F20-_xlfn.xlookup(F20,B6:B13,E6:E13,,-
Homework, Practice Problems on Following Worksheets ==>>
Blue = Work on.
Red = Solution.
Goals: Add a Data Validation dropdown list to cell B6 based on the E-mails in the range G11:G17.
In cell C8, create a formula to lookup Employee ID based on the e-mail in cell B6.
E-mail
[email protected]
Employee ID:
Employee ID
880-245-3404
Lookup Record:
Student Score for class % Grade Decimal Grade Decimal Grade % Grade
Abdi Linberger 491 0
Kip Berkeley 404 0.62
Gigi Pham 525 0.63
Chantel Mimms 632 0.64
Fred Dean 566 0.65
Dino Hipster 45 0.66
Tyrone Spawn 612 0.67
0.68
0.69
0.7
0.71
0.72
0.73
0.74
0.75
0.76
0.77
0.78
0.79
0.8
0.81
0.82
0.83
0.84
0.85
0.86
0.87
0.88
0.89
0.9
0.91
0.92
0.93
0.94
0.95
Decimal Grade
0 Formula in cell D8:
0.7
0.8
0.9
1 Formula in cell E8:
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
3
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
4
Goals: Create a lookup formula in the commission column that can
lookup the commission bonus based on the employee's sales.
Create the formula two different ways. Hint: This is an Excel Table so you can not spill a formula.
Room Sq. Ft. 414 Room Sq. Ft. Vent Size (inch)
Vent Size: 0 6
5 8
Hint: use "Exact match or next larger" lookup. 20 12
100 14
200 16
300 20
500 25
700 30
Formula in cell C5:
Goals: In cell C5 create formula to add the total calls for the month name in cell C4.
Fall Winter
2020 2020
Temika Weis Cheryl Estrada
Stephen Witherspoon Judy Douglas
Breann Dang Wade Grant
Arlette Dancy Isaac Owens
Etsuko Redd Luz Caldwell
Kyoko Kunz Lynette Harmon
Hedy Coles Carl Stokes
Tifany Walling Maggie Ortega
Tabatha Sorensen Allison Stevenson
Cathern Hostetler Mathew Weber
Chau Schmitt Breann Dang
Bernetta Ontiveros Cathern Hostetler
Malcom Lovejoy Porsha Caudle
Nikki Dominguez Joshua Pratt
Porsha Caudle Edgar Ferguson
Florentina Hummel Cesar Dunn
Luz Caldwell Allan Nguyen
Judy Douglas Roderick Mendez
Blanche Stanley
class that are not in Fall 2020 class:
fill if the cell shows a spilled value.