Excel data cleaning turns a spreadsheet that merely contains information into a file people can use with confidence. For a growing business, this might mean fixing customer names before an email campaign, checking invoice records before a sales report, or preparing stock data for another system. The important result is not a prettier sheet. It is a clear explanation of what changed, why it changed, and which questions still need an owner’s decision.
This practical guide uses a fictional sales register containing invoice numbers, customer names, cities, dates and amounts. Keep the exercise separate from real customer information. Never upload confidential business records to an unfamiliar converter simply because it promises instant spreadsheet cleaning.
1. Define a clean record before changing anything
Start by asking what one row represents. Is it an entire invoice, one invoice line, a payment, or a customer? An invoice number appearing several times may be correct when each row represents a different product. Removing those rows because the invoice number repeats would destroy valid information.
Write a short data dictionary: the purpose of each column, its expected type, whether blanks are allowed, and the field or combination of fields that identifies a record. Treat product codes and customer IDs as identifiers, not quantities. A code such as 00125 may need its leading zeros, even though a sales amount does not.
2. Save a backup and record your starting position
Keep the original workbook unchanged and create a separate working copy. Note the starting row count, reporting period and amount total. If the total already looks wrong, record that concern instead of treating it as a reliable control. A separate change log should explain removed records, corrections and unresolved exceptions.
Check where the actual data starts and ends. Repeated headings, blank separator rows and subtotals inside an imported list can be mistaken for transactions. Keep one clear header row. When sorting, select the complete related range rather than rearranging only the customer-name column and leaving invoice amounts behind.
3. Remove unwanted spaces with TRIM
If a customer name is in A2, enter =TRIM(A2) in an empty helper column. TRIM removes ordinary leading and trailing spaces and reduces repeated ordinary spaces between words to one. Compare several results with the original text before filling the formula through the working list.
For imported text containing certain nonprinting characters, try =TRIM(CLEAN(A2)). Microsoft explains that CLEAN does not remove every nonprinting Unicode character, and TRIM alone does not remove the nonbreaking space commonly found in copied web content. A successful-looking formula is therefore not proof that every unusual character has disappeared.
Keep the helper column until the results have been reviewed. If approved, copy its results and use Paste Special → Values where you need fixed text. Do not apply the same rule blindly to structured codes where spaces may carry meaning. Preserve the untouched source for comparison.
4. Identify duplicates before deleting rows
Use Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values to inspect possible repetition in selected cells. A repeated name does not necessarily mean a duplicate customer, and repeated invoice numbers may be legitimate line items. Agree on the record key first.
- Select the complete related table or range and confirm that a backup exists.
- Open Data → Remove Duplicates and check whether the data has headers.
- Select the columns whose combined values genuinely identify the same record.
- Review the removal count and inspect remaining records against the source.
Deletion warning: Microsoft states that Remove Duplicates keeps the first occurrence and removes later matches. Matching selected key columns can remove the entire row within the selected range, including information in other columns. Filtering records out of view is different from deleting them.
5. Separate numeric amounts from text identifiers
An amount can look like a number while being stored as text. If Excel displays an appropriate error indicator, inspect its options and use Convert to Number for fields that should be numeric. Test a few values first, then confirm that calculations include them. Merely changing the displayed number format is not a dependable repair for every imported-text problem.
Phone numbers, account references and postal codes are not amounts to add together. Preserve the required digits and leading zeros. Before removing currency symbols or separators, establish the source convention. A comma may be a thousands separator in one export and part of a decimal convention in another. Limit replacements to the relevant column instead of changing the whole workbook.
6. Resolve dates and missing values without guessing
The value 03/04/2026 is ambiguous without a source convention. It could mean 3 April or 4 March. Confirm the expected order before converting dates. Changing the display to a consistent date format does not repair a date that was interpreted incorrectly during import.
Similarly, a blank sales amount is not automatically zero. It could represent missing information, a cancelled transaction or an incomplete entry. Filter and review blanks, then record the agreed treatment. Avoid deleting every row containing any blank cell: another field in the same row may hold information the business still needs.
7. Split combined fields carefully
For text such as INV001,Patna,1200, desktop Excel provides Data → Text to Columns. Choose Delimited, select the correct delimiter and inspect the preview. Use an empty destination area so the output does not overwrite adjacent records. Confirm that codes, dates and amounts retain their intended meaning after the split.
Do not split every person’s name at each space and assume the resulting pieces are first and last names. Names and addresses can contain multiple words or embedded delimiters. Test representative records, including unusual entries, before processing the whole list. Menu locations and available options can differ between Windows, Mac and web editions.
8. Reconcile the result and hand over exceptions
Compare the final row count and amount totals with your starting controls. Every difference should have an explanation. Check samples from the beginning, middle and end of the file, plus the largest amounts, longest names, missing values and identifiers with leading zeros.
- Confirm that customer, invoice and amount fields still belong together.
- Recheck totals after deletions and numeric conversions.
- Document uncertain records instead of inventing replacements.
- Keep source, working and approved output files separately named.
A useful Excel data cleaning service should agree on these rules before work starts. If your team needs help preparing a customer list or sales workbook, review the TaskNest Digital Service data cleaning service and describe the problem without sending unnecessary personal information. The final handover should include reviewable changes, not an unsupported promise of perfect accuracy.