Name cells and ranges
Names, auditing and recalculation9 minPremium
Builds on Copy a formula down a column and Use values from other sheets.
A consultancy in Brussels bills its clients from a timesheet, and the invoice formula reads =SUM(. Whoever checks it has to find out what B2:B9 and E1 hold. With names, the same formula reads =SUM(.
How it works
A name is a label for a cell, a range or a value. To make one, select the cells, click in the Name Box at the left of the formula bar, type the name and press Enter. Define Name, on the Formulas tab, does the same in a dialog, where you can check what the name refers to before you select OK.
In a formula, a name works like the reference it stands for, locked as if it had dollar signs, so a formula that uses it fills down safely. Type its first letters and Excel offers it with the functions.
A name starts with a letter or an underscore, has no spaces, and can't look like a cell address, such as Q4. Name Manager, also on the Formulas tab, lists every name with what it refers to, so you can edit or delete it.
Example
The hours on a timesheet, B2:B9, are named Hours, and the hourly rate in E1 is named Rate.
=SUM(Hours)*RateWith 61.5 hours at €85.00, it returns €5,227.50.
Common mistakes
Hourly Rate, with a space, isn't a name Excel accepts. Write HourlyRate or Hourly_Rate.- A name made while the label next to the value was selected points at the label. A formula that uses it then multiplies by text and shows
#VALUE!. Check what the name refers to. - A name doesn't grow when you add rows below its range, so
=SUM(leaves a new month out. Change the range in the Name Manager.Sales) - A name that's misspelled, or that was deleted, shows
#NAME?.
In short
- Name a cell or a range in the Name Box, or with Define Name on the Formulas tab.
- A name is locked like
$E$1, so a formula that uses it fills down safely. - No spaces, and nothing that looks like a cell address.
- The Name Manager lists every name, to change its range or delete it.
Practice
Premium5 exercises: 2 formulas, 1 dialog, 1 quiz question and 1 find-it task.
Practice is part of Premium
Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.
Have one? Sign in