ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to reference cells dynamically (https://www.excelbanter.com/excel-discussion-misc-queries/73415-how-reference-cells-dynamically.html)

ArthurN

How to reference cells dynamically
 
There're some times when I want to reference the cell dynamically in a
function: avg(A1:(the cell not known or changes)) I would like to achieve
something like this: avg(A1:address(R1C1)) or avg(A1:F(address(R1C1)), which
doesn't of course work, when the address function or some other borrows the
cell reference from the value of another cell. Can I achieve this result
without using a macro?

Gary''s Student

How to reference cells dynamically
 
Yes:

Checkout the INDIRECT() function in Help.
--
Gary''s Student


"ArthurN" wrote:

There're some times when I want to reference the cell dynamically in a
function: avg(A1:(the cell not known or changes)) I would like to achieve
something like this: avg(A1:address(R1C1)) or avg(A1:F(address(R1C1)), which
doesn't of course work, when the address function or some other borrows the
cell reference from the value of another cell. Can I achieve this result
without using a macro?


paul

How to reference cells dynamically
 
the indirect function and named ranges are very useul here
--
paul
remove nospam for email addy!



"ArthurN" wrote:

There're some times when I want to reference the cell dynamically in a
function: avg(A1:(the cell not known or changes)) I would like to achieve
something like this: avg(A1:address(R1C1)) or avg(A1:F(address(R1C1)), which
doesn't of course work, when the address function or some other borrows the
cell reference from the value of another cell. Can I achieve this result
without using a macro?



All times are GMT +1. The time now is 07:50 AM.

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