5.16 Error Values in Data
Before
| Store ID | Orders | Sales | AOV |
|---|---|---|---|
| BLK-PUN-01 | 412 | 1,31,840 | 320 |
| BLK-NSK-01 | 0 | 0 | #DIV/0! |
| BLK-XXX-99 | 25 | #N/A | #N/A |
After
| Store ID | Orders | Sales | AOV |
|---|---|---|---|
| BLK-PUN-01 | 412 | 1,31,840 | 320 |
| BLK-NSK-01 | 0 | 0 | – |
| BLK-XXX-99 | 25 | Missing in master | – |
Steps in Excel
- Find all errors: Home › Editing › Find & Select › Go To Special › Formulas › tick only Errors (or Constants › Errors for pasted error text).
- Count them:
=SUMPRODUCT(--ISERROR(D2:D100)). - Fix the cause (Module 3.17) – e.g.
=IF(B3=0,"–",C3/B3)for division,=IFNA(XLOOKUP(…),"Missing in master")for lookups. - To total a column that contains errors:
=AGGREGATE(9,6,D2:D100)(9 = SUM, 6 = ignore errors) – see Module 6.
Ravindra Bagale's Tip
Report madhe #N/A kiwa #DIV/0! disla ki manager la vishwas rahat nahi – pan khup students te IFERROR ne 0 karun lapavtat, aani average chukto. Error la 0 nako, "–" kiwa blank dakhva, aani khare missing records vegle list kara. AGGREGATE ne totals error-proof hotat.
Practice task
In a sheet with 5 kinds of errors, select them with Go To Special, count them, fix each cause, and total the column with AGGREGATE before and after fixing.