ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using =address to provide address location for =average (https://www.excelbanter.com/excel-worksheet-functions/7214-using-%3Daddress-provide-address-location-%3Daverage.html)

ahills

Using =address to provide address location for =average
 
Is it possible to use =address to supply the cell addresses for the range in
the average function. I can get all the pieces to work separately but can't
nest the =address function within =average

Jason Morin

Yes, but you need to use INDIRECT to convert the string
created from ADDRESS to a real reference. For example:

=AVERAGE(INDIRECT(ADDRESS(1,1)),INDIRECT(ADDRESS(5 ,1)))

This is the same as:

=AVERAGE(A1,A5)

HTH
Jason
Atlanta, GA

-----Original Message-----
Is it possible to use =address to supply the cell

addresses for the range in
the average function. I can get all the pieces to work

separately but can't
nest the =address function within =average
.


Fordson

Jason Morin wrote:
Yes, but you need to use INDIRECT to convert the string
created from ADDRESS to a real reference. For example:

=AVERAGE(INDIRECT(ADDRESS(1,1)),INDIRECT(ADDRESS(5 ,1)))

This is the same as:

=AVERAGE(A1,A5)

HTH
Jason
Atlanta, GA


-----Original Message-----
Is it possible to use =address to supply the cell


addresses for the range in

the average function. I can get all the pieces to work


separately but can't

nest the =address function within =average
.

Thanks Jason - that did it.

Allen


All times are GMT +1. The time now is 06:24 PM.

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