# Quickly Adding Formulas Referencing Multiple Worksheets

by Allen Wyatt
(last updated March 16, 2019)

Tyler has a workbook with a Trends worksheet followed by a worksheet for each day of the year. He needs to populate the Trends worksheet with data from every other worksheet. The cell needed is constant within each sheet. Tyler wonders how he can grab that data without manually doing "=A23" for each of the 365 worksheets.

There are a couple of ways you can approach this task, depending on exactly what you want to do. If you just want to get a sum for all of the 365 worksheets, you could use a formula such as the following:

```=SUM('Day1:Day365'!A23)
```

This assumes that your worksheets are named Day1 through Day365. An easy way to remove all doubt, however, is to follow these steps:

1. Select the cell in the Trends worksheet where you want to enter your formula.
2. Start to type in the formula: =SUM(
3. Click on the first worksheet tab (the one for the first day).
4. Hold down the Shift key as you click on the last worksheet tab (the one for the last day). Your formula should now look similar to this: =SUM('Day1:Day365'!
5. Click the cell you want summed, in this case cell A23. (It doesn't matter which worksheet you do this on.) Your formula will now look similar to this: =SUM('Day1:Day365'!A23
6. Press Enter. This finishes out the formula for you.

Of course, you may not want to sum a cell across worksheets. You may, in fact, simply want to list all 365 values in the Trends worksheet. In that case, the easiest method is to list all of the worksheet names just to the left of where you want the values listed. For instance, you might include all the worksheet names in column A. You can then use the INDIRECT function in a formula in column B:

```=INDIRECT("'"&A7&"'!A23")
```

Copy this down as many cells as necessary, and you end up with the desired values pulled from those other worksheets into column B. (See Figure 1.)

Figure 1. Pulling values into the Trends worksheet.

You can do away with the worksheet names in column A if you make sure your worksheets are named with some sort of pattern. For instance, you might have them named something like "Jan 01" through "Dec 31". In that case, you just modify the formula in column B, to something like this:

```=INDIRECT("'"& TEXT(DATE(2019,1,ROW()-6), "mmm dd")&"'!A23")
```

Copy the formula down as many cells as necessary, and you have the values you want. (See Figure 2.)

Figure 2. Pulling values into the Trends worksheet using dates.

Note that the formula subtracts 6 from what the ROW function returns because it is being entered into cell B7. If you are actually putting this formula into a different row, you'll want to adjust what you actually subtract.

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

##### 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

Page Ranges in a TOC

It is easy to generate a table of contents for a document, and that TOC can contain page number references for each ...

Discover More

Reversing Cell Contents

Macros are great at working with text. This tip presents an example that shows this versatility by reversing the contents ...

Discover More

Disabled Macros

Do your macros seem to be disabled on your new machine? It could be because of the security settings in Excel. Here's ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

##### More ExcelTips (ribbon)

Limiting a Calculated Value to a Range

If you want to limit what is returned by a formula to something between lower and upper boundaries, the solution is to ...

Discover More

Creating an Amortization Schedule

An amortization schedule is a report that shows how the outstanding balance on a loan changes with payments made over ...

Discover More

Concatenating Values from a Variable Number of Cells

Excel makes it easy to concatenate (or combine) different values into a single cell. If you need to combine a different ...

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.

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. 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 1 + 7?

2019-03-16 10:29:38

Allen

The use of the \$ (to keep the row static) doesn't really matter in this case because ";!A23" is, by nature, a static value. Every analysis of the INDIRECT function will use A23 with or without the \$ sign.

-Allen

2019-03-16 08:54:52

Elliot Penna

=INDIRECT("'"&A7&"'!A23")
Did you mean ...
=INDIRECT("'"&A7&"'!A\$23")
?

##### 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.