Why "is the data good enough?" needs a number
Every analyst has lived through this moment. The campaign list is ready, the credit review is scheduled, the dashboard is about to go to management, and then somebody notices that a fifth of the email addresses are missing, a country column is half empty, or the same customer appears three times. The analysis was fine. The data was not. The fix at that point is expensive, because the deadline is now, and trust in every number that came before takes a hit too.
This course is for analysts, finance and operations people, CRM and marketing teams, and anyone who owns a spreadsheet or database that other people rely on. It turns the vague question "is our data good?" into a handful of percentages you can calculate in Excel, track over time and report with a straight face. This free first lesson covers the most basic and most common data quality metric of all: completeness. By the end you will know how to count blank cells correctly, turn them into completeness rates per column, measure how many whole records are usable, and flag the weak spots with conditional formatting.
We use the same fictional company as the lab above: Harbourline Office Supply, whose CRM export holds 15 customers with an ID, company name, email, phone, country and segment. Harbourline wants to send a mailing campaign and run a credit review, and before it does either it wants to know whether the customer table can be trusted. All names, numbers and addresses are invented for teaching.
The six dimensions of data quality, in one minute
Data quality professionals usually describe quality along several dimensions. The exact list varies between frameworks, but most include these six, and this course has a lab for each:
- Completeness: is the value there at all?
- Validity: does it follow the rules (format, allowed values, range)?
- Uniqueness: does each real-world thing appear only once?
- Consistency: do two tables or two fields agree with each other?
- Timeliness: did the data arrive soon enough, and is it still fresh?
- Accuracy: does the value match reality, checked against a trusted source?
Each dimension becomes a rate between 0% and 100%. Rates can be compared across columns and tables, tracked week by week, combined into a scorecard and turned into targets. Completeness comes first for a simple reason: you cannot judge whether an email is valid, unique or accurate if there is no email to look at.
Completeness explained simply
Completeness asks one question per cell: is something there? For a single column the metric is
Column completeness = 1 − blank cells ÷ number of rows
If 2 of 15 emails are missing, email completeness is 1 − 2 ÷ 15 = 86.7%. You can also write it the other way round, as filled cells ÷ rows, which gives the same answer when "filled" and "blank" are defined consistently. In Excel, the blank side is counted by COUNTBLANK and the filled side by COUNTA. They are not perfect mirror images, and the difference matters, as you will see in the common mistakes section below.
Column completeness alone can be misleading, because not every field matters equally. A missing phone number is a gap you can live with, a missing email blocks the campaign for that customer. That is why the lab marks each column in row 20 as Required (ID, company, email, country) or Optional (phone, segment). The second metric is therefore:
Record completeness = records where every required field is filled ÷ all records
Record completeness is stricter, and it is usually the number the business actually cares about. A table can have 90% completeness in every column and still have far fewer fully usable records, because the gaps fall in different rows. In Harbourline's table the gaps happen to be spread across three different customers, so three records fail.
Finally, you need a target. A common choice for required fields is 95% or more, but the right threshold depends on the use. For example, a team mailing a newsletter might accept 90% email completeness, while a billing system might need 100% on the invoice address. Write the target down next to the metric so that a coloured cell means something specific.
Worked example: Harbourline's customer table
Here is the customer table from the lab, measured column by column. The blanks were counted in row 18, the completeness rates in row 19, using the default lab data.
| Column | Rule | Blank cells (row 18) | Formula in row 18 | Completeness (row 19) | Below 95%? |
|---|---|---|---|---|---|
| CustID (B) | Required | 0 | =COUNTBLANK(B2:B16) | 100.0% | no |
| Company (C) | Required | 0 | =COUNTBLANK(C2:C16) | 100.0% | no |
| Email (D) | Required | 2 | =COUNTBLANK(D2:D16) | 86.7% | yes |
| Phone (E) | Optional | 4 | =COUNTBLANK(E2:E16) | 73.3% | yes |
| Country (F) | Required | 1 | =COUNTBLANK(F2:F16) | 93.3% | yes |
| Segment (G) | Optional | 3 | =COUNTBLANK(G2:G16) | 80.0% | yes |
Four of the six columns fall below the 95% target, but only two of them are required fields with a real problem: Email at 86.7% and Country at 93.3%. Phone (73.3%) and Segment (80.0%) are optional, so their low scores are worth knowing but do not block the campaign. This is exactly why the rule row exists. Without it, the phone column would look like the biggest problem in the table, when in fact the two missing emails cost more.
Now the record view. In column H the lab asks you to flag each customer with 1 if all four required fields are filled and 0 otherwise. A readable formula for H2, filled down to H16, is =IF(AND(B2<>"",C2<>"",D2<>"",F2<>""),1,0). Three customers fail: Dunlin Logistics and Juniper Hotels have no email, and Fairway Legal has no country. The share of complete records in B22 is =AVERAGE(H2:H16), or in a single cell without the helper column, =SUMPRODUCT((B2:B16<>"")*(C2:C16<>"")*(D2:D16<>"")*(F2:F16<>""))/ROWS(B2:B16). Both return 12 ÷ 15 = 80%.
Notice the gap between the two views. The worst required column is 86.7% complete, yet only 80% of records are fully usable. When gaps are scattered across different rows, record completeness is always at or below the lowest column score, and often well below it. If you only report column numbers, you will overestimate how many customers you can actually reach.
Step by step: measuring completeness in Excel
Follow these steps in the lab above or in your own copy of Excel. They work in Excel 2016, 2019, 2021 and Microsoft 365.
- Find the blanks visually first. Select B2:G16, press F5 (or Ctrl+G), click Special…, choose Blanks and click OK. Excel selects every empty cell, so you can see at a glance where the gaps are. Give them a fill colour if you like, then undo it later.
- Count blanks per column. In B18 type
=COUNTBLANK(B2:B16)and press Enter. Select B18:G18 and press Ctrl+R to fill the formula to the right. The relative references shift automatically, so E18 becomes=COUNTBLANK(E2:E16), which returns 4 for the phone column. - Turn counts into completeness. In B19 type
=1-COUNTBLANK(B2:B16)/ROWS(B2:B16)and fill right to G19. UsingROWSinstead of a hard-coded 15 means the formula stays correct if you extend the range later. - Format as a percentage. Select B19:G19 and press Ctrl+Shift+%, or use Home → Number → Percent Style. Add one decimal with Home → Increase Decimal so 86.7% does not round to 87%.
- Flag complete records. In H2 type
=IF(AND(B2<>"",C2<>"",D2<>"",F2<>""),1,0). Double-click the fill handle (the small square at the bottom right of the cell) to copy it down to H16. Only the four required columns appear in the test. - Compute record completeness. In B22 type
=AVERAGE(H2:H16)and format it as a percentage. The average of 1s and 0s is the share of 1s. - Highlight weak columns. Select B19:G19, go to Home → Conditional Formatting → Highlight Cells Rules → Less Than…, type
0.95(or95%), choose Light Red Fill and click OK. The four columns below target turn red. If the target might change, type it in a cell such as J19 and enter=$J$19in the dialog instead. - Label the result. Next to the table, write the date of the export, the number of rows and the target. A completeness rate without a date and a denominator is hard to compare next month.
=BYCOL(B2:G16,LAMBDA(c,1-COUNTBLANK(c)/ROWS(c))). It spills across six cells. Older versions need the fill-right approach above.Common mistakes and how to spot them
Completeness looks like the simplest metric in the course, which is exactly why it is so often measured wrongly. Watch for these traps:
- Spaces that look like data. A cell containing a single space is not blank for
COUNTBLANK,COUNTAor<>"". How to spot it: compare=COUNTBLANK(D2:D16)with=SUMPRODUCT(--(LEN(TRIM(D2:D16))=0)). If the second is larger, some cells contain only spaces. Validity checks in the next lesson catch these properly. - Placeholders that hide gaps. Values such as "N/A", "-", "unknown", "0" or "test@test.com" are technically filled but carry no information. How to spot it: sort the column or use a quick PivotTable on it, then count the suspicious values with
COUNTIFand add them to the blank count if your rules treat them as missing. - Mixing COUNTA and COUNTBLANK. A formula that returns "" counts as blank for
COUNTBLANKbut as filled forCOUNTA. How to spot it: ifCOUNTA+COUNTBLANKis larger thanROWS, the range contains such formulas. Pick one definition and use it everywhere. - Wrong denominator. Dividing by a hard-coded 15 breaks silently when rows are added, and dividing by
COUNTAof the same column gives 100% every time. How to spot it: the denominator should be the same for every column, the number of records, whichROWSgives you. - Including header or total rows. If the range starts at row 1 or runs into row 18, the header or the summary cells change the result. How to spot it: check that every range in the summary rows is exactly B2:B16 and so on, using Ctrl+` to show all formulas at once.
- Treating all columns alike. Reporting an average completeness across every column mixes optional and required fields. How to spot it: if the headline number is driven by a field nobody uses, report required and optional fields separately, or weight them, which you will do in the scorecard lesson.
- Forgetting record completeness. High column scores can hide a low share of usable records. How to spot it: always report both, as in the worked example, where the lowest required column is 86.7% but only 80% of records are complete.

Quick reference: Excel functions and shortcuts for completeness
These are all the functions, tools and shortcuts used in this lesson, ready to copy.
| Function / tool | What it does here | Example |
|---|---|---|
COUNTBLANK(range) | Counts empty cells, including formulas that return "" | =COUNTBLANK(D2:D16) → 2 |
COUNTA(range) | Counts non-empty cells (a "" formula counts as filled) | =COUNTA(D2:D16) → 13 |
ROWS(range) | Number of rows in a range, so the denominator never goes stale | =ROWS(D2:D16) → 15 |
AND(…) | TRUE only if every test is TRUE | =IF(AND(B2<>"",C2<>"",D2<>"",F2<>""),1,0) |
SUMPRODUCT | Multiplies TRUE/FALSE arrays and adds them up | =SUMPRODUCT((D2:D16<>"")*(F2:F16<>"")) |
TRIM + LEN | Finds cells that only look filled (spaces only) | =SUMPRODUCT(--(LEN(TRIM(D2:D16))=0)) |
COUNTIF | Counts placeholders such as "N/A" or "-" | =COUNTIF(E2:E16,"N/A") |
| Go To Special → Blanks | Selects every empty cell in a range | F5 or Ctrl+G → Special… → Blanks |
| Conditional Formatting | Colours values below a target | Home → Conditional Formatting → Highlight Cells Rules → Less Than… |
| Percent format | Shows 0.8667 as 86.67% | Ctrl+Shift+% |
| Fill right / fill down | Copies the formula across a selection | Ctrl+R, Ctrl+D |
Real-world uses
Completeness checks are useful wherever a decision depends on a list of records. A few concrete examples:
- Before a mailing or email campaign. Email and postal address completeness tell you how many customers you can actually reach, and the record flag in column H gives you the exact list of customers to fix first.
- Credit and risk reviews. A credit review may need a country, a tax number and a credit limit for every account. Record completeness on those required fields shows how many accounts can be reviewed today and how many need follow-up.
- Migrating to a new CRM or ERP. Migration projects often define mandatory fields in the new system. Measuring completeness on the old data before the move shows how many records would fail import, so the cleanup can start early.
- Monthly reporting to management. A small table of completeness rates per key field, with the same target each month, makes data quality visible and turns it into something a team can own and improve.
- Survey and research data. Item non-response is a completeness problem. The same formulas show which questions people skip and how many respondents answered every core question.
What you will build in the rest of this course
The free lesson measures whether values are there. The remaining 19 lessons measure whether they are right, unique, consistent, on time and accurate, and then bring everything together in a scorecard and a dashboard. They are part of the paid course, a one-time purchase of $9.90, and each one is a hands-on lab on the same kind of realistic business data.
Validity: Format, Allowed-Value and Range Rules. An email that is present can still be useless. You will test every email for a basic format, check every country against an allowed list, check credit limits for type and range, compute a validity rate per rule and per row, and add a Data Validation rule that stops new bad limits from being typed in at all.
Uniqueness: Duplicate Keys, Distinct Counts & Duplicate Emails. Duplicates inflate customer counts and send the same letter twice. You will flag repeated customer IDs, count distinct values, compute a uniqueness rate, and catch duplicate emails that differ only in capital letters, then colour the duplicate keys so they stand out.
Consistency across Tables: Orphan Keys and Conflicting Values. Data quality problems often live between tables. You will look up every order's customer in the master table, count orphan orders and the revenue they carry, find orders whose region contradicts the master record, and compute a consistency rate.
Timeliness: Entry Lag, SLA Compliance, p90 and Freshness. Correct data that arrives late still causes bad decisions. You will measure how long each order took to reach the CRM, the share entered within a 4-hour SLA, the 90th-percentile lag with PERCENTILE, and how stale the whole table is at reporting time.
Accuracy: Checking a Sample against Verified Values. The only way to know whether values are true is to check them. You will compare 12 CRM records with values verified at the source, match cities while ignoring case and stray spaces, accept revenues within a 5% tolerance, and compute field accuracy together with the margin of error of a small sample.
The DQ Scorecard: Weighted Scores, RAG Status & Icon Sets. Management wants one number and a colour. You will combine five dimension scores into a weighted DQ score per dataset, assign Green, Amber or Red status, name the weakest dimension with INDEX and MATCH, and add traffic-light icon sets.
Mid-course Project: DQ Trend Dashboard & the Cost of Poor Data (with a Chart). Lab 8 turns all of this into a trend. You will compute weekly error rates and the cost of bad records, chart the DQ score with a trendline, and estimate in which week the trend reaches the 97% target, the kind of slide that wins budget for a cleanup project.
Summary
Completeness is the share of values that are actually there. Count blanks per column with COUNTBLANK, divide by ROWS and subtract from 1. Separate required from optional fields, measure record completeness with AND or SUMPRODUCT, and highlight anything below your target with conditional formatting. In Harbourline's table that gives column scores between 73.3% and 100% and a record completeness of 80%, which means one customer in five cannot be used for the campaign yet.
Now scroll up and do it yourself in the lab: count the blanks in row 18, compute the completeness rates in row 19, flag the complete records in column H and colour the weak columns. The Coach checks each step as you go, and it takes about 15 minutes.
Frequently asked questions
How do you calculate data completeness in Excel?
Use =1-COUNTBLANK(range)/ROWS(range) for each column, for example =1-COUNTBLANK(D2:D16)/ROWS(D2:D16). Format the result as a percentage. It gives the share of rows that contain a value.
What is the difference between COUNTBLANK and COUNTA?
COUNTBLANK counts empty cells and COUNTA counts non-empty ones. A formula that returns an empty string "" is counted by both, as blank by COUNTBLANK and as filled by COUNTA, so their sum can exceed the number of rows.
Does COUNTBLANK count cells with spaces?
No. A cell that contains only a space is not empty, so COUNTBLANK ignores it. To treat such cells as missing, use =SUMPRODUCT(--(LEN(TRIM(range))=0)).
What is record completeness?
Record completeness is the share of rows in which every required field is filled. In Excel you can flag each row with =IF(AND(B2<>"",C2<>"",D2<>""),1,0) and average the flags.
What is a good data completeness target?
It depends on how the data is used. Many teams aim for 95% or more on required fields and accept lower rates on optional ones, but a field like an invoice address may need 100%.
How do I highlight columns below a completeness target?
Select the completeness cells, then go to Home > Conditional Formatting > Highlight Cells Rules > Less Than, enter 0.95 or 95% and choose a red fill. Referencing a target cell instead of typing the number makes the rule easy to change.
Keep going: Data Quality Metrics: Completeness, Validity, Uniqueness, Timeliness & DQ Scorecards
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.
- Validity: Format, Allowed-Value and Range Rules
- Uniqueness: Duplicate Keys, Distinct Counts & Duplicate Emails
- Consistency across Tables: Orphan Keys and Conflicting Values
- Timeliness: Entry Lag, SLA Compliance, p90 and Freshness
- Accuracy: Checking a Sample against Verified Values
- The DQ Scorecard: Weighted Scores, RAG Status & Icon Sets
- Mid-course Project: DQ Trend Dashboard & the Cost of Poor Data (with a Chart)
- Disguised Missing Values: Placeholders, Spaces-Only Cells & True Completeness
- Conditional Rules: Fields Required Only Sometimes & Cross-Field Checks
- Pattern Checks: ID Formats, Postcodes, Leading Zeros & Prevent-at-Entry Rules
- Near-Duplicates: Match Keys, Normalised Names & the True Duplicate Rate
- Derived-Field Checks: Line Totals, Unit Errors & Decimal Shifts
- Pipeline Checks: Row Counts, Control Totals & Missing Loads (with a Chart)
- Data Downtime: Incidents, Time to Detect, Time to Resolve & Who Found It
- The DQ Rule Catalogue: Pass Rates, Severity Weights & a Pareto of Failures (with a Chart)
- Audit Sampling: Sample Size, Finite Populations & Stratified Accuracy
- Where Errors Come From: Error Rates by Entry Channel & Contribution (with a Chart)
- Prioritising the Cleanup: Cost of Each Issue, Annual Saving & Payback
- Capstone Project: A DQ Dashboard for the Product Catalogue (with a Chart)