What you will build
Look up prices for multiple SKUs on Orders from a price table on Catalog while entering only one formula in anchor cell C2. The lesson uses fictional data so every step can be reproduced safely.
Learning objective
Use ARRAYFORMULA, IFNA, and VLOOKUP for exact-match lookup across two tabs, understand each parameter, how SKUs are evaluated row by row, and how a missing SKU is handled.
Prepare the sample data
Open the exact source workbook below or make your own copy. Orders contains SKU and Qty; Catalog contains SKU and Price. Keep the source workbook unchanged and practice on your copy.
Practice in your own copy
Make your own Google Sheets copy with the same data, formulas, formatting, filter and frozen header. The original remains unchanged.
Sign in to Google. If the original is not publicly shared, download the full workbook and import it into Google Sheets, or paste the example data into your own sheet.
Open the exact source workbook in Google Sheets ↗
Work through the example
Step 1: On your copy, open Catalog and confirm the lookup table is A1:B4 with three unique SKUs: P01 = 12, P02 = 35, and P03 = 22.
Step 2: Open Orders, select C2, and enter the formula below once. The results spill through C2:C4 automatically; do not drag the fill handle or copy the formula down.
Formula to try
In Orders!C2, enter the formula below. Keep C2:C4 clear beforehand so the spill range is not blocked.
=ARRAYFORMULA(IF(A2:A4="","",IFNA(VLOOKUP(A2:A4,Catalog!$A$2:$B$4,2,FALSE),"Check SKU")))Checkpoint
| SKU | Qty | Price |
|---|---|---|
| P02 | 2 | 35 |
| P01 | 3 | 12 |
| P03 | 1 | 22 |
Expected result: Price spills through C2:C4 as 35, 12, and 22.
Common mistakes and fixes
If Check SKU appears, confirm the code in Orders exactly matches a SKU in Catalog. FALSE requires exact matching, so a different code or a missing SKU will not be approximately matched.
Independent practice
Temporarily change Orders!A2 from P02 to P99 and confirm C2 displays Check SKU; then restore P02 and confirm C2 returns to 35.
Key takeaways
- ✓Catalog stores the SKU-to-Price lookup table; Orders uses it to retrieve prices.
- ✓FALSE makes VLOOKUP require an exact SKU match.
- ✓IFNA replaces only the not-found case with Check SKU.
- ✓One ARRAYFORMULA in C2 produces all three results: 35, 12, and 22.
- ✓Do not drag or copy the formula into C3:C4 because the results already spill.
Check your understanding
Answer four questions about the practice sheet.
Continue learning
Previous lesson: Compare two lists.
Comments
No comments yet. Be the first to join the discussion.