Dirty Data
You'll take a real file full of trailing spaces, three date formats and 'N/A' in a number column, and clean it until the formulas stop lying.
About
Real data arrives broken. Names have spaces at the end that break lookups, dates are typed four different ways, numbers are stored as text so the SUM says zero, and duplicate rows sneak in from a double export. Cleaning is where most of the hours go. This badge is one messy file made clean, with every fix done by formula or tool rather than by retyping, so next month's file takes ten minutes. What counts is the before and after and a list of what you fixed. Fixing 300 cells by hand doesn't count, however satisfying it feels.
At a glance
- Per requirement
- 15 XP
- Completion bonus
- 75 XP
- Requirements
- 6
- Takes
- One evening
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Get a messy file of at least 200 rows and list every problem you can find before fixing any of them. A club roster, a contact export, a mailing list, a survey export, or any public dataset with a text column will do. If it has real names or emails, blur them in every screenshot. Scan the whole thing and write the problems as a list in your post: spaces, inconsistent capitalization, mixed date formats, numbers stored as text, blanks, duplicates. Take a screenshot of the raw file with the row count showing. Photo
-
2
Strip the whitespace and fix the capitalization with TRIM, CLEAN, PROPER or UPPER. Work in new columns next to the originals, and never overwrite the raw data. =TRIM(CLEAN(A2)) handles most of it, then PROPER for names and UPPER for codes. Take a screenshot with one of the formulas visible. Photo
-
3
Make every date a real date and every number a real number. Dates stored as text won't sort or chart. Use DATEVALUE, or split them with text-to-columns and rebuild them with DATE(). For numbers, strip the currency symbols and commas with SUBSTITUTE and then wrap it in VALUE. The test is whether SUM works and whether the sort order makes sense. Take a screenshot of the date column sorted oldest first, with the fixed number column beside it. Photo
-
4
Split or merge columns so that each column holds one thing. Turn 'Smith, Jane' into last and first, or 'Portland, OR 97201' into three columns. Or go the other way and merge a scattered address into one line. SPLIT, LEFT, RIGHT, FIND or text-to-columns all work. Take a screenshot of the split or merged columns with a formula showing. Photo
-
5
Flag the duplicates before you remove them, and say how many there were. First decide what a duplicate is: the same email, or the same name and email? Then flag them with =COUNTIF($C$2:C2,C2)>1 filled down, which marks the second and later copies and leaves the first alone, so you can read what's about to go. Count the rows, run remove duplicates on the key you chose, and count again. Take a screenshot of the flagged rows and the two counts. Photo
-
6
Post the before and after side by side with your fix list checked off. Put the raw tab and the clean tab in two windows side by side, showing the same ten rows. In your post, go through your first list and mark each item done, or 'couldn't fix' with one line on why. Take a screenshot of the two windows. Photo