Sub topic 3
Quick Excel Results Without Rebuilding Formulas
Assume you can enter formulas and select worksheet ranges. AutoSum and the status bar provide fast summaries, while cell references control what copied formulas read.
AutoSum and the status bar
Select the empty cell below a column of numbers, then choose AutoSum. Excel suggests a range and creates a SUM formula. Check the suggested range before pressing Enter.
=SUM(B2:B6)For a quick result without adding a formula, select the range. The status bar usually shows Average, Count, and Sum. This is useful for checking data, but the result is not saved in a cell.
References when copying formulas
A relative reference changes when copied. An absolute reference stays fixed because it uses dollar signs.
=SUM(B2:B6)
=SUM($B$2:$B$6)Use relative references when each row or column should use its own data. Use absolute references for a shared total or fixed lookup range.
> callout note > Select the formula after copying and verify the referenced cells. A formula can be valid while pointing at the wrong range.
Values, blanks, and errors
For a referenced range, SUM, AVERAGE, MIN, MAX, and COUNT ignore text and logical values such as TRUE. They include numeric zero. Blank cells are ignored. An error value such as #N/A usually propagates through the result.
| Cell content | Typical effect in a referenced range |
|---|---|
| Zero | Included as a number |
| Blank or text | Ignored by these five functions |
| Error value | Causes an error result |
COUNT counts numbers, not merely filled cells. COUNTA counts non-empty cells, and COUNTBLANK counts empty cells.
Empty data and the next step
AVERAGE returns #DIV/0! when no numeric values exist. Guard it with a count:
=IF(COUNT(B2:B6)=0,"No data",AVERAGE(B2:B6))For criteria, use SUMIF, AVERAGEIF, or COUNTIF:
=SUMIF(A2:A6,"East",B2:B6)
=AVERAGEIF(A2:A6,"East",B2:B6)
=COUNTIF(B2:B6,">100")When a filtered report must ignore hidden rows, use SUBTOTAL, such as =SUBTOTAL(109,B2:B6).
Exercise
Which formula counts numeric values in B2:B6 while avoiding an empty-range average error?
Show answer
=IF(COUNT(B2:B6)=0,"No data",AVERAGE(B2:B6))