Microsoft Excel How To Calculate Total
To calculate a total in Microsoft Excel, select an empty cell and enter =SUM(A1:A5), replacing A1:A5 with your own range, then press Enter. Alternatively, use AutoSum to insert the formula. Use SUMIF or SUMIFS for totals that depend on conditions, and SUBTOTAL when you want.
Which licences fit your PC setup?
Prices are an AUD snapshot, not a live quote. Confirm variant and total on the listing.
-

Office 2024 Pro Plus key
$20.00 AUD
$39.00 -

Windows 11 Pro key
$14.99 AUD
$29.00 -

Windows 11 Home key
$18.88 AUD
$37.00
Calculate a column or row total with AutoSum
AutoSum creates a SUM formula for you. It is useful when your numbers form a continuous column or row and you want the total directly beside them.
- Select an empty cell immediately below your column of numbers, or immediately to the right of your row.
- On the Home tab, select AutoSum, shown by the sigma symbol (Σ).
- Check the highlighted range. If Excel has missed any cells or included unwanted ones, select the correct range before continuing.
- Press Enter to accept the formula.
For numbers in A1 to A5, placing the total in A6 should produce =SUM(A1:A5). A blank cell or an existing subtotal can affect the range Excel suggests, so always check it.
The main AutoSum button adds values; the menu beside it offers other calculations, including Average and Count Numbers. Microsoft's guide to adding values in Excel explains AutoSum and when to use conditional sums.
Enter a SUM formula for a specific range
Typing the formula gives you direct control over which cells contribute to the total. Put the result outside the range being added to avoid a circular reference.
- Select the cell where you want the result.
- Type =SUM( and select the cells to add, or type their references.
- Type the closing parenthesis and press Enter.
Use these examples as patterns, replacing the references with those in your worksheet:
- One column: =SUM(B2:B10)
- One row: =SUM(B2:F2)
- Separate ranges: =SUM(B2:B10,D2:D10)
- Individual cells: =SUM(B2,D2,F2)
A colon means every cell between the two references, including both endpoints. A comma separates distinct arguments. If your regional settings require semicolons as formula separators, replace the commas accordingly.
For a few individual cells, =A1+B1+C1 also works. SUM is usually easier to read for a continuous range. As Microsoft's SUM documentation explains, text in referenced cells is ignored, so check that imported amounts are stored as numbers.
Add values that meet conditions
For an expense list, keep category names in column A and amounts in column B, with headings in row 1. Add a department column C if you need another condition. Each row should describe one expense.
Use SUMIF for one condition
To add only the Office Supplies expenses in rows 2 to 100, enter:
=SUMIF(A2:A100,"Office Supplies",B2:B100)
Excel checks column A for the category and adds the corresponding amounts from column B. The arguments are the range to check, the condition, and the range to add. Text conditions belong inside double quotation marks.
You can also test the amounts themselves. For example, =SUMIF(B2:B100,">100") adds amounts greater than 100. When you omit a separate sum range, Excel adds the values in the range it checks.
Use SUMIFS for multiple conditions
To total Office Supplies expenses for the Sales department, enter:
=SUMIFS(B2:B100,A2:A100,"Office Supplies",C2:C100,"Sales")
Both conditions must match on a row for its amount to count. Notice that SUMIFS puts the sum range first, followed by pairs of criteria ranges and conditions. Keep all ranges aligned to the same rows and dimensions. Microsoft's SUMIFS reference details this argument order.
Total only visible rows after filtering
A normal SUM formula includes values in filtered-out rows. Hiding a row does not remove its value from SUM either. To make a column total follow the visible records, use:
=SUBTOTAL(109,B2:B100)
The function number 109 means sum while excluding both filtered-out and manually hidden rows. Use 9 instead if you want to exclude filtered-out rows but include manually hidden ones. These behaviours are documented in Microsoft's SUBTOTAL reference.
Place the formula outside the data being filtered so the result remains visible. Apply a filter, then check that the total changes when records are excluded.
Build a running total down a column
A running total shows the cumulative amount after each entry. For amounts beginning in B2, use an empty column such as D:
- Enter =SUM($B$2:B2) in D2.
- Drag the fill handle down alongside your remaining entries.
- Check that D3 contains =SUM($B$2:B3).
The dollar signs fix the starting cell while the ending row changes as you copy down. This follows the reference pattern in Microsoft's running total instructions. Keep entries in the order you want the cumulative figures to follow.
Use a PivotTable for totals by category
A PivotTable is useful when you need a separate total for every category or department without writing a formula for each one.
- Select your data, including a single row of column headings.
- Choose Insert, then PivotTable, and select where to place it.
- Drag Category to Rows and Amount to Values.
- Check that the value field uses Sum. If it shows Count, open its value field settings and choose Sum.
Microsoft's PivotTable summary guidance explains that blank or non-numeric entries can cause Count to be selected. Check the source amounts if the result is unexpected, and refresh the PivotTable after changing its source data.
Check your total before using it
- Check the first and last references, especially after adding new records.
- Exclude existing subtotal and grand total rows from a basic SUM range to avoid double-counting.
- Check imported numbers, category spellings and unwanted spaces if values are missing from a total.
- Confirm whether the result should include all records or only visible rows.
If these totals support a wider workflow, the Microsoft Office guides cover related tasks. For a written report alongside your figures, see programs like Microsoft Word. For tracking the tasks behind project expenses, explore whether Microsoft Office has a Kanban board.
Start with one column in your workbook: add its total in an empty cell, inspect the formula's range, and check that it includes every intended entry.
Other editions for separate workloads
Other editions for separate workloads; prices in AUD, confirm the total on the listing.
-

Windows 10 Pro key
$12.00 AUD
$15.00 -

Microsoft 365 Pro Plus, 5 devices
$15.00 AUD
$29.00 -

Windows Server 2022 Standard
$120.00 AUD
$239.00
How to check this worked
- Open Settings, System, Activation and confirm the edition shown.
- Enter the key and run activation; expect a green tick within a minute.
- Reboot and re-check activation survives the restart.
FAQ
What else should you know before buying?
- What do I need before starting?
- Read the requirements and confirm the edition first; the steps assume the machine is compatible.
- How do I know the licence is genuine?
- Activate on Microsoft's servers and check Settings, System, Activation. A working activation is the test.
- Is this a subscription?
- Keys sold here are one-time lifetime licences. Microsoft 365 plans are billed by Microsoft instead.
- What if the key fails?
- Email hi@ms.codes with the order number and a screenshot. Replacement or refund applies within 30 days.
Check who prepared and reviewed this guide
- Written by
- MS.Codes editorial
- Reviewed by
- Support team
Last verified: (source review; see test status above).