I need to use the ADDRESS function to define a range from which an average can be determined. My current function is as follows:
I am wondering why this keeps giving me the VALUE error...Please Login or Register to view this content.
I need to use the ADDRESS function to define a range from which an average can be determined. My current function is as follows:
I am wondering why this keeps giving me the VALUE error...Please Login or Register to view this content.
Last edited by SDruley; 08-11-2009 at 10:38 AM. Reason: To mark SOLVED
Because ADDRESS returns a String and thus to be converted to a Range you would need to encase within INDIRECT - therefore making function Volatile - better to use INDEX but before we can demo can you elaborate in terms of how row/column flags are identified / sourced ?
Also to check, ADDRESS(4,363) would be $MY$4 ... not sure if you meant $B$4:$B$363 or $B$4:$MY$4 ?
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Try:
=AVERAGE(INDIRECT(ADDRESS(4,2)&":"&ADDRESS(4,363)))
or better:
=AVERAGE(INDEX(4:4,,2):INDEX(4:4,,363))
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Problem solved.
A lot of talents jumped on this within minutes. Thanks so much to NBVC and DonkeyOte.
WOW
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks