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

Importing Many Files Into Excel

Importing a single file is easy. Importing a whole slew of files can be much more of a challenge.

Discover More

Sorting ZIP Codes

Sorting ZIP Codes can be painless, provided all the codes are formatted the same. Here's how to do the sorting if you ...

Discover More

Returning Item Codes Instead of Item Names

The data validation capabilities of Excel are really handy when you want to limit what is put into a cell. However, you ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Incrementing Numeric Portions of Serial Numbers

If you use serial numbers that include both letters and numbers, you might wonder how you can increment the numeric ...

Discover More

Retrieving the Last Value in a Column

Need to get at the last value in a column, regardless of how many cells are used within that column? You can apply the ...

Discover More

Removing Everything Except Duplicates

Excel includes a built-in tool that will remove duplicate rows from a worksheet. If you want to remove non-duplicate ...

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 5 - 2?

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.