Lesson 3 of 4
Cleaning data and building a first pivot table
Remove duplicates, fix text numbers, then summarise thousands of rows in a minute.
The most common Excel task in a data role is not a formula. It is taking a messy export and producing a clean summary. This lesson walks through the sequence once; after that it is habit.
Advertisement
Clean first
- Freeze the header row (View > Freeze Panes) so you always know what each column holds.
- Remove duplicates (Data > Remove Duplicates), choosing the columns that define a duplicate, usually an ID.
- Fix numbers stored as text: select the column, use Data > Text to Columns > Finish, or multiply by 1.
- Trim spaces with =TRIM(A2) in a helper column, then paste values back.
- Standardise categories with Find and Replace: "n/a", "NA" and "N.A." become one value.
Then summarise
Select the table, Insert > PivotTable, new sheet. Drag Region to Rows, Status to Columns, Amount to Values. You now have a totals grid that would take a dozen SUMIFS to build by hand, and it refreshes when the data changes.
Three settings worth knowing
- Value Field Settings lets you switch Sum to Count or Average.
- Group lets you roll dates up to months or quarters.
- Show Values As > % of Column Total answers "what share" questions without a single formula.
Keep the raw export on its own sheet and never edit it directly. When someone asks for a different cut of the data, you change the pivot, not the source.
Advertisement
Continue with Excel4 lessons · 2 interview sets · 1 test · 1 certificate
Not testedLesson 4: IF, AND, OR and nested conditionsHow to write a formula that makes a decision, combine several tests, and avoid the nesting mistakes that return wrong answers.Next lesson
Take the Excel testApply what you just read; every answer is explained.Test
Excel interview questions for office rolesThe questions that come up for admin, accounts and operations roles, answered the way an interviewer wants to hear them.Interview
Excel certificateFree with an account; download the PDF.Certificate
More in Accounts and data