ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Summary worksheet referencing multiple worksheets (https://www.excelbanter.com/excel-worksheet-functions/10138-summary-worksheet-referencing-multiple-worksheets.html)

Jon

Summary worksheet referencing multiple worksheets
 
Scenario: multiple worksheets (sheet1,sheet2,sheet3,etc) sheet 1 is a
summary. Sheet2!A1 contains the number 22, Sheet3!A1 contains the number 33

Based on the value in Sheet1!A1 I want to return a value in Sheet1!A2 based
on the data in the remaining sheets. In Sheet1!A1 I want to enter "Sheet2"
and then in Sheet1!A2 I want the value 22 returned from Sheet2!A1. Similarly
if I enter in Sheet1!A1 "Sheet3" and then in Sheet1!A2 the value 33 should be
returned which comes from Sheet3!A3.

Max

In Sheet1
-------------
With the sheetname input into cell A1
(as per post)

Try in A2: =INDIRECT("'"&A1&"'!A1")

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Jon" wrote in message
...
Scenario: multiple worksheets (sheet1,sheet2,sheet3,etc) sheet 1 is a
summary. Sheet2!A1 contains the number 22, Sheet3!A1 contains the number

33

Based on the value in Sheet1!A1 I want to return a value in Sheet1!A2

based
on the data in the remaining sheets. In Sheet1!A1 I want to enter "Sheet2"
and then in Sheet1!A2 I want the value 22 returned from Sheet2!A1.

Similarly
if I enter in Sheet1!A1 "Sheet3" and then in Sheet1!A2 the value 33 should

be
returned which comes from Sheet3!A3.





All times are GMT +1. The time now is 05:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com