Spreadsheet data cleaning with filters, sorting and formulas
Learn simple spreadsheet steps to spot errors, clean messy columns and fix basic data quality issues before serious analysis.
Why data cleaning in spreadsheets matters
Messy data leads to wrong conclusions, even in simple reports. Spreadsheets make it easy to type values fast, so typos, duplicates and inconsistent formats slip in. Cleaning your data first protects every later chart, average and dashboard. It also makes formulas more reliable and easier to debug. As a future data analyst you will rarely receive perfect data. Learning to tidy it in Excel or Google Sheets builds habits you can reuse later in SQL and other tools. Start small: aim for consistent values in one column, then move to the rest of the table.
Use filters to spot obvious issues
Filters let you view only rows that meet certain conditions. That makes errors easier to see. Turn on the filter for your header row, then open the dropdown for one column. You can quickly find blanks, weird text values inside number columns, or unexpected categories. Filters also help you review a sample of rows before you apply any big changes. Work column by column and write down what you notice. Common checks are “is blank or zero”, “text contains”, or “greater than” for numeric outliers. Clear filters often so you do not forget hidden rows.
- ⚙️1Enable filterAdd filters to header row
- 👀2Scan valuesOpen dropdown and scroll
- 🎯3Set conditionsShow blanks or odd values
- ✅4Review rowsCheck details before edits
Sort columns to uncover patterns and outliers
Sorting reorders your rows so similar values sit together. This is a simple way to uncover anomalies. Sort numbers from smallest to largest to see impossible values at the top or bottom, for example negative ages or extremely high prices. Sort text columns A to Z to group spelling variants such as "NY", "New York" and "Nw York". Always select the full table before you sort so columns stay aligned. If possible create a copy of the sheet first. Sorting does not fix anything on its own, it just helps you see where to clean.
- 📋1Select tableInclude all columns
- ↕️2Sort by columnChoose main column first
- 🔍3Check edgesLook at top and bottom
Use simple formulas to detect problems
A few basic formulas go a long way in data cleaning. Functions like TRIM, CLEAN and PROPER help fix text spacing and capitalization. LEN can highlight suspiciously short or long values, such as phone numbers with missing digits. IF combined with ISBLANK or ISNUMBER lets you flag cells that do not match the expected type. You can place these helper formulas in new columns, then filter on "TRUE" or specific flags to find issues. Keep formulas readable, use clear labels for each helper column, and remove temporary columns once cleaning is complete.
- •LEN to spot odd length
- •ISBLANK to find missing
- •ISNUMBER to check types
- ✓TRIM to remove spaces
- ✓CLEAN for hidden chars
- ✓PROPER for name casing
Tidy values, duplicates and formats safely
After you find issues, fix them in a controlled way. Standardize categories by replacing variants with one agreed label, for example always "Cancelled" instead of several spellings. Use “Remove Duplicates” or a formula like UNIQUE to handle repeated rows, but review a sample first so you do not remove valid data. Align formats, for example turn text dates into real dates, or store currency as plain numbers with a currency format. Keep an original backup sheet before large changes. Tidy data is boring to look at, which is exactly what you want.
✂️ Stop the cycle once checks find no new issues.
Real-world examples
- • You export online shop orders into a spreadsheet and notice some totals look too high. You sort the “Order total” column and quickly see a few orders with an extra zero, then correct them.
- • You collect survey answers in a sheet and want to count responses by city. Using filters and PROPER, you clean up variants like "berlin", "Berlin" and "BERLIN" so your counts are accurate.
- • Your manager asks for a list of active customers. You filter out rows with missing email addresses, use Remove Duplicates on the email column, then spot and correct a few obvious typos.
Useful links
- Microsoft Excel — Official site for Excel desktop and web versions.
- Google Sheets — Access Google Sheets inside Google Drive.
Keep learning
Learn how to build simple pivot tables to summarise big spreadsheets, spot patterns in seconds and answer basic business questions with confidence.
SELECT, filter and sort in SQL for clear beginner queriesLearn how to use SELECT, WHERE and ORDER BY in SQL to pick columns, filter rows and sort results so your data answers real questions.
Related courses
More programs on evelin that fit this path. Each one adapts to you after a two minute quiz.
Land Your First Remote Job
You bring your goals and answers, this course shapes itself to your field and pace, adapts with every application you send, and stays by your side beyond your first remote offer
Explore the course →How to Become a Freelance Developer
You turn this into your own path: every answer shapes what comes next, every step adapts to your freelancing style, and the guidance stays with you beyond your first booked client.
Explore the course →How to Master Digital Marketing
This course grows with your business: every answer shapes your path, every step adapts to your channels, and the work continues beyond the first wins into a lasting marketing habit.
Explore the course →How to Become an AI Workflow Designer
This course grows with your experiments. Every answer reshapes your path, every workflow builds on your tools, and your learning continues as your automations run in the real world.
Explore the course →Guides from related courses
- Remote work fundamentals: setups, tools, and daily expectations · Land Your First Remote Job
- Client acquisition channels for new freelance developers explained · How to Become a Freelance Developer
- Paid ads testing basics: how to learn fast on a small budget · How to Master Digital Marketing
Turn reading into real progress
A short quiz builds your personal learning path for How to Become a Data Analyst. Lessons adapt to you from day one.
Start the quizCreated with AI assistance and reviewed before publishing.