Key Takeaways
- The audit template is a five column table you copy into a new sheet, with a formula and a pass rule on every row.
- On five sample rows, the completeness formula returns 4 where 5 are expected, so the dataset fails that check.
- Normalising before COUNTIF flags a whitespace variant that the raw count misses.
- A stored date and result turn a one-off check into a baseline for the next audit.
You can run five checks on five sample rows and record a pass rule for each one.
| Check | Exact formula |
|---|---|
| Completeness | =COUNTA(B2:B6) returns 4 of 5 |
| Uniqueness | =COUNTIF($E$2:$E6,E6) returns 2 after normalisation |
| Validity | =IF(ISNUMBER(DATEVALUE(C6)),"OK","TEXT") returns TEXT |
What you should see: four failures out of five checks, with the double space in row 5 flagged by the consistency formula.
What You Will Get
You will have a copyable audit template, three worked checks with exact outputs and a row by row record of whether the sample passes. The template is a table you copy into a new sheet, with a formula and a pass rule on every row. Every check is a formula you can paste, so there is nothing to download.
The Sample Sheet
Type these five rows into A1:D6 of a blank sheet, with headers in row 1.
| Name | Joined | City | |
|---|---|---|---|
| Acme Corp | ops@acme.example | 2026-01-04 | London |
| Acme Corp | 2026-01-11 | London | |
| Katherine Johnson | kj@example.com | 2026-02-02 | Leeds |
| Katherine Johnson | kj@example.com | 2026-02-02 | Leeds |
| Globex Ltd | hello@globex.example | not-a-date | Manchester |
The sheet contains one blank email, one whitespace variant, one exact duplicate and one value stored as text in a date column.
The Audit Template
Copy this table into a second sheet called Audit. The formula column is what you type in cell B2 of that sheet when you adapt it to your own range.
| Dimension | Formula or check | Sample result | Pass rule |
|---|---|---|---|
| Completeness | =COUNTA(B2:B6) | 4 of 5 | No missing value in a required field |
| Uniqueness | =COUNTIF($A$2:$A6,A6) | 2 for Acme Corp | One row per real entity |
| Validity | =IF(ISNUMBER(DATEVALUE(C6)),"OK","TEXT") | TEXT | Every date parses as a date |
| Consistency | =IF(LEN(A5)<>LEN(TRIM(A5)),"SPACES","OK") | SPACES | No stray whitespace |
| Timeliness | =TEXT(MAX(C2:C6),"yyyy-mm-dd") | 2026-02-02 | Newest record inside the refresh window |
The sample fails four of the five checks. That is the point of a template: it produces a list of failures rather than an impression that the sheet looks fine.
Worked Column, Completeness
In cell B2 of the Audit sheet, enter =COUNTA(Data!B2:B6). The result is 4, because row 3 has an empty email. The expected value for a required field is 5, so record FAIL in the result column.
To find which row failed, put =IF(B3="","MISSING","") in a helper column of the data sheet and fill down. Only row 3 is marked. A count tells you the size of the problem and the helper tells you where it is.
Set the pass rule before running the check. If the email column is optional in your dataset, the same result of 4 is a pass. The number is not a verdict until the rule is written down.
Worked Column, Uniqueness
A raw COUNTIF on column A returns 2 for the second Acme Corp row and 1 for every other name. The Katherine Johnson pair is not caught because one value has two spaces between the words.
Add a normalised key in column E with =LOWER(TRIM(A2)). Now run =COUNTIF($E$2:$E6,E6). The result for row 5 is 2, so the whitespace variant is flagged. Use a growing range so the later row of a pair receives the flag and the earlier row stays clean.
| Row | Raw count | Count after normalisation |
|---|---|---|
| Acme Corp, row 3 | 2 | 2 |
| Katherine Johnson, row 5 | 1 | 2 |
Normalisation belongs before the count, not after it. Exact matching requires identical strings, while fuzzy matching scores how close they are, so near duplicates that differ by spelling need a character similarity score instead of COUNTIF.
Worked Column, Stray Spaces
Enter =IF(LEN(A2)<>LEN(TRIM(A2)),"SPACES","OK") in a helper column and fill down. Row 5 returns SPACES and the other four rows return OK. This check is cheap and it explains why the uniqueness count changed after normalisation.
Fix the value with =TRIM(A5) in a new column rather than editing in place, so the original stays available for comparison. Apply the same expression to every text column you plan to match on.
Recording the Result
Add a Log sheet with four columns: audit date, dataset name, number of failed checks and reviewer. Append one row per run. The first run on the sample records four failures, which becomes the baseline for the next pass.
A check that nobody records is a check that nobody can compare against. Keep the template, the helper columns and the log in the same workbook so a later reviewer can reproduce the numbers.
Frequently Asked Questions
Where is the audit template?
The template is printed in the worked section of this page. It has four columns: dimension, formula or check, sample result and pass rule. Copy the table into a new sheet and fill the formula column with the expressions shown.
What does the completeness check return for the sample?
COUNTA on the email column returns 4 from five rows, so one value is missing. The pass rule in the template is no missing value in a required field, so the sample fails completeness.
How do I find near duplicates in the audit?
Normalise the key column, the column whose values identify a row, with LOWER and TRIM, then use COUNTIF on the normalised key. In the sample, Katherine Johnson with an extra space is flagged after normalisation but not before it.
How often should I run the audit?
Run it when the shape of the data changes and on a fixed cadence for active lists. A monthly pass suits many small datasets, while a weekly pass suits transactional data. Record the date and the result so the next run has a baseline.
You Might Also Like
About the Author
Andrew Apell is the creator of Flookup Data Wrangler and has built data cleaning tools for Google Sheets since 2018.
Every Flookup result described here can be checked in the documentation.
Read
Our Story
for the background or
contact the team
with any questions about this post, including corrections, unclear steps or use cases we have not covered yet.