Formula referencing the previous sheet

capblasters

New Member
Joined
Jun 29, 2010
Messages
4
I have a file with a sheet for each week (52 all in) which is a form that gets filled in weekly. One cell on sheet 2 ('Sheet2'!A10 for example) represents the value of the previous week ('Sheet1'!A10) and adds half of the value of 'Sheet1'!A8. So, the formula in 'Sheet2'!A10 = 'Sheet1'!A10 + 0.5 * 'Sheet1'!A8

What I am looking for is a way to write the formula above such that when it is copied from 'Sheet2' to the other 52 sheets, the 'Sheet2' is updated to 'Sheet3', 'Sheet4' etc. such that (for example) the cell 'Sheet10'!A10 = 'Sheet9'!A10 + 0.5 * 'Sheet9'!A8.

Thanks,

Graham
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Formula in A10 of Sheet2
Code:
=INDIRECT("Sheet"&MID(CELL("filename",A1),FIND("]Sheet",CELL("filename",A1))+6,255)-1&"!A10")+0.5*INDIRECT("Sheet"&MID(CELL("filename",A1),FIND("]Sheet",CELL("filename",A1))+6,255)-1&"!A8")
Then copy to A10 of other sheets
 
Upvote 0
Thanks for this. I got this to work with a couple of changes. The first is a missing space after the work Sheet in the first argument for each of the INDIRECT functions. The second is an apostrophe in front of the exclamation point of each of the cell references. The formula I used is shown below. I would never have got there without the help. Thanks!
=INDIRECT("'Sheet "&MID(CELL("filename",A1),FIND("]Sheet",CELL("filename",A1))+6,255)-1&"'!A10")+0.5*INDIRECT("'Sheet "&MID(CELL("filename",A1),FIND("]Sheet",CELL("filename",A1))+6,255)-1&"'!A8")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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