| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Sales | Units | Price per unit | |||||||||||
| 2 | 1200 | 40 | 30 | |||||||||||
| 3 | 900 | 0 | ||||||||||||
| 4 | 450 | 15 | ||||||||||||
| 5 | ||||||||||||||
| 6 | ||||||||||||||
| 7 | ||||||||||||||
| 8 | ||||||||||||||
| 9 | ||||||||||||||
| 10 | ||||||||||||||
| 11 | ||||||||||||||
| 12 | ||||||||||||||
| 13 | ||||||||||||||
| 14 | ||||||||||||||
| 15 | ||||||||||||||
| 16 | ||||||||||||||
| 17 | ||||||||||||||
| 18 | ||||||||||||||
| 19 | ||||||||||||||
| 20 | ||||||||||||||
| 21 | ||||||||||||||
| 22 | ||||||||||||||
| 23 | ||||||||||||||
| 24 | ||||||||||||||
| 25 | ||||||||||||||
| 26 | ||||||||||||||
| 27 | ||||||||||||||
| 28 | ||||||||||||||
| 29 | ||||||||||||||
| 30 |
More to try
Each of these works on the sheet. Press one to put it in C2.
- gives n/a
Dividing by zero would normally show #DIV/0!. Here the fallback appears.
- gives 0
The fallback can be a number, though see the warning below.
- gives Not found
A common use: a friendlier message when a lookup finds nothing.
Common mistakes
- Using it to hide every error. It also hides real mistakes, such as a mistyped range, so use it only where an error is expected.
- Returning 0 when 'not available' is the truth. A zero is included in later averages and totals; text is not.
- Wrapping the wrong part. Put IFERROR round the piece that can fail, not round the whole formula.
Practise it
Handle a divide by zero →Related functions