ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating using data from another worksheet (https://www.excelbanter.com/excel-worksheet-functions/5265-calculating-using-data-another-worksheet.html)

Sid N

Calculating using data from another worksheet
 
Hello,

Is there a way wherein i can use a variable name, whose value is a
worksheet name, in a calculation? I do not want to hard-code the name of the
worksheet into the formula. I want to pick up the name from the value of a
cell.

Thanks
Sid N

Frank Kabel

Hi
if A1 contains the worksheet name try:
=INDIRECT("'" & A1 & "'!X1")
to return cell X1 from this sheet

--
Regards
Frank Kabel
Frankfurt, Germany

"Sid N" <Sid schrieb im Newsbeitrag
...
Hello,

Is there a way wherein i can use a variable name, whose value is a
worksheet name, in a calculation? I do not want to hard-code the name

of the
worksheet into the formula. I want to pick up the name from the value

of a
cell.

Thanks
Sid N




All times are GMT +1. The time now is 03:35 PM.

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