Ravindra BagaleCourses & study guides मराठी Track your progress

5. Data Cleaning A–Z

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

About this data: Teaching sample for a fictional shop “BrightLedger Finance”. Figures and names (e.g. Aamir Khan) are made up for this lesson on error values in data.

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 –

About this data: Demo table only — not real customer or company data. Built to practise error values in data.

Steps in Excel

  1. Find all errors: Home › Editing › Find & Select › Go To Special › Formulas › tick only Errors (or Constants › Errors for pasted error text).
  2. Count them: =SUMPRODUCT(--ISERROR(D2:D100)).
  3. Fix the cause (Module 3.17) – e.g. =IF(B3=0,"–",C3/B3) for division, =IFNA(XLOOKUP(…),"Missing in master") for lookups.
  4. To total a column that contains errors: =AGGREGATE(9,6,D2:D100) (9 = SUM, 6 = ignore errors) – see Module 6.

Ravindra Bagale's Tip

When a manager sees #N/A or #DIV/0! in a report, they stop trusting it – but many students hide these by turning them into 0 with IFERROR, and then the average is wrong. Don't show an error as 0; show "–" or a blank, and list the truly missing records separately. AGGREGATE makes totals error-proof.

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.

Loading practice tasks...

  1. Safe division (Easy): Divide C3 by D3. If there is an error, show 0.
  2. Normal division (Easy): Divide C2 by D2. If error, show 0.
  3. Find a manager (Easy): Find the manager of A3 from Master.
  4. Safe division with a note (Easy): Divide C3 by D3. If error, show "No visitors".
  5. Missing manager (Medium): Find the manager of A5. If not found, show "Not in Master".
  6. Is it a number? (Medium): Is C5 a number? (TRUE or FALSE)
  7. Sum that skips text (Medium): Total sales in C2:C7.
  8. Count good numbers (Medium): How many numbers are in E2:E7?
  9. Count error text (Hard): How many cells in E2:E7 start with "#"?
  10. Average of good values (Hard): Average of the numbers in E2:E7.
  11. Recalculate safely (Hard): Total of C2:C7 ÷ D2:D7 for each row, where errors count as 0.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Error Values In Data?
Card 1: What is Error Values In Data? · Download PNG
Revision card 2: Tiny example — Error Values In Data
Card 2: Tiny example — Error Values In Data · Download PNG
Revision card 3: Checklist — Error Values In Data
Card 3: Checklist — Error Values In Data · Download PNG