Skip to main content

Here's how easily it happens. Three rows of daily sales, with one row copied by mistake:

DateStoreSales ($)
2025-03-03S011,164
2025-03-03S02890
2025-03-03S02890
Total2,944

The real total is $2,054. One copied row made the shop look $890 better off. This topic gives you nine checks to run before you trust a file, and three habits that keep your cleaning safe.

Nine checks before you trust a file​

You don't need special software. Each check below can be done in Excel or Google Sheets.

1

Duplicates

A duplicate is a row that repeats another row at the same grain, so the same thing is counted more than once.

It usually happens when two files are combined, or the same export is pasted twice. Totals and counts go up, and nothing looks wrong.

Example The copied row above. Same date, same store, same amount.

Tip In Excel, Home › Conditional Formatting › Highlight Cells Rules › Duplicate Values shows repeats in a column, and Data › Remove Duplicates deletes rows that match on the columns you choose. Conditional formatting compares single cells, though, so a repeated amount or date isn't always a duplicate row. To check whole rows, add a helper column such as =COUNTIFS(A:A,A2,B:B,B2)>1, which shows TRUE when the same date and store appear more than once. And check against the grain: if one row is one single sale, two identical rows can both be real.

2

Missing values

A missing value is a cell with nothing recorded in it. It is not the same as zero.

A blank can mean “nothing happened” or “we don't know”. Those lead to different answers, so find out which before you fill it in.

DaySales
Monday10
Tuesday20
Wednesday(blank)

Example Excel's AVERAGE skips the blank and gives 15. If someone types 0 into the blank, the average becomes 10. Same data, different answer.

Tip =COUNTBLANK(B2:B100) counts the empty cells in a range, so you know how many there are before you start.

3

Formats

A format problem is a value stored in a form the spreadsheet can't use correctly, such as a number saved as text or a date saved as text.

Text numbers often come from system exports. Excel usually shows them aligned to the left, sometimes with a small green triangle in the corner.

DaySales
Mar 31,164
Mar 4975 (stored as text)
Mar 5985
=SUM(…)2,149

Example SUM skips text in a range, so this total is 2,149 instead of 3,124, and no error appears.

Tip =ISNUMBER(B2) returns TRUE only for real numbers. =VALUE(B2) turns text into a number, and =TRIM(A2) removes extra spaces, though not the non-breaking spaces some exports contain.

4

Inconsistent labels

Inconsistent labels are different spellings or names used for the same category.

“North”, “Nth” and “North ” (with a space at the end) look like one region to you, but a spreadsheet treats them as three. Your region totals split into pieces.

Example A PivotTable by region shows North at $0.62m and “Nth” at $0.18m, instead of one North total of $0.80m.

Tip Click the filter arrow on a column to see every distinct value in it (“North ” with a space can look identical to “North”, so =LEN(A2) helps spot it). Fix the variants with Find and Replace, and use Data › Data Validation with a list to stop new ones.

5

Units and scale

Scale is the multiplier a number is reported in, such as units, thousands or millions.

Topic 2 showed how to spot the scale. Cleaning means converting everything to one scale before you combine files.

Example One file shows sales as 2,310 in thousands, another as 2,310,000 in dollars. Multiply the first by 1,000 before putting them in one table.

Tip Put the scale in the column heading, such as “Sales ($000)”, so nobody has to guess. If files are in different currencies, convert them to one currency and write down which exchange rate you used, for example the month's average rate.

6

Signs

A sign convention is the rule for whether an amount is shown as positive or negative.

Some systems show refunds and costs as negative numbers, others as positive numbers in a separate column. Mixing the two rules flips amounts the wrong way.

Example A $340 refund should reduce sales. If it's added as +340 instead of −340, sales are overstated by $680, twice the refund.

Tip Choose one rule, write it in your schema map, and convert every file to it.

7

Totals that don't match

Reconciliation is comparing two sets of records to check that they agree, and investigating and correcting any differences.

If the parts don't add up to the total, or two reports disagree, something is missing, repeated or in the wrong place.

RegionSales ($m)
North0.80
South0.62
East0.50
West0.39
Sum of regions2.31
Total in the annual report2.31
Difference0.00 ✓

Tip Add a check cell, =SUM(parts)-Total, and look for 0. On a balance sheet, assets must equal liabilities plus equity, so the same check works there.

8

Outliers

An outlier is a data point that is very different from most of the other values in a data set. It may be a mistake, or a real but unusual event.

Store S01, daily sales in March ($)

02,5005,0007,50010,0001,164Mar 3975Mar 49,850Mar 51,020Mar 61,105Mar 7980Mar 81,210Mar 91,050Mar 101,130Mar 11995Mar 12

One quick way to flag outliers is the 1.5 × IQR rule. Find the middle half of your values, then flag anything far outside it:

Q1 (about a quarter of values are below this)1,001.25
Q3 (about three quarters are below this)1,155.50
IQR = Q3 − Q1154.25
Upper limit = Q3 + 1.5 × IQR1,386.88
Lower limit = Q1 − 1.5 × IQR769.88

Only 9,850 is outside the limits, so it's flagged. Flagged doesn't mean wrong. It could be a typing error for 985, or a real bulk order.

Tip =QUARTILE.INC(B2:B11,1) and =QUARTILE.INC(B2:B11,3) give Q1 and Q3. Flag the value, check it against the source, then decide. Never delete an outlier just because it looks odd.

9

Dates in the right period

Cutoff means making sure each transaction is recorded in the period it actually belongs to.

Around month end, a sale made on March 31 can end up in April's file, or the other way around. Each month then looks wrong, even when the year's total is right.

Example A $2,000 order delivered on March 31 but entered on April 1 makes March $2,000 too low and April $2,000 too high.

Tip Filter the date column for the first and last few days of the period, and compare the entry date with the delivery or invoice date. Any that fall in different months are worth checking: make sure each is counted in the month the sale actually happened.

Fix, flag or remove​

Finding a problem is half the job. The other half is deciding what to do about it, and that decision should never be a guess.

Do thisWhenExample
Fix itYou can confirm the right value from a sourceThe till receipt shows $985, so 9,850 was a typing error
Flag itYou can't confirm it yet, and it might matterA blank day of sales: keep it blank, mark it, and ask
Remove itYou're sure it shouldn't be counted for your questionAn exact duplicate row, or a test transaction

Whichever you choose, write it in the change log. A flagged problem also goes in your message to whoever uses the numbers, so they know what's still open.

Tip When you're unsure, flag rather than fix or remove. A flag can be cleared later. A wrong fix hides the problem.

Three habits that keep cleaning safe​

A

Keep the raw data untouched

Copy the original into a tab called Raw and never edit it. Do your cleaning on a copy, so you can always go back.

B

Make every change repeatable

Use formulas or recorded steps rather than typing over cells by hand. In Excel, Power Query (Data › Get Data) records each cleaning step, so next month you can refresh the file and repeat the same cleaning in minutes.

C

Keep a change log

A change log is a list of every change you made to a dataset, with the reason for each. It's part of the data's audit trail.

One line per change: what you changed, why, and how many rows it touched. If anyone questions a number, you can show exactly how you got it. Also note the number of rows and the total before and after cleaning (these are called control totals), so you can show nothing was lost or added by accident.

Let's see it in action​

The shop sends you sales for stores S01 and S02 for three days in March. Here's the file as it arrived:

RowDateStoreRegionSales ($)
12025-03-03S01North1,164
22025-03-03S02North890
32025-03-03S02North890
42025-03-04S01North975 (text)
52025-03-04S02“North ”1,020
62025-03-05S01North9,850
72025-03-05S02North(blank)

A plain =SUM on this column gives $13,814. Running the nine checks finds five problems. Here's the change log:

CheckWhat changedWhyRows
DuplicatesRemoved row 3Exact copy of row 2: same store, same day1
FormatsRow 4 changed from text to the number 975SUM was skipping it1
LabelsRow 5 “North ” changed to “North”The extra space would create a second North region1
OutliersRow 6 changed from 9,850 to 985The till receipt for that day shows $985, so it was a typing error1
Missing valuesRow 7 left blank and flaggedNot zero: the owner is checking what happened that day1

After cleaning, the five rows we can trust add up to $5,034 (1,164 + 890 + 975 + 1,020 + 985), with S02's sales for March 5 still missing. Control totals: 7 rows received and 6 after cleaning (one duplicate removed, the flagged blank kept); total $13,814 before and $5,034 after, with every difference explained in the log. The file first said $13,814. Without the checks, every number built on it would have been badly wrong.

This is an invented shop. All numbers are examples.

Try it yourself (optional)

Here are four rows from another day's sales file. One row = one store, on one day.

RowDateStoreRegionSales ($)
12025-03-06S01North1,105
22025-03-06S01North1,105
32025-03-06S02Nth1,240
42025-03-07S01North11,800

Which checks find a problem, and would you fix, flag or remove each one?

Show the answer

Rows 1 and 2: same store and same day, which is the grain, so row 2 is almost certainly a duplicate. Remove it and log it.

Row 3: “Nth” is an inconsistent label. Fix it to “North”.

Row 4: $11,800 is about ten times a normal day for S01, so it's an outlier. Flag it and check the till receipt before you change anything. It could be a typing error for $1,180, or a real bulk order.

What this looks like at work​

Most finance work starts with someone else's file. For example:

  • Another team sends month-end numbers that you need to report on.
  • You export data from a company system, and some columns come out as text.
  • You combine two spreadsheets that were set up in different ways.

Each time, run the nine checks first. It's much easier to fix a problem before your numbers go into a report than after.

Two more things professionals do. First, prioritize: chase down the errors big enough to change a decision before polishing small ones. Second, if the same problem keeps coming back, tell whoever owns the data, so it gets fixed at the source and not just in your copy.

How you'd say it to your manager​

Tell people what you found and changed, so they can trust the numbers that follow.

Example message

Hi Maya, I cleaned the March sales file before analyzing it. I removed one duplicate row, fixed a number Excel was reading as text, tidied one region label, and corrected one typing error (9,850 should be 985, per the till receipt). Store S02's sales for March 5 are missing, so the March total is incomplete until we get that day. Every change is listed in the Log tab.

Notice it says what changed, why, and what's still open.

Remember

  • Run the nine checks before you trust a file: duplicates, missing values, formats, labels, units and scale, signs, totals, outliers and dates in the right period.
  • A blank is not a zero. Find out what it means.
  • Flag outliers and check them. Don't delete them by reflex.
  • Never edit the raw data. Clean a copy, and log every change.

Where to go next​

Practice with real companies: in the free Project 01, check that each company's figures are in the same scale and that the totals match the annual reports.

Keep learning: Topic 4, Ask a question worth answering, starts step 2 of the method.

Spotted a mistake or something unclear? Email [email protected] or use the contact page. For education only; not financial or investment advice.