Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Relative References to Cells in Other Workbooks.

Relative References to Cells in Other Workbooks

Written by Allen Wyatt (last updated September 27, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003


When Stephen is creating a formula and refers to a cell in another worksheet in the same workbook, the reference is always relative (A1). However, when he refers to a cell in another workbook, the reference is always absolute ($A$1). Stephen wonders if there is a way of getting this to be automatically relative (A1) without having to go into the cell and press F4 three times.

The typical way to deal with this situation is to simply edit the reference in the formula, as you are effectively doing. There are, however, two other ways that you can approach this problem, if you desire.

The first idea is to simply create all your formulas, but leave the absolute references in place. Then, as a "final" step, use Find and Replace to get rid of the dollar signs in the formulas. All you need to do is follow these steps:

  1. Select the cells that have the formulas in them.
  2. Press Ctrl+H. Excel displays the Replace tab of the Find and Replace dialog box. (See Figure 1.)
  3. Figure 1. The Replace tab of the Find and Replace dialog box.

  4. In the Find What box, enter a single dollar sign.
  5. Make sure the Replace With box is empty.
  6. Click Replace All.

That's it; all the dollar signs in the selected cells are deleted, leaving relative references, as desired. If you have some absolute references in those cells that you want to remain, then you should use the controls in the Find and Replace dialog box to step through each instance and do the replacement, as desired.

The second idea is quite novel, really. If your references are all to the same worksheet in the external workbook, then follow these general steps:

  1. Move the target worksheet to the workbook that will contain the formulas. (Actually move it, don't just copy it.)
  2. Create your formulas. Since the target worksheet is now within the same workbook as your formula, the references in those formulas will be relative, by default.
  3. Save your workbook.
  4. Move the target worksheet (the one you moved in step 1) back to its original workbook.

What happens with these steps is that when you move the worksheet back to its original workbook, Excel updates the first part of the formula references to include the information about the external workbook. It does not, however, change the cell references in those formulas from relative to absolute.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11225) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Relative References to Cells in Other Workbooks.

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

Creating a Document Font List

If you want a list of all the fonts used in a document, the answer isn't as simple as you may think. This tip uses macros ...

Discover More

Deleting Stubborn Links

Deleting unwanted links in a workbook can be a challenge, particularly if you are not sure how those links got there. ...

Discover More

Removing Line Numbering

If you've added line numbers to your document, at some point you may want them turned off. Here's how to disable line ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Pulling a Phone Number with a Known First and Last Name

When using an Excel worksheet to store data (such as names and phone numbers), you may need a way to easily look up a ...

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 in using ...

Discover More

Counting Consecutive Negative Numbers

If you have a range of values that can be either positive or negative, you might wonder how to determine the largest ...

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 2 + 8?

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 menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.