Excel Tutorial menu

Excel Sort, Filter, Charts and PivotTables

Once your data is in Excel, these tools help you organise it and find answers quickly.

The Example Data

Monthly sales from a mobile accessories shop:

ABCD
1DateBranchProductAmount
202/10/2026SaddarCharger1200
303/10/2026OrangiEarbuds3500
405/10/2026SaddarCover600
507/10/2026OrangiCharger1500
609/10/2026GulshanEarbuds4200
711/10/2026OrangiCover900

First turn your data into a table: click inside it and press Ctrl + T. Tables grow automatically when you add rows, and they come with filter buttons.

Sorting

Click a cell in the column, then Data > Sort A to Z (smallest first) or Sort Z to A (largest first). For more levels, use Data > Sort, for example Branch A to Z, then Amount largest to smallest.

In Microsoft 365 and Excel 2021, the SORT function returns a sorted copy and keeps the original unchanged:

Example

text
=SORT(A2:D7, 4, -1)

The 4 means sort by the fourth column (Amount) and -1 means largest first:

DateBranchProductAmount
09/10/2026GulshanEarbuds4200
03/10/2026OrangiEarbuds3500
07/10/2026OrangiCharger1500
02/10/2026SaddarCharger1200
11/10/2026OrangiCover900
05/10/2026SaddarCover600

Filtering

Click Data > Filter (or use the table's buttons). Click the arrow in a header and tick only the values you want, such as Branch = Orangi. Rows that do not match are hidden, not deleted.

The FILTER function returns matching rows as a new list:

Example

text
=FILTER(A2:D7, B2:B7="Orangi")
DateBranchProductAmount
03/10/2026OrangiEarbuds3500
07/10/2026OrangiCharger1500
11/10/2026OrangiCover900

Filter with two conditions by multiplying them (both must be true):

Example

text
=FILTER(A2:D7, (B2:B7="Orangi")*(D2:D7>1000), "No match")
DateBranchProductAmount
03/10/2026OrangiEarbuds3500
07/10/2026OrangiCharger1500

Conditional Formatting

Conditional formatting colours cells automatically based on their values. Select D2:D7, then Home > Conditional Formatting:

  • Highlight Cells Rules > Greater Than 3000 in green
  • Data Bars to show small bars inside the cells
  • Color Scales to colour low to high values

You can also use a formula rule. To highlight whole rows for the Orangi branch, select A2:D7, choose New Rule > Use a formula, and enter:

Example

text
=$B2="Orangi"

Charts

A chart turns numbers into a picture. Select the data (including headers), then Insert and pick a chart:

ChartBest for
Column / BarComparing values, e.g. sales per branch
LineChanges over time, e.g. sales per month
PieParts of a whole, with only a few slices
ScatterThe relationship between two numbers

Use Chart Elements (the + button) to add a title, data labels and axis titles. Keep charts simple: one message per chart.

PivotTables

A PivotTable summarises a big table in a few clicks, without any formulas.

  1. Click inside the data and choose Insert > PivotTable
  2. Choose New Worksheet and click OK
  3. Drag Branch to Rows
  4. Drag Amount to Values (it becomes Sum of Amount)
  5. Optionally drag Product to Columns

The result:

BranchChargerCoverEarbudsGrand Total
Gulshan42004200
Orangi150090035005900
Saddar12006001800
Grand Total27001500770011900

When new data is added, right-click the PivotTable and choose Refresh. You can also check a PivotTable number with a formula:

Example

text
=SUMIFS(D2:D7, B2:B7, "Orangi")
Result
5900

Exercise

Exercise

You have 5,000 rows of sales and want total sales per branch without writing formulas. Which tool is best?

Learn Excel with a teacher

Join the CIT (Computer Information Technology) course at Workownix, online or in Orangi Town, Karachi, and get a certificate.

See the course Ask on WhatsApp