Learn Excel 05
Learn Excel 05
115
Create Easier-to-Understand
Formulas with Named Ranges
Problem: As shown in Fig. 206, your
worksheet contains several different formulas. It would be easier to understand
the results if each component of every
formula were named for what it represented and not just for the cell it came
from.
Fig. 206
Part
II
116
Select cell B3. In the Name box (the area to the left of the formula
bar), type Revenue and press Enter, as shown in Fig. 207.
Fig. 207
2)
Select cell B4. Click in the name box, type COGS and hit Enter.
3)
Clear the formula in B6. Re-enter the formula and use the mouse
to select the cells. Type an Equal sign. Using the mouse, touch B3.
Type a Minus sign. Using the mouse, touch B4. This will enter the
formula as =RevenueCOGS, as shown in Fig. 208. This is easier to
understand than a typical formula.
Fig. 208
117
If you want to assign names after the formulas are created, use Insert Name Apply to apply names to existing formulas, as shown
in Fig. 209.
Part
II
Fig. 209
118
2)
As shown in Fig. 210, select all of the names that you want to
apply.
Fig. 210
Result: A formula like =B6B11 will be updated to =GrossProfitExpenses, as shown in Fig. 211.
Fig. 211
119
Fig. 212
Part
II
119
Fig. 212
Part
II
Fig. 213
If the tax rate changes later use Insert Name Define to change the
constant assigned to the name.
Summary: To name a constant in a workbook use Insert Name Define, type in the name of the constant, and then define the constant in
the Refers to: box.
Commands Discussed: Insert Name Define
120
120
Fig. 213
If the tax rate changes later use Insert Name Define to change the
constant assigned to the name.
Summary: To name a constant in a workbook use Insert Name Define, type in the name of the constant, and then define the constant in
the Refers to: box.
Commands Discussed: Insert Name Define
121
Part
II
Fig. 214
As shown in Fig. 215, you can now enter formulas such as these:
=SUM(East) and =SUM(ABC)
Fig. 215
122
Fig. 216
If you wanted to find the ratio of East ABC to West GHI, you would use
this formula =ABC East/GHI West, as shown in Fig. 217.
Fig. 217
123
Fig. 218
Fig. 219
You can even figure out the Gross Profit on a Gross quantity, as shown
in Fig. 220.
Fig. 220
Part
II
124
Gotcha: If your data set is missing labels, Excel may have trouble calculating formulas that are in cells that are not adjacent to your dataset.
Summary: Natural Language Formulas present an alternative to typical formulas in Excel. They might be great for your boss boss who cant
quite get the hang of using cell references in Excel.
Commands Discussed: Tools Options Calculation
Fig. 221
The company buys life insurance for anyone under the age of 65. The
rate for life insurance is $4 per dependant. As shown in Fig. 222, you can
write a natural language formula in E2: =IF(Age<65,Dependants*4,0).
Gotcha: If your data set is missing labels, Excel may have trouble calculating formulas that are in cells that are not adjacent to your dataset.
Summary: Natural Language Formulas present an alternative to typical formulas in Excel. They might be great for your boss boss who cant
quite get the hang of using cell references in Excel.
Commands Discussed: Tools Options Calculation
Fig. 221
The company buys life insurance for anyone under the age of 65. The
rate for life insurance is $4 per dependant. As shown in Fig. 222, you can
write a natural language formula in E2: =IF(Age<65,Dependants*4,0).
124
125
Fig. 222
As you copy this formula down the column, Excel will properly calculate
the formulas based on the age and dependents in the current row.
Summary: Again, natural language formulas allow non-technical people to write formulas in plain language.
Fig. 223
Part
II