Creating a Static Cell Reference

Written by Allen Wyatt (last updated November 30, 2024)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Judi has a question about using a static cell reference in a formula. She has a formula that refers to cell U3, and wants it to always refer to cell U3. If she inserts or deletes columns between the cell containing her formula and cell U3, she doesn't want the formula to be updated with a new column reference; she wants it to always refer to cell U3. Referring in the formula to $U$3 doesn't work because it is updated by Excel when columns are inserted or deleted.

Judi is correct—as you add rows and columns to your worksheet, Excel will routinely update the addresses used in formulas. As an example, let's say that you want to reference cell U3, so you use one of the following very simple formulas:

=U3
=$U$3

If you then delete column M and look at the cell containing the formulas, they will have changed to one of these:

=T3
=$T$3

Even if you select U3 and assign the range a name, when you later delete a column, the cell originally referenced by the name will move to reflect the deletion.

The solution to this is to use the INDIRECT function. For instance, anyplace you want to reference cell U3, you would use this:

=INDIRECT("U3")

The function returns the contents of cell U3, regardless of how many edits you do after creating the formula. This occurs because Excel considers the parameter to be a string, not a cell address. Therefore, it won't change the string contents if you later delete or insert columns. If need be, you can also include the sheet name in your string:

=INDIRECT("Sheet1!U3")

Just a moment ago I said that you could not create a named range for cell U3, because the range that the name refers to is updated as you add or remove rows or columns. However, you can create a name to refer to something other than a range—the name can refer to a formula. So, for instance, you could use the Name Manager and create a name (such as MyRef) that refers to the simple INDIRECT formula mentioned:

=INDIRECT("U3")

Now you can use the name (MyRef) within your formulas, and the name will always refer to the contents of cell U3, regardless of how you add or remove rows and columns.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13942) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

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

Getting Rid of Modify Style Message

When you apply styles to a paragraph, you may periodically see a message asking if you want to reapply the style or ...

Discover More

Using a Numeric Portion of a Cell in a Formula

If you have a mixture of numbers and letters in a cell, you may be looking for a way to access and use the numeric ...

Discover More

Avoiding the "Check Remainder" Dialog Box

Need to check grammar using a macro? Word includes a couple of different ways to perform the check, and what you see ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Counting Alphabetic Characters in a String

Need to find out how many times a certain letter appears in a text string? It's easy to do if you rely on the SUBSTITUTE ...

Discover More

Extracting Street Numbers from an Address

Want to know how to move pieces of information contained in one cell into individual cells? This option exists if using ...

Discover More

Finding Odd Values Greater Than 50

If you have a special need to find cell values that meet two different criteria, where to start can be daunting. This tip ...

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}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. 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 two more than 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


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.