Exact-match price lookup by SKU
=XLOOKUP(G2,Products[SKU],Products[Price],"SKU not found",0)
Study Excel Lookups and Conditional Aggregation with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
Exact-match price lookup by SKU
=XLOOKUP(G2,Products[SKU],Products[Price],"SKU not found",0)
When should you choose SUMIFS instead of a lookup?
Use a lookup to retrieve a related field from a matching record; use SUMIFS to total values across records that meet criteria.
Why might numeric 123 fail to match text "123"?
They may not behave as the same key. Keep lookup keys consistent in data type and formatting.
Which XLOOKUP match mode maps 125 to the 100 threshold?
Use XLOOKUP match mode -1 for exact match or next smaller item. With ascending thresholds 0, 50, 100, and 200, an order of 125 maps to the 100 threshold.
What can cause #SPILL! in a dynamic-array formula?
An occupied cell in the spill area can cause #SPILL!. Clear the neighboring cells where the results need to appear.
Exact-match VLOOKUP for a SKU’s price
=VLOOKUP(G2,Products[[SKU]:[Price]],2,FALSE)
Does a lookup result of zero necessarily mean no match?
No. Zero may be a legitimate returned value, so do not automatically treat it as a missing match.
What sorting does VLOOKUP approximate matching require?
The first column of the table range must be sorted in ascending order for VLOOKUP approximate matching.
How can XLOOKUP return both Price and Category for a SKU?
=XLOOKUP(G2,Products[SKU],Products[[Price]:[Category]],"SKU not found",0). Enter it once in a blank cell; the returned columns spill into adjacent cells.
Which cases should you test before relying on a lookup?
Test a key expected to match and one expected to be missing. For approximate lookups, also test values at, just below, and just above threshold boundaries.
What is the difference between a lookup and conditional aggregation?
A lookup retrieves a value associated with a matching record; conditional aggregation calculates across all records that satisfy criteria.
What does XLOOKUP match mode 1 mean?
XLOOKUP match mode 1 means exact match or next larger item.
Build PivotTables, slicers, and charts to summarize a messy business dataset and answer stakeholder questions.