← Learning Hub
Beginner

Sort, Filter and Conditional Formatting

Make it a Table

Click inside your data and press Ctrl + T. Excel turns it into a Table with filter buttons, banded rows and formulas that fill down by themselves.

Turning your data into a Table (Ctrl + T) is one of the best habits in Excel. Tables grow automatically when you add rows, so charts and formulas include new data; headers stay visible; and formulas use readable names like [@Price] instead of B2.

Sort and filter

  • Click a filter arrow in the header to sort A to Z, or smallest to largest.
  • Untick values, or use Number Filters such as "Greater Than 500", to show only some rows.
  • Filtering only hides rows. Your data is still there.

Conditional formatting

This colours cells automatically by their value. Select the cells, then go to Home → Conditional Formatting.

Conditional formatting makes important information jump out without reading every number: low stock in red, top sellers in green, overdue payments highlighted. Because the colours follow the values, they update automatically when the data changes.

  • Highlight Cells Rules, for example red when the stock is less than 5.
  • Data Bars show small bars inside the cells.
  • Color Scales go from green (high) to red (low).

Formulas that sort and filter (Microsoft 365 and Google Sheets)

Example
=SORT(A2:C4, 3, -1)          → the table sorted by price, highest first
=FILTER(A2:C4, C2:C4>50)     → only the rows with price over 50
=UNIQUE(A2:A20)              → each category once
Freeze the header row so it stays visible when you scroll: View → Freeze Panes → Freeze Top Row.
Key points
  • Ctrl + T turns data into a Table with filters.
  • Sort and filter from the header arrows; filters only hide rows.
  • Conditional formatting colours cells by their values.
  • SORT, FILTER and UNIQUE work as formulas in newer Excel.

📝 Test yourself

1. Which shortcut turns data into a Table?
2. Does filtering delete rows?
3. Fill in the function that keeps only matching rows:
=(A2:C9, C2:C9>50)