Forum Discussion
Neale1951
Jul 06, 2023Copper Contributor
Formula to calculate worksheet name
I use this formula -- ='Week 104'!D4 -- (and lots of variations of this formula) to determine the value of cells in other worksheets (Week 102, Week 103, Week 104, Week 105, etc.). Updating the formu...
Riny_van_Eekelen
Jul 06, 2023Platinum Contributor
Neale1951 You can build a dynamic reference with the INDIRECT function. Something like in the pictures below.
The formula in B1 on Sheet1 builds a text containing the sheet name and cell reference for the cell from which you want to return the value. The formula is:
=INDIRECT("'Weeek "&A1&"'!A1")
Edit: Obviously, I meant ot use sheet names called "Week nnn", not "Weeek nnn". But it doesn't really matter.
Neale1951
Jul 06, 2023Copper Contributor
Riny_van_Eekelen Thank you for the suggestion. I will investigate this function and try it tonight.