Help.. Pull value of a cell on another worksheet dynamically.

DeR

New Member
Joined
Aug 2, 2008
Messages
11
Okay,
My first worksheet's name (see below image) is "Main", the second sheet in my workbook is named "c01". I want cell E5 in sheet "Main" to always have the same value as cell C23 of worksheet "c01". So I use the following function:
='c01'!C23
which works great. My question is this; How can I rewrite the function above a little so that I'm not statically telling that cell which worksheet ("c01" in this case) to reference, but rather to get part (the 01 part) of the name of the worksheet in the cell 3 to the left of itself???
So in other words, something like this:
='c(value of cell three to the left)'!C23

I hope that makes sense. I know there's probably a few ways to do this but so far it's not working. I tried
=INDIRECT("'c"&B5&"'!23")
but it didn't work.

-- removed inline image ---




Thanks in advance...

DeR
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
You missed the column reference:

=INDIRECT("'c"&B5&"'!C23")

If B5 contains a number you will need:

=INDIRECT("'c"&TEXT(B5,"00")&"'!C23")
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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