Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Worksheet formula 1

Status
Not open for further replies.

clifftech

ISP
Nov 9, 2001
111
US
I need to get values from numerous worksheets into a worksheet named "Summary". Summary worksheet has a list of all the worksheets names in column A (for example cell A1= "Worksheet_Date1") How do I pull information from cell D15 in Worksheet_Date1 by referencing cell A1 in the summary sheet?

I have tried =A1&"!"&D15 (where A1 is the worksheet name and D15 is the cell I need the value) but it doesn't give the value.

What am I missing?
 



Hi,

The short answer is that you do not type ANY REFERENCE. You simply point to the sheet tab for the sheet you want to reference, and then the cell range, and that would result in...
[tt]
=Worksheet_Date1!D15
[/tt]
If your worksheet name is in A1...
[tt]
=INDIRECT(A1&"!D15")
[/tt]



Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks for the quick response...

I tried =INDIRECT(A1&"!D15") and get #REF!

 

Then, the value that you are referencing in A1 is incorrect!

Do you have a SPACE in the sheet name?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


BTW, if it were my workbook design, I would invest my effort, CONSOLIDATING all the detail data into ONE table on ONE sheet, without a doubt!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
The space was the problem. Works great.

I am using this macro to list all the worksheets in a summary worksheet. Is there a better way (function?)to list the worksheets?

Sub SheetNames()
Columns(1).Insert
For i = 1 To Sheets.Count
Cells(i, 1) = Sheets(i).Name
Next i
End Sub

The worksheet is not my design...I'm stuck with it!
 


You cannot insert an sheet and consolidate the data. I would not hange ANYTHING ELSE. You could even make that consolidation sheet HIDDEN. It would save you sooooo much time and effort!!! Excel is designed to work on ONE TABLE at a time not multiple tables. Multiple tables is a curse!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top