5 Sorting and Filtering Data

Learn how to prepare spreadsheet data, sort complete records, apply and combine filter criteria, and inspect or clear results.

Prepare the data

Before working with records, arrange the data as a clear table. Give every column a distinct header, keep one record in each row, use each column for one type of information. Avoid blank rows columns that break up the dataset, store dates numbers consistently as dates numbers rather than as text.

Keep all fields belonging to a record together. Identify the header row so it is not treated as a record, select the complete data range when sorting. Sorting only one column can associate values with the wrong records.

Sort complete records

Sorting rearranges records into an order without changing their underlying values. A is the column that determines the order. Common orders include text from A to Z Z to A, numbers from smallest to largest largest to smallest, dates from oldest to newest newest to oldest.

For example, sorting a sales table by Date from newest to oldest puts the latest transactions first. A uses a second key to order records tied on the first key. Sorting by Region from A to Z then Sales from largest to smallest groups records by region ranks sales within each group.

Select the full data range, choose the sort column direction, add secondary sort keys when useful. Spreadsheet commands menus vary, but the key principle is to sort whole records rather than isolated fields.

Apply combine criteria

A displays records that match chosen criteria hides the others from view; hidden records are not deleted. You can select values in a column use conditions, such as Sales greater than 100100, Region equal to East, Name containing Lee. Filters can be applied to multiple columns at the same time.

For example, to inspect East-region records with sales above 100100, set Region to equal East Sales to greater than 100100. Criteria applied in separate columns typically combine with , so a record must satisfy both conditions. Selecting several allowed values within one column typically combines with , so a record can match any selected value. Some spreadsheet tools also offer explicit options for custom conditions. Check the criteria shown in the menu to confirm how they are combined.

Choose search filtering

To locate a particular value, use the menu's search box the spreadsheet's Find command. Search helps locate matching text numbers. A is more useful when you want a subset of records to remain visible while you inspect the table. For example, search for a customer name to locate it, Status to show all records marked Open.

Inspect clear results

After applying a , review the visible records the active criteria. If expected records are missing, check for misspellings, extra spaces, inconsistent categories, numbers dates stored as text.

Clear remove filters when finished to show all records again. Some spreadsheet programs provide , which let you save use a particular set of criteria without changing what collaborators see.