Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Changing the Reference in a Named Range.

Changing the Reference in a Named Range

by Allen Wyatt
(last updated December 2, 2016)

8

Using named ranges can be very handy when you are working with formulas or when you just want to keep track of what certain cells in a worksheet are used for. At some point, however, you may want to change the cells referred to by an existing named range. For instance, if a named range called MyRange refers to cells A1:A5, you may want to have it refer to cells C7:C19 instead.

The easiest way to change the range to which a name refers is to use the Name Manager. You can display the manager by displaying the Formula tab of the ribbon and clicking the Name Manager tool in the Defined Names group. (See Figure 1.)

Figure 1. The Name Manager.

The Name Manager lists all the named ranges that you've defined. You might think that you need to click Edit in order to make a change, but when changing the actual range associated with a name the process is even easier:

  1. In the list of names shown in the dialog box, click once on the name whose reference you want to change. (In this case, choose MyRange.) The existing reference should show up in the Refers To box at the bottom of the dialog box. (In this case it should show something like =Sheet1!$A$1:$A$5.)
  2. Modify the range reference in the Refers To box. (In this case, change it to =Sheet1!$C$7:$C$19.)
  3. Click the small green checkmark to the left of the Refers To box.

That's it; MyRange now refers to cells C7:C19 instead of A1:A5.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8237) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Changing the Reference in a Named Range.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Prime Height Spacing in the Equation Editor

The Equation Editor is a great tool for easily creating fancy-looking equations in your document. You can even control minute ...

Discover More

Using Find and Replace to Change Text Case

Can you really use Find and Replace to change the case of text in your document? Not really, but that shouldn't stop you from ...

Discover More

Fast Spelling Corrections

Want to correct the spelling of a word that Word thinks is improperly spelled? A quick way to do it is to right-click the ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Reordering Last Name and First Name

If you've got a list of names in a column, you may want to change the order of each name. For instance, the name have the ...

Discover More

Using Named Formulas Across Workbooks

You can use the naming capabilities of Excel to name both ranges and formulas. Accessing that named information in a workbook ...

Discover More

Incrementing References by Multiples when Copying Formulas

You can easily set up a formula to perform some calculation on a range of cells. When you copy that formula, the copied ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three minus 2?

2017-04-21 09:16:02

Melissa

Thank you so much. I have been beating my head against the wall trying to fix a problem caused by a Named Range that was in a deleted worksheet. This article really helped!


2017-02-16 05:07:43

Barry

I make it a rule when writing macros to always refer to cells on a worksheet using a named range. That way if a user (if they are allowed to) were to add or delete rows or columns the referred range remains correct as Excel will adjust the range referred to automatically. Ranges referred to explicitly in macros are not updated if rows or columns are added or deleted.


2017-02-15 06:34:30

Willy Vanhaelen

@Wiliam Fennell

The syntax for changing the RefersTo reference in a macro is:

ActiveWorkbook.Names("YourName").RefersTo = "=" & ActiveSheet.Name & "!" & Range("a1:a10").Address


2017-02-13 14:28:13

William Fennell

I would like to change the cells in a "named range" while executing a macro.

Although I use relative locations in writing the macro, the macro is stored with the "new" range in RC form. Of course this prevents the macro from changing the cells in future executions of the macro.

Do you know of a solution to this problem?


2016-12-02 22:35:07

Gerry Erdman

This is a great tip. Thank you.


2016-12-02 10:14:10

1695814

fyi, ctrl+F3 is the keyboard shortcut that will bring up the Name Manager.


2016-05-19 01:49:02

anshul

Thank you this is really helpful.


2016-03-22 13:43:34

Vera

Thank you for sharing Excel Tips.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.