Reference Worksheet in Formula

Kaloyanides

New Member
Joined
Jul 1, 2015
Messages
4
Good Morning!

Hopefully someone can help with this one...

I have a workbook that has many worksheets. One worksheet for each week.

I need a formula that will take the current week (in this case 9) and then subtract 1 to get the previous week's worksheet name and then reference a cell in the previous week.

This is the current formula that I had to do manually: =H107/'8'!H107-1

Every week I have to manually change the formula, change the week number. I'd love to be able to do automatically.

How do I reference a worksheet in a formula? Say the current week is 9. How do I write a formula to reference week 8 (worksheet name 8) in a formula?

This seems like it should be a simple thing to do but I can't seem to figure it out... Thx so much!

1709993561599.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Maybe something like
Excel Formula:
=H107/INDIRECT("'" & WEEKNUM(TODAY(),1)-2&"'!H107")-1
 
Upvote 1
Solution
Good Morning!

Hopefully someone can help with this one...

I have a workbook that has many worksheets. One worksheet for each week.

I need a formula that will take the current week (in this case 9) and then subtract 1 to get the previous week's worksheet name and then reference a cell in the previous week.

This is the current formula that I had to do manually: =H107/'8'!H107-1

Every week I have to manually change the formula, change the week number. I'd love to be able to do automatically.

How do I reference a worksheet in a formula? Say the current week is 9. How do I write a formula to reference week 8 (worksheet name 8) in a formula?

This seems like it should be a simple thing to do but I can't seem to figure it out... Thx so much!

View attachment 108124
This worked: =INDIRECT("'" & A307&"'!I94")

Thanks so much!!! Really appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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