Skip to main content

How to Use a Named Range in Excel


In the previous part, you saw how to define and apply Named Ranges. In this part, you'll learn how to use the Named Ranges you have just set up.

Using Named Ranges

The spreadsheet you have created so far looks like this:
The spreadsheet so far
We have a Named Range in Cell B5 Called Monthly_Totals, and a Named Range in Cell C5 Called Monthly_Tax. We can use the Named Ranges to deduct the Tax from the Monthly Totals. But we need to set up two new Named Ranges. One for cell B5 and one for cell C5.
You might question the need to set up two more Ranges, on the grounds that we have just set up two Named Ranges in cell B5 and C5.
Strictly speaking, we don't need the new names. To deduct the Tax from the Monthly Total using Named Ranges we could just do this:
=Sum(Monthly_Totals) - SUM(Monthly_Tax)
And it would work. Excel would take one from the other. (The following, however, would not: = Monthly_Totals - Monthly_Tax.)
But if we set up two more Named Ranges, we can just use the single totals, instead of telling Excel to use a Function to add them up first.
So, to define two new Names, do the following:
  • Click inside cell B5
  • From the menu bar, click on Insert > Name > Define
  • When the dialogue box appears, click inside the top text box and type in Monthly_Result. (Don't forget the Underscore!)
  • Click OK
  • Click inside cell C5 and do the same. This time, though, type in Tax_Result as the Name.
  • Your Define Name dialogue box will then look like this one:
Four Named ranges have been defined
Click the OK button when you're done.
Now that we have the Names defined, we can enter a formula and Apply the names into the formula. First, amend your spreadsheet so that it looks like this one:
As you can see, a new label has been added, along with the formula in cell B7: = B5 - C5.
Now that we have a formula we can replace the cell references B5 and C5 with the names we set up. So click on B7 and do this:
  • Click on Insert > Name > Apply
  • The Apply Names dialogue box appears
  • Click Monthly_Result select it
  • Click on Tax_Result to select it
  • Click the OK button
  • Excel replaces your cell references with the Names
  • Your spreadsheet will then look like this one:

The cell references in cell B7 have been replaced with our Named Ranges, making the information easier to read.

And that's enough of Named Ranges. We'll move on to Pivot Tables.

Comments

Popular posts from this blog

Beginners PHP  -This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck! Home Page > PHP Section One - An Introduction to PHP 1. What is PHP and Why do I need it? 2. What you need to get started 3. Installing and testing Wampserver 4. Troubleshooting > PHP Two - Getting Started With Variables 1. What is a Variable? 2. Putting text into variables 3. Variables - some practice 4. More variable practice 5. Joining direct text and variable data 6. Adding up in PHP 7. Subtraction 8. Multiplication 9. Division 10. Floating point numbers > PHP Three - Conditional Logic 1. If Statements 2. Using If Statements 3....
Visual Basic .NET Contents Page   -This computer course is an introduction to Visual Basic.NET programming for beginners. This course assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby! You don't need to buy any software for this course! You can use the new FREE Visual Basic Express Edition from Microsoft. To see which version you need, click below: Getting the free Visual Studio Express - Which version do I need? > VB .NET One - Getting Started   1. Getting started with VB.NET 2. Visual Basic .NET Forms 3. Adding Controls using the Toolbox Home Page 4. Adding a Textbox to the Form 5. Visual Basic .NET and Properties 6. The Text Property 7. Adding a splash of colour 8. Saving your work 9. Create a New Project >   VB .NET Two - Write your first .NET code   1. What is a Variable? 2. Add a coding button to the Form 3. Writing y...
The Excel SumIF Function  - Another useful Excel function is SumIF. This function is like CountIf, except it adds one more argument: SUMIF( range ,  criteria ,  sum_range ) Range and criteria are the same as with  CountIF  - the range of cells to search, and what you want Excel to look for. The Sum_Range is like range, but it searches a new range of cells. To clarify all that, here's what we'll use SumIF for. (Start a new spreadsheet for this.) Five people have ordered goods from us. Some have paid us, but some haven't. The five people are Elisa, Kelly, Steven, Euan, and Holly. We'll use SumIF to calculate how much in total has been paid to us, and how much is still owed. So in Column A, enter the names: In Column B enter how much each person owes: In Column C, enter TRUE or FALSE values. TRUE means they have paid up, and FALSE means they haven't: Add two more labels: Total Paid, and Still Owed. Your spreadsheet should look something li...