Indirect function within an indirect function

wjbottiny

New Member
Joined
Oct 2, 2007
Messages
3
=INDIRECT("'"&K$4&"'!"& INDIRECT("'"&K$2&"'!"&"R2"&14):INDIRECT("'"&K$2&"'!"&"S2"&14))

Cell k4 contains sheet name 1
Cell K2 contains sheet name 2

Cells r2 and s2 in sheet name 2 contain letters representing column references, for row 14

I can get the two indirect functions to work separately, but when I combine them into the above formula, I get #value!

what is wrong with the formula?

Thanks


System Info Sheet in workbook

Annual Sheet in workbook


Method 1 2950 summing three cells in Annual sheet directly

Method 2 2950 summing those cells in this sheet by way of indirect reference to System Info sheet

Method 3 2950 summing three cells in Annual sheet by way of indirect reference to Annual sheet


832 982 1135
#VALUE! trying to sum those three cells by way of indirect reference to Annual sheet and indirect reference to System Info sheet (combining Methods 2 and 3)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I can get the two indirect functions to work separately

I doubt you can. Or at least it's very unclear here.

What should this give us:

INDIRECT("'"&K$2&"'!"&"R2"&14)

and how is it set up / what are the components?

By the way, looking at these kind of functions that you have there, I really think that a bad spreadsheet design is the basis.
Before creating a spreadsheet, think about its structure, sheets, calculations, and so on. Only after that, create the spreadsheet. Not the other way around.
 
Upvote 0
=SUM(INDIRECT("'"&K4&"'!"&INDIRECT("'"&K2&"'!R2")&"14"),INDIRECT("'"&K2&"'!"&INDIRECT("'"&K2&"'!s2")&"14"))
This should work, try it out
<colgroup><col width="965" style="width: 724pt; mso-width-source: userset; mso-width-alt: 35291;"> <tbody> </tbody>
 
Upvote 0
=indirect("'"&k$4&"'!"& indirect("'"&k$2&"'!"&"r2"&14)&":"&indirect("'"&k$2&"'!"&"s2"&14))
or maybe
=INDIRECT("'"&K$4&"'!"& INDIRECT("'"&K$2&"'!"&"R2")&"14:"&INDIRECT("'"&K$2&"'!"&"S2")&14)
 
Last edited:
Upvote 0
Or
=INDIRECT("'"&K$4&"'!"& INDIRECT("'"&K$2&"'!R2")&"14:"&INDIRECT("'"&K$2&"'!S2")&14)
 
Upvote 0
Try this small modification in the formulas posted too:

Code:
=SUM(INDIRECT("'"&K$4&"'!"&INDIRECT("'"&K$2&"'!"&CELL("address",R2))&"14:"&INDIRECT("'"&K$2&"'!"&CELL("address",S2))&14))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

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