| Cell | Content | Formula | Result |
|---|---|---|---|
| A2 | ana lopez (extra spaces) | =PROPER(TRIM(A2)) | Ana Lopez |
| A3 | Ana + non-breaking space + Lopez | =TRIM(SUBSTITUTE(A3,CHAR(160)," ")) | Ana Lopez |
| B2 | $1,250.00 as text | =VALUE(B2) | 1250 |
| C2 | 2026/03/05 as text | =DATEVALUE(C2) | 46086 (format it as a date to see 2026-03-05) |
Inspect and clean a messy export
When you get a box of mixed LEGO from a friend, you do not start building at once. You tip it out, look at it, and pick out the broken or dusty pieces first. A messy spreadsheet is the same: look first, clean second, analyse last.
- Always keep the raw data sheet untouched. Do your cleaning in new columns or on a copy, so you can start over.
- Look for four common problems: extra spaces, odd capital letters, numbers stored as text (they often sit on the left of the cell and SUM ignores them) and dates stored as text.
- TRIM(text) removes all spaces from text except single spaces between words. It only removes the normal space (character 32), not the non-breaking space (character 160) that often comes with web pages.
- SUBSTITUTE(text, old_text, new_text, [instance_num]) replaces specific text. To remove non-breaking spaces use
SUBSTITUTE(A2,CHAR(160)," "), then TRIM the result. - CLEAN(text) removes the non-printable characters with codes 0 to 31. It does not remove every odd Unicode character.
- PROPER(text) makes the first letter of each word a capital.
- VALUE(text) turns text that looks like a number into a real number.
=VALUE("$1,000")gives 1000. Text must be in a number, date or time format Excel recognises, or you get #VALUE!. - DATEVALUE(date_text) turns text that looks like a date into a date serial number. Excel stores dates as serial numbers, so format the result cell as a date to read it.
=DATEVALUE("2011/02/23")gives 40597. - Dates typed like 05/03/2026 can be read as 5 March or 3 May depending on your computer's regional settings, so check a few rows after converting.
- Copy the raw sheet and name the copy Clean. Never overwrite the raw sheet.
- Check each column: left-aligned numbers and green warning triangles often mean numbers stored as text.
- Next to the name column write
=PROPER(TRIM(SUBSTITUTE(A2,CHAR(160)," ")))and fill it down. - Next to the amount column write
=VALUE(B2). Next to the date column write=DATEVALUE(C2), then format the result column as a date (Home > Number Format). - Copy the new columns and use Paste Special > Values over themselves, so the results no longer depend on the raw text.
- Delete the old messy columns on the Clean sheet only.
- Check:
=SUM(of the new amount column matches a total you can see in the source system, and a few converted dates are the right day and month.
Videos by other creators on YouTube, for reference. They are not made by or affiliated with The Future Market.
Read the video script
[Host] "Nobody hands you clean data at work. Today you learn to clean it without breaking the original."
[Screen: raw sheet with ana lopez, extra spaces and amounts on the left side of cells] "Look first. Extra spaces. Numbers on the left. Those are numbers stored as text."
[Screen: typing =PROPER(TRIM(A2)) and filling down] "TRIM removes extra spaces, PROPER fixes the capitals. If it still looks wrong, it may be a non-breaking space, so wrap it in SUBSTITUTE with CHAR 160."
[Screen: =VALUE(B2) then Paste Special > Values] "VALUE turns text into a real number. Paste as values, and keep the raw sheet safe."
Make a raw sheet of 10 rows with names that have extra spaces and mixed capitals, amounts typed as text with a dollar sign and comma (for example $1,250.00), and dates typed as 2026/03/05. On a copy, clean every column with TRIM, PROPER, VALUE and DATEVALUE, then paste as values.
ClaudeStuck? Copy a ready-made prompt for Claude
Copy this, open Claude, paste it, and Claude will walk you through the lesson step by step.
For a grown-up: Claude is for adults (18+). Copy this, paste it into Claude, and use the answer to explain the lesson to your child.
I'm learning "Excel for Analysis: PivotTables, lookups and data cleaning" on The Future Market. Lesson 1: "Inspect and clean a messy export".
What the lesson teaches:
- Always keep the raw data sheet untouched. Do your cleaning in new columns or on a copy, so you can start over.
- Look for four common problems: extra spaces, odd capital letters, numbers stored as text (they often sit on the left of the cell and SUM ignores them) and dates stored as text.
- TRIM(text) removes all spaces from text except single spaces between words. It only removes the normal space (character 32), not the non-breaking space (character 160) that often comes with web pages.
- SUBSTITUTE(text, old_text, new_text, [instance_num]) replaces specific text. To remove non-breaking spaces use SUBSTITUTE(A2,CHAR(160)," "), then TRIM the result.
- CLEAN(text) removes the non-printable characters with codes 0 to 31. It does not remove every odd Unicode character.
- PROPER(text) makes the first letter of each word a capital.
- VALUE(text) turns text that looks like a number into a real number. =VALUE("$1,000") gives 1000. Text must be in a number, date or time format Excel recognises, or you get #VALUE!.
The exercise I'm working on:
Make a raw sheet of 10 rows with names that have extra spaces and mixed capitals, amounts typed as text with a dollar sign and comma (for example $1,250.00), and dates typed as 2026/03/05. On a copy, clean every column with TRIM, PROPER, VALUE and DATEVALUE, then paste as values.
I'm stuck. Please:
1. Explain the main idea in plain, simple words with one everyday example.
2. Walk me through the exercise one small step at a time. Ask me what I've done so far before giving the next step.
3. Don't just give me the final answer. Help me do it myself, and check my work when I share it.I'm a parent helping my child (about 8 years old) with a lesson called "Inspect and clean a messy export" from the course "Excel for Analysis: PivotTables, lookups and data cleaning". Here's what the lesson says: When you get a box of mixed LEGO from a friend, you do not start building at once. You tip it out, look at it, and pick out the broken or dusty pieces first. A messy spreadsheet is the same: look first, clean second, analyse last. The activity: Make a raw sheet of 10 rows with names that have extra spaces and mixed capitals, amounts typed as text with a dollar sign and comma (for example $1,250.00), and dates typed as 2026/03/05. On a copy, clean every column with TRIM, PROPER, VALUE and DATEVALUE, then paste as values. Please explain this so an 8-year-old understands: short sentences, a fun everyday example, and no hard words. Then give me 3 simple questions I can ask my child to check they understood, and a way to do the activity together, one tiny step at a time.
Sources
- Microsoft Support, TRIM function: support.microsoft.com/en-us/office/trim-function-410388fa-c5df-49c6-b1
- Microsoft Support, SUBSTITUTE function: support.microsoft.com/en-us/excel/functions/substitute-function
- Microsoft Support, CLEAN function: support.microsoft.com/en-us/excel/functions/clean-function
- Microsoft Support, VALUE function: support.microsoft.com/en-us/excel/functions/value-function
- Microsoft Support, DATEVALUE function: support.microsoft.com/en-us/excel/functions/datevalue-function
Pull facts out of text
This lesson is part of full access: every course and every level for one payment.
Dates that work for you
This lesson is part of full access: every course and every level for one payment.
Lookups beyond the basics
This lesson is part of full access: every course and every level for one payment.
Dynamic arrays: UNIQUE, SORT and FILTER
This lesson is part of full access: every course and every level for one payment.
PivotTables for real analysis
This lesson is part of full access: every course and every level for one payment.
Turn raw data into a one-page report
This lesson is part of full access: every course and every level for one payment.
Final project
This lesson is part of full access: every course and every level for one payment.
Quiz
Which character does TRIM not remove?
The non-breaking space (character 160). Use SUBSTITUTE with CHAR(160) first.
What does VALUE("$1,000") return?
1000.
Which function gives the last day of a month, a number of months before or after a date?
EOMONTH.
How do you get the first day of the month from a date in A2?
=EOMONTH(A2,-1)+1.Which Excel versions have TEXTSPLIT?
Excel for Microsoft 365 and Excel 2024.
What does a negative instance_num do in TEXTAFTER?
It starts searching from the end of the text.
What does MATCH return?
The position of the item in the range, not the item itself.
In INDEX and MATCH, which match_type do you use for an exact match?
0.
What does FILTER's third argument, if_empty, do?
It sets the message to show when no rows match.
What error appears when something blocks a dynamic array's spill range?
#SPILL!
Which PivotTable option shows each region as a share of the whole?
Show Values As > % of Grand Total.
How do you prove a PivotTable is right?
Compare its grand total to
=SUMof the source column.
Final exam
This lesson is part of full access: every course and every level for one payment.
Certificate
This lesson is part of full access: every course and every level for one payment.