ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cell Reference Embedded in Formula (https://www.excelbanter.com/excel-worksheet-functions/70067-cell-reference-embedded-formula.html)

Paul T

Cell Reference Embedded in Formula
 
I am trying to write a formula that, based on a cell on the current sheet,
references a cell from another sheet. I am getting a #NAME? error and I
cannot figure out how to correct it.

Example: =SUM(Sheet1!F162:Sheet1!F(B2))*Sheet1!E233

The B2 cell is supposed to determine which Sheet1 cell to use. I am using
Excel version 2000 9.0.7616 SP-3. Any suggestions would be greatly
appreciated.


Ron de Bruin

Cell Reference Embedded in Formula
 
Use this

=SUM(Sheet1!F162:INDIRECT("Sheet1!F" &B2))

See also
http://www.cpearson.com/excel/indirect.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Paul T" wrote in message ...
I am trying to write a formula that, based on a cell on the current sheet,
references a cell from another sheet. I am getting a #NAME? error and I
cannot figure out how to correct it.

Example: =SUM(Sheet1!F162:Sheet1!F(B2))*Sheet1!E233

The B2 cell is supposed to determine which Sheet1 cell to use. I am using
Excel version 2000 9.0.7616 SP-3. Any suggestions would be greatly
appreciated.




Paul T

Cell Reference Embedded in Formula
 
It works! Thanks Ron for the quick response.

"Ron de Bruin" wrote:

Use this

=SUM(Sheet1!F162:INDIRECT("Sheet1!F" &B2))

See also
http://www.cpearson.com/excel/indirect.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Paul T" wrote in message ...
I am trying to write a formula that, based on a cell on the current sheet,
references a cell from another sheet. I am getting a #NAME? error and I
cannot figure out how to correct it.

Example: =SUM(Sheet1!F162:Sheet1!F(B2))*Sheet1!E233

The B2 cell is supposed to determine which Sheet1 cell to use. I am using
Excel version 2000 9.0.7616 SP-3. Any suggestions would be greatly
appreciated.





Ken B

Cell Reference Embedded in Formula
 

This post is particularly timely. I am today struggling with a similar
dynamic referencing issue.

I need to reference a table on another sheet. I actually want to
mirror pivot tables that are on each monthly sheet.
Currently I try to reference them as =jan!F204 thru =jan!L221
Unfortunately the row references might also change as rows are
added/deleted. As the sheet reference changes over time it would be
good if it continued to flow with the changes.
I have tried a suggestion in the lit. to present a pivot table of the
pivot table. Far too complicated!

Help...


--
Ken B
------------------------------------------------------------------------
Ken B's Profile: http://www.excelforum.com/member.php...o&userid=31274
View this thread: http://www.excelforum.com/showthread...hreadid=509375


Ron de Bruin

Cell Reference Embedded in Formula
 
Hi Ken

If I understand you correct see
http://www.contextures.com/xlNames01.html#Dynamic


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ken B" wrote in message
...

This post is particularly timely. I am today struggling with a similar
dynamic referencing issue.

I need to reference a table on another sheet. I actually want to
mirror pivot tables that are on each monthly sheet.
Currently I try to reference them as =jan!F204 thru =jan!L221
Unfortunately the row references might also change as rows are
added/deleted. As the sheet reference changes over time it would be
good if it continued to flow with the changes.
I have tried a suggestion in the lit. to present a pivot table of the
pivot table. Far too complicated!

Help...


--
Ken B
------------------------------------------------------------------------
Ken B's Profile: http://www.excelforum.com/member.php...o&userid=31274
View this thread: http://www.excelforum.com/showthread...hreadid=509375





All times are GMT +1. The time now is 09:45 AM.

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