Sub topic 9
Quick results with AutoSum and the status bar
This chapter assumes you can enter values in cells, select ranges with the mouse or keyboard, and know that formulas start with an equals sign. It also assumes you have met SUM, AVERAGE, MIN, MAX, and COUNT in the earlier chapters. Here you will use two shortcuts that produce results without typing a formula: the AutoSum command, which writes a formula for you, and the status bar, which shows results without writing anything.
Two tools, two different jobs
AutoSum and the status bar both give fast answers, but they work differently.
- AutoSum inserts a real formula into a cell. The result stays in the worksheet and updates when the data changes.
- The status bar is the strip along the bottom of the Excel window. It displays calculated values for whatever cells you have selected. Nothing is written to the worksheet, and the values disappear when you change the selection.
Pick AutoSum when you need the result to stay in the sheet. Pick the status bar when you only want to look at a number, for example to check a total you computed another way.
AutoSum
Where to find it
AutoSum is the button labelled with the Greek letter sigma (Σ). It appears on the Home tab in the Editing group and on the Formulas tab at the left of the Function Library. The keyboard shortcut is Alt + = on Windows. On Mac, use Command + Shift + T.
The button has a small drop-down arrow. The list holds five entries: Sum, Average, Count Numbers, Max, and Min. These are the same five functions this tutorial covers. Choosing one writes the matching function (SUM, AVERAGE, COUNT, MAX, or MIN) into the cell.
What AutoSum does when you click it
AutoSum does three things in order:
- It looks at the active cell and guesses which range you want to summarize.
- It writes the formula, showing the guessed range with a moving dashed border.
- It waits for you to press Enter to accept it, or to change the range first.
The guess follows a simple rule. If the active cell is directly below a block of numbers, AutoSum picks the numbers above it. If there are no numbers above, it looks to the left. It stops at the first blank cell or text cell it meets, which matters later in this chapter.
Worked example
Suppose a small sales sheet looks like this:
| Row | A | B |
|---|---|---|
| 1 | Region | Sales |
| 2 | East | 120 |
| 3 | West | 95 |
| 4 | East | 140 |
| 5 | North | 80 |
| 6 | West | 110 |
| 7 | Total |
To total the sales:
- Click cell B7.
- Press Alt + = or click AutoSum on the Home tab.
- Excel writes
=SUM(B2:B6)in the cell and outlines B2:B6. - Press Enter.
The cell now shows 545 and holds this formula:
=SUM(B2:B6)Excel did not include B1 because it contains text ("Sales"). That is what you want here.
Summarizing with the drop-down
With B7 selected, open the AutoSum arrow and choose Average. Excel writes:
=AVERAGE(B2:B6)The same approach gives =MAX(B2:B6), =MIN(B2:B6), and =COUNT(B2:B6). In each case Excel guesses the same range, so check the outline before pressing Enter.
Summing several cells at once
You can fill many totals in one step. Select the whole range where you want the results, including the empty cells, then use AutoSum.
If you select B2:B6 and the empty cell B7 together and press Alt + =, Excel puts the total in B7. If you select a block such as B2:D6 plus the row below it (B2:D7), Excel fills B7, C7, and D7 with one SUM per column.
You can also select a block of numbers with an empty column to its right and an empty row below it. AutoSum then adds a total for each row and each column, plus a grand total in the corner.
AutoSum on filtered data
If the data is filtered, AutoSum behaves differently. When you click AutoSum in the row below a filtered list, Excel writes a SUBTOTAL formula instead of a SUM formula:
=SUBTOTAL(109, B2:B6)SUBTOTAL leaves out rows hidden by the filter. This is covered in a later chapter. For now, remember that a formula written by AutoSum may not be a plain SUM.
Common AutoSum mistakes
AutoSum is a guess, so it can guess wrong. Watch for these cases.
- A gap in the data. If a blank cell sits in the middle of a column, AutoSum stops at the gap and sums only the part nearest to the active cell. Rows above the gap are silently left out.
- Numbers stored as text. Cells that look like numbers but are text are not included, and AutoSum may stop at them. A green triangle in the corner of a cell is a clue.
- A total row already in the range. If the block already includes a subtotal, a new AutoSum may add the subtotal in again. Excel tries to avoid this, but check.
- The wrong direction. If there are numbers both above and to the left of the active cell, AutoSum prefers the cells above.
The fix is always the same. Before you press Enter, look at the dashed outline. If it is wrong, drag across the correct cells with the mouse, or edit the range in the formula bar, then press Enter.
The status bar
What it shows
Select two or more cells that contain numbers, then look at the bottom right of the Excel window. By default you will see Average, Count, and Sum. For the sales sheet, selecting B2:B6 shows:
| Item | Value |
|---|---|
| Average | 109 |
| Count | 5 |
| Sum | 545 |
These values are calculated from the selection, not from any cell on the sheet. The selection can be a single range, several separate ranges (hold Ctrl while selecting), or whole rows and columns.
Customizing the status bar
Right-click the status bar to open a menu of items with check marks. You can turn these on or off:
- Average
- Count, which counts all non-empty cells, like COUNTA
- Numerical Count, which counts only numbers, like COUNT
- Minimum
- Maximum
- Sum
Turn on Minimum and Maximum and you can see all five summary values by selecting a range, without typing a single formula.
Count versus Numerical Count
This is the most common source of confusion. The status bar has two counts, and they match two different worksheet functions.
| Status bar item | Equivalent function | What it counts |
|---|---|---|
| Count | COUNTA | Every non-empty cell, including text |
| Numerical Count | COUNT | Only cells that hold numbers |
If you select A1:B6 on the sales sheet, Count shows 12 (all filled cells) while Numerical Count shows 5 (only the sales figures). The names are easy to mix up, so check which one you turned on.
What the status bar ignores
Status bar values follow the same rules as the functions. Blank cells and text are skipped by Sum, Average, Minimum, and Maximum. Hidden rows are different: for a filtered range, the status bar includes only visible cells, but for rows you hide by hand it still includes them. Test this on your own data before relying on it.
An error value in the selection, such as #DIV/0!, stops the status bar from showing Sum, Average, Minimum, and Maximum for that selection. Only counts remain. If those numbers vanish, scan the selection for an error cell.
Using the status bar as a check
A useful habit is to compare a formula result to the status bar. Select the range your formula uses. If the status bar Sum matches your SUM formula, the formula is probably pointing at the right cells. A mismatch tells you the formula range is off, or that some values are text.
You can also use the status bar to spot text numbers. If you select a column that looks numeric and Count is higher than Numerical Count, some cells are not real numbers or some cells hold text.
Choosing between the tools
| Need | Best tool |
|---|---|
| A permanent total in the sheet | AutoSum |
| A quick look without changing the sheet | Status bar |
| Several totals at once | AutoSum on a multi-cell selection |
| A check on an existing formula | Status bar |
| Minimum and maximum without formulas | Status bar, with those items turned on |
| A result that depends on a condition | Typed formula, such as SUMIF |
How the pieces connect
Exercise
A column of 20 cells holds 18 numbers and 2 cells with text. You select the column and the status bar shows Count 20 and Numerical Count 18. Which worksheet functions match these two numbers, and what does the difference tell you?
Show answer
Count matches COUNTA (20 non-empty cells) and Numerical Count matches COUNT (18 numeric cells). The difference of 2 means two of the filled cells are not numbers. They are text, possibly numbers stored as text, and SUM, AVERAGE, MIN, and MAX will skip them.
Exercise
A column has numbers in B2:B10, but B6 is blank. You click B11 and press Alt + =. Excel proposes =SUM(B7:B10). Why, and how do you fix it?
Show answer
AutoSum stops at the first blank cell it meets while moving up from B11, so it leaves out B2:B5. To fix it, drag across B2:B10 before pressing Enter, or edit the formula to =SUM(B2:B10). SUM ignores the blank cell B6, so the full range works.