3.15 IFERROR and IFNA
Handle an expected error and keep evidence visible
A quick-commerce team prepares a unit-price report and a lookup of each store's city. One order has a recorded quantity of zero. Another order points to a store code the team has never seen. A third calculation points to the wrong column. In Excel all three situations can produce an error. A reliable report tells the team which cases are expected, which need a data correction, and which reveal a broken formula.
We will use a fictional office inspired by Blinkit and Amazon Now. The orders, stores and outcomes are synthetic. You will compare raw formulas with IFERROR and IFNA, retain reporting evidence, and distinguish a store that is absent from a matching store whose source data has an error. Both labs are reproducible in an editable scratch workbook.
- Inspect the raw result. Keep enough evidence to identify the calculation or source that produced it.
- Choose the narrowest useful fallback. Use IFNA specifically when you can explain an expected unavailable value. Use IFERROR only when you can handle the error outcomes the formula can produce.
- Separate an unavailable result from zero. Zero often has a real business meaning such as a completed order with no charge.
- Review the impact on totals. Check the number of usable and unresolved values before sharing a summary.
Read IFERROR and IFNA as different fallbacks
=IFERROR(expression,fallback) returns the ordinary value of the expression when it succeeds. For errors evaluated by the function such as #DIV/0!, #N/A, #VALUE! or #REF!, it returns the fallback. The fallback can be a message, a number, another expression or an empty string. Choose it based on what readers need to do after they see it.
=IFNA(expression,fallback) returns the expression's ordinary value or any other error unchanged. It returns the fallback only for #N/A. This is useful when the only error you intend to handle is an expected absence, such as a lookup that sometimes has no approved match. It cannot determine the cause of #N/A on its own.
Distinguish calculation from formula entry
An error-handling function needs a formula that Excel can parse and evaluate. A missing closing parenthesis, an unusable separator, or an unrecognised construct can prevent a formula from being entered or calculated correctly. Debug the expression by itself first. A missing input or a numeric failure may show up only after a syntactically valid formula evaluates.
Build the calculation in a scratch column. Test one normal case and one expected exception. Then wrap it with the smallest fallback consistent with your business rule. If an unknown error begins appearing after a source formula is changed, investigate before substituting a normal-looking label for every failure.
Which wrapper keeps a broken reference visible while handling #N/A?
IFNA. It substitutes the fallback for #N/A and leaves #REF! as evidence of a different problem. Check what produced the unavailable value before interpreting the fallback as a missing key.
Explain why a unit price could not be calculated
A unit price for a simple order line is amount divided by quantity. A line with amount 64 and quantity 2 gives 32 per unit. A line with amount 90 and quantity 0 has no valid divisor. Excel reports #DIV/0!. A typed placeholder such as “pending” in the amount field can produce #VALUE! with the same arithmetic even when quantity is 2.
Compare a catch-all message with a verified reason
=IFERROR(B2/C2,"Check inputs") displays the generic message for either error in the example. It is accurate in saying that inputs need checking. A more specific generic message such as “Check Qty” would misidentify the row whose amount is text while the quantity is valid. Keep a raw calculation or a separate diagnostic status so the wrong input is easy to locate.
Check a blank quantity separately from a measured zero. Some arithmetic operations treat an empty cell reference like zero. Both cases can lead to a divide-by-zero result even though they imply different next actions. A missing quantity needs source evidence. A recorded zero may be an invalid amount-per-unit row or could represent a process event you should report separately. Decide how that record should be classified.
Keep confirmed zeros in the measured population
A valid order with numeric amount 0 and positive quantity can have a true unit price of 0 under the exercise's definition. Replacing every bad calculation with zero creates the same displayed result. That can pull down an average or inflate the count of measured outcomes. Keep one numeric field, one status field, and a clear inclusion rule for summaries.
When does “Check Qty” give the wrong diagnosis?
It can appear when an amount is text, a reference is broken, or another error is caught by IFERROR. A general message can be honest if it describes a general review. A specific diagnosis needs separate evidence.
Distinguish a missing lookup key from a faulty match result
Imagine an Orders worksheet has an assigned Store ID and a separate store master contains an approved city for each ID. The requested identifier S99 might be absent. A lookup using exact match can return #N/A. A store can also exist while its City cell contains that same error. A wrapper has no automatic way to know which scenario produced the error code alone.
Use a limited fallback on an exact lookup
=IFNA(VLOOKUP(A2,$J$2:$K$4,2,FALSE),"City unavailable") looks for the supplied store ID in column J and returns the paired City from column K. FALSE requests exact matching in this training example. If a match cannot be found, IFNA displays City unavailable. The same message can appear when the matched City returns an unavailable value. Inspect the known store IDs to see which case happened.
If the return column number becomes 3 while the lookup range still has two columns, the lookup returns #REF!. IFNA leaves that fault visible. An IFERROR wrapper with the message “Missing store” would display a misleading reason. For a planned lookup setup, check that key and result columns are arranged as expected and that the requested return position actually exists.
Compare XLOOKUP's built-in unmatched option
In an Excel edition where XLOOKUP is available, =XLOOKUP(A2,$J$2:$J$4,$K$2:$K$4,"Store not found") provides a fallback for the missing match. When it finds a matching store whose City cell has an unexpected #N/A, the match exists and the ordinary return value presents that source error. This distinction is useful when the report must separate key presence from a faulty source value.
Check for duplicated keys before interpreting a successful lookup. An exact match resolving to a row does not prove that the store master was unique or that the row belongs to the expected location. In this exercise the listed store IDs are unique. In a current workbook use a verified key control and investigate similar-looking values with extra spaces, lost leading zeroes or inconsistent types.
Does a successful wrapper prove a store record was present?
Look at the output and how it was derived. A displayed fallback says the inner expression had a handled error, while a normal result says it returned a value. Check the relevant key and return fields if you need evidence about the underlying source row.
Trace a missing city to a specific action
Observe the raw value
The lookup for S03 returns
#N/A. The report has no city yet. Record the requested ID and check the source instead of deciding immediately why the value is missing.Check the store key
The master contains S03. That means adding another S03 row could introduce a duplicate instead of fixing the lookup. Follow the matched record to its City field.
Find the faulty field
The City cell itself contains
=NA()as a synthetic fault. Both the lookup and IFNA see one error value. The key evidence identifies a source-field issue rather than an absent store.Describe the correct next action
Flag S03 for city-data review and leave the existing key intact. For S99, whose key is absent, ask whether the code is valid before adding or correcting an approved master record.
Lab 1 · Compare raw unit prices, a generic fallback and a review status
Goal. Preserve evidence for each exception and report the unit price only when the input is usable. Create an editable scratch worksheet named Unit Check. In A1:G1 put Case, Amount, Qty, Raw Unit Price, Generic Fallback, Review Status and Numeric Output. Keep the inputs exactly as shown in the exercise table.
- Enter six input rows. In A2:C7 use the order or test IDs and values below. Put the word Pending as text in B5. Leave C7 genuinely blank. Keep the numeric zero in C3 separate from that blank. In B6 enter 0 as a numeric amount.
- Observe the raw arithmetic. In D2 type
=B2/C2and fill through D7. Examine the normal results and see which raw error appears on each bad input. A zero amount divided by a positive quantity is a valid zero. - Try a generic fallback. In E2 write
=IFERROR(D2,"Check inputs")and fill down. It passes 32, 90 and 0 unchanged. It shows Check inputs for each calculation error. It does not explain which input was wrong. - Add a more useful status. In F2 enter the first expression below and fill down. It checks whether quantity is missing, incorrectly typed or nonpositive, and whether the amount is numeric. This is the data rule for the sample. In G2 use the second expression and fill it down.
- Confirm the reporting measure. Count numeric results in G2:G7. Expect 3. AVERAGE of the three valid row-level prices gives about 40.67. The valid inputs have total amount 334 and total quantity 9, giving about 37.11 per unit across those items. State which calculation your reader needs.
F2 =IF(C2="","Missing qty",IF(ISNUMBER(C2),IF(C2<=0,"Review qty",IF(ISNUMBER(B2),"OK","Review amount")),"Review qty type"))
G2 =IF(F2="OK",D2,"")
| Case | Amount | Qty | Raw value | Review Status | Numeric Output |
|---|---|---|---|---|---|
| BLK-1001 | 64 | 2 | 32 | OK | 32 |
| BLK-1010 | 90 | 0 | #DIV/0! | Review qty | Empty display |
| BLK-1002 | 270 | 3 | 90 | OK | 90 |
| TEST-TEXT | Pending | 2 | #VALUE! | Review amount | Empty display |
| TEST-FREE | 0 | 4 | 0 | OK | 0 |
| TEST-MISSING | 50 | Leave blank | #DIV/0! | Missing qty | Empty display |
Expected evidence. Three rows have usable numeric results, including the real zero. In the scratch file, correct BLK-1010 from Qty 0 to the confirmed practice value 1. D becomes 90, F becomes OK and G shows 90. If the raw result changes but the displayed report does not, inspect the status formula and confirm the destination references the same row. Restore the sample failure after testing if you want to preserve the lesson case.
Lab 2 · Look up three stores and isolate the source of #N/A
Goal. Distinguish an unmatched ID, a matched row with a broken City field, and an invalid return column. Add a sheet called Store Review. Put Requested Store, Raw Lookup, IFNA Result and Key Count in A1:D1. Put Store ID and City in J1:K1. Use the following small source and request lists.
- Build the master. Type S01 with Pune in J2:K2 and S02 with Nashik in J3:K3. Put S03 in J4 and
=NA()in K4 as a temporary fault. Each ID exists once. Use A2:A4 for S01, S99 and S03 in that order. - Look up the raw city. In B2 enter
=VLOOKUP(A2,$J$2:$K$4,2,FALSE)and fill through B4. Expect Pune followed by two#N/Aresults. Both errors have the same appearance, so inspect the source before deciding what it means. - Compare a narrow wrapper and key evidence. In C2 enter
=IFNA(B2,"City unavailable"). In D2 use=COUNTIF($J$2:$J$4,A2). Fill both down. The key counts distinguish S99 from S03. The review note for S03 should mention the City source field. - Prove the wrapper boundary. In a spare cell use
=IFNA(VLOOKUP(A2,$J$2:$K$4,3,FALSE),"City unavailable")on the known S01 case. Expect#REF!, because there is no third column. Replace only IFNA with IFERROR in the spare cell and it returns the fallback. Remove that test after observing why the message is too broad. - Verify match-specific handling if available. In another scratch column use
=XLOOKUP(A2,$J$2:$J$4,$K$2:$K$4,"Store not found")and fill down if your edition supports it. Expect Pune, Store not found and the source#N/A. If XLOOKUP is unavailable, the key counts already provide the needed evidence.
| Request | Raw | IFNA | Key count | Review action |
|---|---|---|---|---|
| S01 | Pune | Pune | 1 | Verified match for the sample. |
| S99 | #N/A | City unavailable | 0 | Confirm the requested ID. |
| S03 | #N/A | City unavailable | 1 | Investigate the City field of existing S03. |
Verify and recover. Replace the synthetic NA formula in K4 with the verified training city Solapur. The S03 lookup becomes Solapur and its key count stays 1. S99 remains unresolved. Correcting a returned field and adding a missing record are separate actions. Keep the broken test confined to the practice worksheet and check your final result before saving or closing.
Keep reports usable while retaining diagnostic evidence
A published dashboard can use an understandable empty or unavailable label and still trace the cause to a separate review table. Create a divide-by-zero exception count and a separate missing-key count if those are decisions the team can act on. Do not let a fallback value erase the distinction between “no completed sales were observed,” “the sales metric is zero,” and “the source did not provide the quantity needed to calculate it.”
Write the handling rule for the expected case
Suppose a report calculates average price per unit for quantities above zero. First verify that the inputs are suitable and the denominator is nonzero. Use an explicit condition when the invalid state is predictable. For known valid numeric amounts and quantities, =IF(C2=0,"No units",B2/C2) handles one well-understood case and leaves other failures visible. When the data can be blank or incorrectly typed, use the lab's checks before using this smaller expression.
Suppose a related lookup sometimes has no authorised value, and the agreed action is to review the current code list. A narrow IFNA fallback may be appropriate because the expected failure is an unavailable result. Keep a distinct label and count the cases. If a fault initially shows up as #REF!, leave it visible while you inspect the source reference and repair the formula.
Check what the fallback does to summary functions
In Lab 1, the numeric report column has values 32, 90 and 0 and three formulas that return empty strings. COUNT reports three numeric values. AVERAGE over the range ignores the empty text outcomes and uses the three numeric measures, including zero. If you replace the unresolved values with numeric zeros, there are six measured-looking values and the average falls to about 20.33. The changed denominator explains the difference.
A true empty cell, a formula returning empty text and a zero displayed as blank by formatting can be difficult to tell apart in the grid. Inspect the cell content and choose the count rule suited to the field. COUNTA can count empty strings returned by formulas. Use a measured numeric count and an explicit record count to check how many rows still need investigation.
Why does replacing unavailable values with zero change the average?
It adds zeros to the numeric population. The sum may stay the same, but the number of numeric observations changes. When missing rows should be excluded, report their count separately and keep unavailable outcomes distinct from real zeros.
Diagnose different failures after a data import
Start with one row and check its dependencies
Follow a sample row that produced an unexpected result. Read the inner expression in the formula bar before inspecting the wrapper. For an amount divided by quantity, inspect the raw quantity and amount cells individually. For a lookup, inspect the requested key, the range, the match type and the return column. Reproduce the expected result for a known good row as a control.
Probe the smallest expression that explains it
- #DIV/0!. Check a zero or missing denominator. Ask whether a metric based on zero eligible records has a defined outcome.
- #N/A. Check whether the requested item exists and whether the matched result itself has an unavailable value.
- #VALUE!. Check types and the expression's supplied arguments. Text such as Pending does not serve as a numeric measure.
- #REF!. Check a broken cell reference or impossible requested location, such as a return column beyond the lookup range.
Additional error types can arise from names, array state, or other conditions. Use the result as a diagnostic signal and check the operation that produced it. A broad fallback changes what a reader sees. It cannot repair a broken source. After fixing one case, restore the normal output and verify an unaffected good row before publishing a replacement report.
See how one failed input travels through several calculations
In a workbook the value you see can be the result of a chain. An order's raw quantity feeds its unit price. That price might feed a daily average. A summary chart can read the average. If one raw unit price is #DIV/0!, the next calculation reading it can also result in an error. The problem that appeared in a chart began in an order row. Tracing the chain tells you which input to fix.
Compare a raw summary with a reviewed summary
After completing the Unit Check lab, use two unused cells to compare =AVERAGE(D2:D7) and =AVERAGE(G2:G7). D is the raw arithmetic column and includes errors. G intentionally includes numeric results only for rows whose reviewed status is OK. The raw average reports a calculation error from its inputs. The reviewed average is about 40.67 from 32, 90 and 0. A count shows that this average represents three of the six records.
If you simply wrap the raw average in =IFERROR(AVERAGE(D2:D7),0), the output becomes zero even though the file contains real numeric prices. The entire expression was replaced after encountering an error. That result is different from calculating an average over explicitly validated rows. Check the meaning of both the raw data and the scope at which you apply error handling.
Keep enough evidence for an updated result
Restore the sample amount and quantity, then change BLK-1010's quantity from 0 to 1 in a copy to model a verified correction. The raw calculation for that order is repaired. Two other faulty rows remain. The reviewed average now uses 32, 90, 90 and 0 and becomes 53. The raw average can still fail because the other inputs are unresolved. Increase the valid count from three to four and document why the reviewed average changed.
Use the report label to communicate the remaining gap. “Average of four valid line prices; two records unavailable” tells the team which part of the sample it observed. “Average 53” leaves that question open. If the purpose is an average per physical unit instead, calculate total valid amount divided by total valid quantity. Keep both ranges reconciled to the same rows.
Use a second source only when its fallback rule is justified
A practice company has a current store master and an archived list. Some old orders may refer to a store that appears only in the archive. A colleague proposes “look it up in the master and use the archive if the value is unavailable.” That sounds useful until you decide what counts as unavailable. A matched store with a missing current city and an absent store are different cases.
Base the route on whether the key exists
In the Store Review scratch workbook put S99 and the historic training label Historic Pune in M2:N2. Add S03 and Historic Nagpur in M3:N3. Keep the current master as it was, with S03 present and its current city unresolved. One valid historical reporting rule is “when the key is absent from the current master, consult the archive and mark that its value is historic.” A separate status specifies which source was used.
Column D already counts matches in the current table. On the three verified sample rows, =IF(D2=0,IFNA(VLOOKUP(A2,$M$2:$N$3,2,FALSE),"No archive match"),B2) models the required route. B2 contains the raw current lookup. A key count of zero opens the archive branch. A count of one keeps the current result. Review duplicate-key cases first in a separate quality check before using the formula on data without the exercise's unique-key assumption.
| Store | Current key count | Result | Why |
|---|---|---|---|
| S01 | 1 | Pune | Current result exists. |
| S99 | 0 | Historic Pune | Absent from current list and found in archive. |
| S03 | 1 | #N/A | Current key exists and its City field needs review. |
| S97 | 0 | No archive match | Absent from both verified key lists. |
Try S97 as a new request with its corresponding raw lookup and key count filled in. The archive's exact lookup fails and the limited wrapper supplies a review status. Verify that you can report the source for S99 even though its fallback displays text. The historical city may be suitable for a dated report. A current routing sheet needs the currently verified city. Preserve the difference when presenting the output.
Inspect a fallback that can fail too
Consider =IFERROR(VLOOKUP(A2,$J$2:$K$4,2,FALSE),VLOOKUP(A2,$M$2:$N$3,2,FALSE)). For a request with no match in either list, both expressions can fail. A fallback calculation is still a calculation and can produce its own error. In this example the broad wrapper also uses the archive when a current return field is faulty. That might display a believable historical city without anyone noticing why the current lookup failed. Verify whether the alternate source is permitted and whether you have a defined result if it also fails.
Recognise a row error separately from an array output problem
In Microsoft Excel versions with dynamic array support, a single formula can calculate several records and place the values into neighboring cells. If you already have Unit Check, try a small preview with B2:B5 and C2:C5. In an empty area outside an Excel Table, with room below, enter =IFERROR(B2:B5/C2:C5,"Review"). In a supported build it can display 32, Review, 90 and Review in four cells. The wrapper handled the result for each row of the array.
Verify the rows and the destination space
Compare the array output with the first four rows of the one-formula-per-row version. For the purpose of this optional preview the shorter label has the same review meaning. Use the individual formulas if your Excel build does not support the expected spill behaviour. A spill requires space in the destination. If the desired output area is occupied, inspect the conflicted cells and choose an empty area. The fallback addresses the inner arithmetic cases, so plan for the output space separately.
The preview uses aligned ranges with equal lengths. If your custom formula refers to one extra amount or quantity, inspect the ranges before comparing its output with the row results. A missing input should remain visible in the row audit. A compact formula is helpful only when there is a simple way to tie each output back to the right record.
When sharing a report based on an array result, tell the recipient where the computation begins and the records it currently covers. Changing one source value can affect the corresponding output when it recalculates. Adding more rows outside a fixed input range will not automatically make the formula cover them. This is a scope check to perform before trusting the absence of errors in the resulting display.
Distinguish no activity from an unavailable conversion rate
Suppose a shop views a made-up Instagram campaign report. It divides confirmed clicks by measured impressions. An entry with zero clicks and 300 impressions gives a verified 0%. Another entry has zero impressions and zero clicks, so there was no eligible base for this ratio. A third has five clicks and a blank impression field. It needs a source-data check. Returning 0% for all three makes the campaign report look complete while hiding two different unresolved measurements.
Name the output for each denominator state
Build a small check with Clicks in B and Impressions in C. First ask whether the denominator is missing. Next check whether it is a valid positive number for the exercise. Verify the numerator is a usable nonnegative count. Keep an explicit text status for each rejected condition. Only divide confirmed counts after those checks. Use a percentage display for the output. Verify a 10-click, 200-impression control produces 5% and that the true zero remains a measured 0%.
Before sharing the summary, provide a measured count and show how many rows had an unavailable or inapplicable denominator. If a teammate asks for a single campaign-wide rate, check whether the numerator and denominator can be summed from the same eligible rows. An average of row percentages and a total-clicks-over-total-impressions ratio can differ when observation sizes vary. Check both the error handling and the intended measurement.
Keep the route reproducible. If a source later confirms a missing impression count, update the input and verify the row becomes usable. A workbook that merely turned the original error into zero gives no distinct status to resolve. A recorded status makes this type of correction traceable.
Check whether a visible error label is really an Excel error
An export can contain the characters #N/A as plain text, while a calculation can return the actual Excel error of the same appearance. The source matters. A literal marker can be a documented missing-value code to interpret during import. An Excel error tells you the computed expression currently has no value. The two can look identical on screen and behave differently in formulas.
Create two outputs that look alike
Put =NA() in one scratch cell and type an apostrophe followed by #N/A in another. The apostrophe tells Excel to treat the entry as text. Both cells show the same characters. If the cells are A2 and A3, test them using =ISNA(A2) and =ISNA(A3). The first returns TRUE. The second returns FALSE because the stored value is a string. An IFNA wrapper returns its fallback for the first and keeps the literal string from the second.
Repeat the comparison with a formula returning the empty string and a numeric zero. An empty-looking display can still come from a formula. Zero is a number and remains zero through IFNA. Use the type checks and the source contract together. If an export defines some text as a missing marker, convert or label it deliberately during a controlled import. Preserve the original field while you test the transformation.
Count errors and labels for different reasons
For a review, keep exact examples of each source representation. Start with one real unavailable error, one text marker and a valid no-charge order. Record how each should feed the report or exception list. Filtering by a visible label can aid review, but properties such as actual error values and underlying number type determine how the next formula behaves. When a count seems too high or too low, inspect whether it was measuring text, errors or numeric values. Keep the original marker in a raw column and compare it with your interpreted status in a second column. This lets the source owner confirm which marker was supplied and lets you revise the interpretation without overwriting the original observation.
Try a new failure and choose the right treatment
- Preserve a real zero. Enter amount 0 and quantity 5 in a test copy. Check. The raw result and numeric report both contain a measured 0, and the status is OK. It counts as one numeric result.
- Test a valid key with a failed field. Use S03 when its source city is
#N/A. Check. Key Count is 1. The fallback describes an unavailable city, and the master row must be reviewed. Do not treat it as a request to create S03. - Prove the wrappers differ. Request a third column from a two-column lookup for a known store. Check. IFNA preserves
#REF!. IFERROR substitutes its broader fallback. Correct the selected column before attempting to use the result.
Check your understanding
1. Which wrapper changes only an #N/A result?
- A. IFNA
- B. IFERROR
- C. SUM
Answer A. IFNA specifically substitutes its alternate result for #N/A. A broken reference or divide-by-zero error still appears as itself.
2. Why is a generic “Check inputs” message more honest than “Check Qty” for broad IFERROR?
- A. Every calculation has a good quantity
- B. IFERROR can also catch a bad amount or a broken reference
- C. The IFERROR can inspect only quantities
Answer B. The wrapper sees an error but has no diagnosis. If the amount type is wrong, a quantity-only message could send the analyst to the wrong field.
3. S03 exists in the store master and its City cell is #N/A. What should happen?
- A. Add an additional S03 as a new store
- B. Treat the city as an empty key immediately
- C. Investigate the existing S03 City value
Answer C. The key is present. The return field is unresolved. Adding a duplicate key would not repair the source value and could confuse later lookups.
4. Which value should count as a measured numeric zero?
- A. Zero amount divided by a verified positive quantity
- B. A missing quantity represented by a fallback zero
- C. An invalid lookup return column represented by zero
Answer A. The amount and divisor are measured inputs and the arithmetic produces an actual zero result. The other two are unresolved situations.
5. What happens when IFNA receives a #REF! error?
- A. It automatically adjusts the lookup range
- B. It keeps the error visible
- C. It changes the result to #N/A
Answer B. IFNA handles only #N/A. A broken reference needs a different diagnosis and a repair in the underlying formula.
6. Why keep a count of numeric results beside a formatted report?
- A. Formatting guarantees correct data type
- B. Every blank-looking cell is absent from all counts
- C. It shows how many records supplied usable measured results
Answer C. A total can match even if some expected records were unavailable. A numeric count and an exception count show what the total represents.
Interview questions with worked answers
- When would you choose IFNA over IFERROR?
I choose IFNA when the one expected error is an unavailable result and the fallback has a clear meaning. It lets unrelated failures such as a broken reference remain visible. I inspect whether an expected lookup absence could also come from an error in the returned cell.
- How would you investigate a report showing Check inputs for many rows?
I inspect a raw formula and one known valid row. For a ratio I check the numerator and denominator separately. For a lookup I check the key, range and return field. Then I count cases by actual cause, rather than assuming one generic message means the same error everywhere.
- Why avoid using zero as a default for every missing calculation?
Zero can be a real observation. If I add unmeasured cases to a numeric column as zeros, I change averages and observation counts. I keep a separate status for unavailable values and verify the report's denominator and exception count.
- How do you prove a missing lookup value came from an absent key?
I check the exact requested ID against the master and inspect its type and spelling. If the key is present, I follow that row to its return field. If it is absent, I confirm whether the ID should exist. A fallback alone cannot distinguish those causes.
- How would you make a user-facing report readable while preserving debugging?
I supply an explicit unavailable or review status for known cases and retain the raw calculation or source evidence elsewhere in the workbook. I reconcile the number of measured outcomes and exceptional rows. I verify a normal case, a planned missing case and a deliberately different formula failure.
Quick recall cards
- IFERROR
Provides a fallback for a broad set of calculated errors. Use an accurate message and keep evidence.
- IFNA
Provides a fallback only for
#N/A. A different error remains visible. - Missing key
Check whether the requested identifier exists in a reviewed source before choosing an action.
- Broken return value
A matching row can contain an error. Inspect its return field and keep the key intact.
- Measured zero
A real numeric outcome. Preserve it when counting and averaging valid data.
- Report evidence
Check raw results, review statuses and numeric completeness together.
The next lesson uses products of matching rows and conditional totals. Bring the same data discipline there. Before summing products, check that quantity and price ranges refer to the same valid records and that unresolved entries are visible.
Official Microsoft references
Continue practising: explore the existing Excel Task Hub for additional exercises.