Sub topic 3
Percentages and Powers with `%` and `^`
Assume you can open a workbook, select cells, enter values, and use basic order of operations.
Percentages and powers with `%` and `^`
Excel treats a percentage as a decimal value. For example, 10% means 0.1. The percent operator converts the number before it into a percentage value.
=10%*200This returns 20. You can also calculate tax or a discount from a cell:
=B2*(1-C2)If B2 contains a price and C2 contains 15%, the result is the price after a 15% discount.
The caret operator, ^, raises a number to a power:
=2^3This returns 8. Excel applies the exponent before multiplication and addition. It applies negation before the exponent, so =-2^2 returns 4. To make the result negative, use parentheses:
=-(2^2)This returns -4.
Copying formulas: relative and absolute references
A relative reference changes when you copy a formula. An absolute reference, marked with $, stays fixed.
Suppose B2 contains a price, and F1 contains an 8% tax rate:
=B2*(1+$F$1)When you copy this formula down, B2 changes to B3, B4, and so on. $F$1 remains unchanged.
| Reference | When copied down one row |
|---|---|
| `B2` | Changes to `B3` |
| `$F$1` | Stays `$F$1` |
Reading common formula errors
#DIV/0!means a formula divides by zero or an empty cell, such as=A2/B2whenB2is zero.#NAME?usually means Excel does not recognize typed text, such as a misspelled function or an unquoted name.#VALUE!means a formula received an unsuitable value, such as trying to multiply a number by ordinary text.
Checking and editing a formula
Select the cell and read the formula bar. Check the leading =, cell references, operators, and parentheses. Press F2 to edit the formula in the cell, then press Enter to recalculate it.
Exercise
What does =-2^2 return, and which formula returns -4?
Show answer
It returns 4. Use =-(2^2) to return -4.