Retrieving data from same cell from a list of worksheet names

TMAZZ

New Member
Joined
Aug 31, 2014
Messages
12
[TABLE="width: 331"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Not sure what I'm doing work but I'm having problems retrieving data from the same cell from many worksheets.

The formula is returning an error can you help me? Please[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]=INDIRECT(""&B20&"'!J6)[/TD]
[/TR]
</tbody>[/TABLE]


This column lists all worksheets ie.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]'=INDEX(sheetlist,ROW())[/TD]
[TD]SAM[/TD]
[TD]'INDIRECT("'"&A20&"'!J6)[/TD]
[/TR]
[TR]
[TD]JOHN[/TD]
[TD][/TD]
[TD]5%[/TD]
[/TR]
[TR]
[TD]DAVID[/TD]
[TD][/TD]
[TD]3%[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want the third column to look at Column A Row 20 which reads worksheet name SAM and in that worksheet drop the data from cell# J6,
This is repeated as many worksheet exist so the next worksheet name is John and in that worksheet cell# J6 is 5% and so on
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If the name is strictly what you have typed in column A, then maybe

=INDIRECT(A20&"!"&"J6") or

=INDIRECT(A20&"!"&ADDRESS(6,10))
 
Upvote 0
The following formula is in column A
INDEX(sheetlist,ROW())
then I tired typing in the name SAM in column A
Still returning a error #REF!
 
Upvote 0
Well, except SAM, JOHN ... are not the exact names of your shee 'cos see what I have here, I created sheets with those names and used with that formula


Excel 2010
ABC
20SAM5%
21JOHN2%
Sheettoday`2
Cell Formulas
RangeFormula
C20=INDIRECT(A20&"!"&"J6")
C21=INDIRECT(A21&"!"&"J6")
 
Upvote 0
Sorry Still not working, Anyone else have an idea why its not working?

Still returning a error #REF!
 
Upvote 0
Sorry Still not working, Anyone else have an idea why its not working?

Still returning a error #REF!

I know you have tried with a formula and by typing in the name of the sheet, have you confirmed that the sheet name does not contain extraneous spaces because there's no reason why the formula as I proposed shouldn't work
 
Upvote 0
I know you have tried with a formula and by typing in the name of the sheet, have you confirmed that the sheet name does not contain extraneous spaces because there's no reason why the formula as I proposed shouldn't work

OK it works as shown below, but why does it not work with the formula? I notice the formula adds a space as noted below, here's the formula for the worksheets
'=INDEX(sheetlist,ROW())
how do I get the above formula to start without a space?


[TABLE="width: 203"]
<tbody>[TR]
[TD]' JOHN[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD]JOHN[/TD]
[TD="align: right"]0.0366972[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
The formula picks from "sheetlist" which is a range name(I think :), so I would suggest you check the "sheetlist" range for those spaces, 'cos the formula simply returms what you have in sheetlist range.

Victor
 
Upvote 0
The formula picks from "sheetlist" which is a range name(I think :), so I would suggest you check the "sheetlist" range for those spaces, 'cos the formula simply returms what you have in sheetlist range.

Victor

I tried =TRIM(A20) this removes the space and the results sits in B20 but then the formula


[TABLE="width: 100%"]
<tbody>[TR]
[TD]=INDIRECT(B20&"!"&"J6")

doesn't work. note the formula is changed from A20 to B20[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,602
Members
452,784
Latest member
talippo

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