Indirect Function advanced

bestox

Board Regular
Joined
Apr 2, 2009
Messages
82
I am using this function, with B2 containig sheet name, C21 is the cell i am refering to with sheet name in B2.

=INDIRECT("'"&$B$2&"'!C21")

works fine!

But: i want to copy down / copy right this with a chaning C21 (C22, C23, ...; D21, E21, ... respective)

Since C21 is indicated as string, the formula is keeping C21; i tried =INDIRECT("'"&$B$2&"'!"&C21), but C21 is meant to be on the current page now (i get the colored box around a cell), the formular itself does not work anymore and has invalid reference.

I was playing around with function CONCATENATE, couldn't get it work.

anyone has an idea?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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