![]() |
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? |
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? |
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