Redirect a formula based on another cell value?

Defski

New Member
Joined
Apr 25, 2018
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a question is it possible to redirect a formula based on another cells value.

A little background, I have a workbook where I have a summery sheet and the rest of the sheet names are the week of the year. something like wk1, wk2, wk15 etc. I have several formulas on the summery sheet that may reference data on the various different week sheet names.

What I would like to do, for example is if I enter a week number in a particular cell, say I enter 15 in cell c1, the formula on this sheet that is referencing the various number of the week sheet names would then automatically start referencing the new week number entered, in this example wk15 instead of the previous week it was referencing say wk2.

Is anything like this possible?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
using an indirect()

so you can enter a sheet name in a cell and then use that as the sheet name
BUT
how many formulas ?

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Thank you, you pointed me in the direction I needed and was able to come up with something that works.
for my purposes a formula like this worked well. =INDIRECT("'["&$Y$2&"]"&"wk"&$X$2&"'!K"& ROW(76:76))
 
Upvote 0
you are welcome, glad its resolved for you
 
Upvote 0

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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