Copying a formula in a column with different spreadsheets references.

timgabel

New Member
Joined
Dec 18, 2016
Messages
5
How do I copy formulas in a column containing a reference to a spreadsheet and a cell and have the reference to the spreadsheet change from spreadsheet 1 to 2 and 3 consecutively just like a relative cell number?

Example

Page1 E1+D2
Page 2 E+D2

How do I copy this data down a column and have the Page 1 change to Page 2, Page 3, etc. automatically?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Enter the first formula, then drag or copy it down.
=INDIRECT("Page"&ROW(A1)&"!E1")+INDIRECT("Page"&ROW(A1)&"!D2")
=INDIRECT("Page"&ROW(A2)&"!E1")+INDIRECT("Page"&ROW(A2)&"!D2")
=INDIRECT("Page"&ROW(A3)&"!E1")+INDIRECT("Page"&ROW(A3)&"!D2")
=INDIRECT("Page"&ROW(A4)&"!E1")+INDIRECT("Page"&ROW(A4)&"!D2")

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
Enter the first formula, then drag or copy it down.
=INDIRECT("Page"&ROW(A1)&"!E1")+INDIRECT("Page"&ROW(A1)&"!D2")
=INDIRECT("Page"&ROW(A2)&"!E1")+INDIRECT("Page"&ROW(A2)&"!D2")
=INDIRECT("Page"&ROW(A3)&"!E1")+INDIRECT("Page"&ROW(A3)&"!D2")
=INDIRECT("Page"&ROW(A4)&"!E1")+INDIRECT("Page"&ROW(A4)&"!D2")

<tbody>
</tbody>


I will give this a try and let you know if I have any issues or questions.

Thank you so much!

Tim
 
Upvote 0

Forum statistics

Threads
1,203,238
Messages
6,054,312
Members
444,715
Latest member
GlitchHawk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top