Audit missing SKUs with ISNA

Medium Logic
Description
Hints 0/4
Solutions 3
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

Before the price report ships, QA wants a simple audit answer for the SKU in E2: is it missing from the price list in A2:A6 or not? Put TRUE (missing) or FALSE (present) in the Missing? cell D2. This is an audit question — you want the TRUE/FALSE itself, not a wrapped-up message.

Missing must be TRUE and present FALSE — case 1 expects FALSE, so don't invert the flag.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ADE
1 SKUMissing?SKU to check
2 SKU-1001SKU-1043
3 SKU-1017
4 SKU-1043
5 SKU-1088
6 SKU-1102

Notes

The error family splits in two: IFERROR/IFNA replace an error with a value; ISERROR/ISNA report the error as TRUE/FALSE. ISNA is the surgical one — TRUE only for #N/A (a miss), FALSE for everything else. ISERROR is TRUE for any error. Pairing ISNA with MATCH is the classic audit combo: MATCH finds position or returns #N/A, and ISNA turns that into a clean boolean.

How to approach

Your answer goes in D2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is D2
  2. MATCH(E2, A2:A6, 0) returns a position when found, #N/A when not
  3. ISNA turns exactly one thing into TRUE: an #N/A error
  4. Shape: =ISNA(?) — the lookup expression goes inside, not its result

Official solutions

Show 3 solutions — try it yourself first

Approach 1: ISNA + MATCH

=ISNA(MATCH(E2, A2:A6, 0))

MATCH returns the position of E2 in the list, or #N/A when it's absent. ISNA converts exactly that #N/A into TRUE — anything else (a real position) becomes FALSE.

Approach 2: ISNA + VLOOKUP

=ISNA(VLOOKUP(E2, A2:A6, 1, FALSE))

Same audit with VLOOKUP: a hit returns the SKU itself, a miss returns #N/A, and ISNA reports it as TRUE/FALSE.

Approach 3: COUNTIF, no error handling at all

=COUNTIF(A2:A6, E2)=0

The zero-error philosophy: count occurrences and ask if the count is 0. No errors are ever produced, so no error functions are needed — a favorite in code reviews.

Function guide

Related practice

FAQ

What is the difference between ISNA and ISERROR?

ISNA(x) is TRUE only when x is #N/A — a lookup miss. ISERROR(x) is TRUE for any error, including #REF!, #VALUE!, and #DIV/0!. For "is this value in the list?" audits, ISNA is precise; ISERROR would also report unrelated breakage as "missing".

How do I check if a VLOOKUP returned #N/A?

=ISNA(VLOOKUP(E2, A2:A6, 1, FALSE)) returns TRUE when the lookup missed. To act on it, wrap in IF: =IF(ISNA(VLOOKUP(…)), "Missing", "OK").

Why use ISNA instead of IFNA?

IFNA(value, fallback) replaces a miss with a value — it answers with data. ISNA answers with TRUE/FALSE — it's for audit columns, conditional formatting rules, and counting problems with =SUMPRODUCT(--ISNA(range)).