๐ 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 Duplicatesto 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!
