Tools, Data & Automation9 min read

Sorting, Filtering and Finding Information in Excel

Once your data is clean and well structured, Excel gives you powerful tools to explore it. Sorting, filtering and searching let you find exactly what you need in a large dataset without scrolling through every row. This guide covers the techniques you will use most often.

What you will learn

  • How to sort data by one or more columns
  • How to use AutoFilter to filter data by value or condition
  • How to use VLOOKUP and XLOOKUP to find specific records
  • How to use conditional formatting to highlight important values
  • How to combine sorting and filtering to answer practical questions

Introduction: finding what you need in a large dataset

A spreadsheet with hundreds or thousands of rows is only useful if you can find the information you need quickly. Scrolling through every row is not a practical approach. Excel's sorting, filtering and lookup tools let you navigate large datasets efficiently and answer specific questions without manual searching.

What does it mean? Sorting vs filtering vs looking up

Sorting rearranges the rows in your data based on the values in one or more columns — for example, sorting a list of tasks by due date, or sorting a list of properties by postcode. Filtering hides rows that do not meet a condition — for example, showing only tasks with a status of 'Open', or only properties in a particular area. Looking up finds a specific value in one column and returns a related value from another column — for example, finding a supplier's contact details by their name.

How does it work? Sorting and filtering

To sort data, click any cell in the column you want to sort by and use the Sort A to Z or Sort Z to A buttons on the Data tab. For a multi-level sort — for example, sort by department first, then by surname within each department — use the Custom Sort option on the Data tab, which lets you add multiple sort levels.

To filter data, click any cell in your data and go to Data > Filter (or press Ctrl+Shift+L). This adds dropdown arrows to each column heading. Click the arrow on any column to see the filter options: you can filter by specific values, by a condition (greater than, contains, begins with) or by colour. To clear a filter, click the arrow again and choose Clear Filter.

If your data is in an Excel Table, filter arrows are added automatically. You can also use the search box in the filter dropdown to find specific values quickly in a long list.

A real-world example: finding overdue repairs

The repairs team at Snips Housing Association used a spreadsheet to track maintenance jobs. Each row was a job, with columns for job reference, property, category, date raised, target completion date and status. At the start of each week, the team manager needed to identify all jobs that were overdue — that is, where the target completion date had passed and the status was not 'Complete'.

By filtering the Status column to exclude 'Complete' and then sorting by target completion date in ascending order, the manager could see all open jobs with the most overdue at the top. This took less than a minute and gave a clear picture of where the team needed to focus.

Try it yourself: filter and sort a task list

Open a spreadsheet with at least 20 rows of data — a task list, a contact list or any structured data will do. If you do not have one, create a simple one with columns for Name, Category, Date and Status, and enter 20 rows of example data.

Add a filter to your data (Data > Filter). Filter the Status column to show only one value. Then sort the filtered results by Date in ascending order. Notice that sorting works on the filtered data — rows that are hidden by the filter are not moved. Clear the filter and sort again to see the difference.

Finding specific records with XLOOKUP

XLOOKUP is Excel's most powerful lookup function. It searches a column for a value and returns a corresponding value from another column. For example: =XLOOKUP("SUP-001", A:A, C:C) searches column A for the value 'SUP-001' and returns the corresponding value from column C.

XLOOKUP is more flexible than the older VLOOKUP function — it can search in any direction, return multiple columns at once, and handle cases where the value is not found without returning an error. If you are using an older version of Excel that does not have XLOOKUP, VLOOKUP works in a similar way for most common use cases.

Key takeaways

Sorting, filtering and lookup functions are the core tools for navigating data in Excel. Use sorting to reorder data, filtering to focus on a subset of rows, and XLOOKUP to find specific records. These techniques work best on well-structured data — another reason why getting the structure right from the start pays dividends.

Where to go next

Understanding what makes data good quality will help you get more reliable results from your analysis.

What makes data good quality? →