π Chapter 4: Data Handling & Sorting
Data handling is at the core of working efficiently in Excel. Whether you’re organizing sales records or maintaining student grades, sorting and filtering make large datasets easier to manage. In this chapter, youβll learn how to sort, filter, remove duplicates, and clean up messy data using Excelβs powerful tools.
π’ Sorting Data in Excel
Sorting allows you to organize data alphabetically, numerically, or by date. You can sort by one or multiple columns.
- Ascending Order (AβZ or 0β9): Sorts values from lowest to highest
- Descending Order (ZβA or 9β0): Sorts values from highest to lowest
Steps:
- Select the data range (e.g., A1:D100)
- Go to Data > Sort
- Choose column and order (A-Z or Z-A)
- Click OK
π Filtering Data
Filters help you display only the rows that meet specific criteria. It’s perfect for narrowing down results.
Steps:
- Select your dataset including headers
- Go to Data > Filter
- Click the drop-down arrow on a column
- Choose criteria (e.g., βOnly show Januaryβ)
π― Advanced Filter Techniques
- Filter by Text: Contains, Begins With, Ends With
- Filter by Number: Greater Than, Less Than, Between
- Filter by Date: This Week, Last Month, Next Year
- Color Filter: Filter based on cell color or font color
β»οΈ Removing Duplicates
Excel allows you to remove duplicate entries to clean up your data.
Steps:
- Select the column or entire table
- Go to Data > Remove Duplicates
- Select the column(s) to check for duplicates
- Click OK β duplicates are removed!
π§Ό Cleaning Data
- TRIM(): Removes extra spaces β
=TRIM(A1)
- CLEAN(): Removes non-printable characters β
=CLEAN(A1)
- UPPER()/LOWER()/PROPER(): Changes text case
- FIND()/SEARCH(): Locate specific characters/words
π Use Case Example
Scenario: You have 100 customer entries with repeated names and mixed-case city names.
- Use
Remove Duplicates
to clean customer list - Apply
PROPER()
to standardize city names - Sort by Total Purchase (Z-A)
- Filter by State = βKarnatakaβ
π Practice Task
- Create a sample employee table with Name, Department, Salary, and City
- Sort the table by Salary (High to Low)
- Filter the table to show only employees from “Marketing”
- Use
PROPER()
to format all names correctly - Remove duplicates in the βCityβ column
β Conclusion
Data handling in Excel helps turn messy sheets into clean, readable, and actionable formats. Sorting and filtering allow for dynamic views, while functions like TRIM and REMOVE DUPLICATES streamline your workflow. In the next chapter, weβll explore **Conditional Formatting** to visually highlight important data!