Double Indirect function?

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
On my Summary worksheet, I'm looking for a formula invokes a cell based off what month it is. I have a "Controls" worksheet which shows the month the user has chosen from a dropdown menu on the Summary page, and then 12 other worksheets, one for each month.

So the formula would always be looking at the 'controls' tab in cell d55 to get the current month, and then based on that, would go to the relevant worksheet from that month and grab cell C409.


I think this would require two indirect functions, but not quite sure how to write it. Any help?

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
On my Summary worksheet, I'm looking for a formula invokes a cell based off what month it is. I have a "Controls" worksheet which shows the month the user has chosen from a dropdown menu on the Summary page, and then 12 other worksheets, one for each month.

So the formula would always be looking at the 'controls' tab in cell d55 to get the current month, and then based on that, would go to the relevant worksheet from that month and grab cell C409.


I think this would require two indirect functions, but not quite sure how to write it. Any help?

Thanks
Try it like this...

=INDIRECT(C55&"!C409")

Assuming the month is the TEXT month name like Jan or January.
 
Upvote 0
thanks, guys.

But the formula would be on the summary sheet, where it would then look to the controls worksheet to get the month from cell D55, and from there go to the relevant month tab (if controlsD55 was Apr, the info would be from the Apr tab) to get the info from c409 of the month tab. I think your formulas are assuming I'm working off the "controls" tab.
 
Upvote 0
thanks, guys.

But the formula would be on the summary sheet, where it would then look to the controls worksheet to get the month from cell D55, and from there go to the relevant month tab (if controlsD55 was Apr, the info would be from the Apr tab) to get the info from c409 of the month tab. I think your formulas are assuming I'm working off the "controls" tab.
OK, then just include the sheet name:

=INDIRECT(Controls!D55&"!C409")
 
Upvote 0
One more quick question:

Is there a way that I could drag that formula and have the cells change with it? I locked the controlsD55 cell with the $$, but if I drag the formula over, I'm hoping for the C409 to turn into D409, etc, while the ControlsD55 remains locked.

Is there a way to do this?
 
Upvote 0
One more quick question:

Is there a way that I could drag that formula and have the cells change with it? I locked the controlsD55 cell with the $$, but if I drag the formula over, I'm hoping for the C409 to turn into D409, etc, while the ControlsD55 remains locked.

Is there a way to do this?
Try something like this...

Let's assume you enter the first formula in cell A2 and want to copy across the row.

=INDIRECT(ADDRESS(409,COLUMNS($A2:A2)+2,4,,Controls!$D55))
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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