+ Reply to Thread
Results 1 to 4 of 4

Using ADDRESS function in AVERAGE

  1. #1
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Using ADDRESS function in AVERAGE


    I need to use the ADDRESS function to define a range from which an average can be determined. My current function is as follows:

    Please Login or Register  to view this content.
    I am wondering why this keeps giving me the VALUE error...
    Last edited by SDruley; 08-11-2009 at 10:38 AM. Reason: To mark SOLVED

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using ADDRESS function in AVERAGE

    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 ?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using ADDRESS function in AVERAGE

    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.

  4. #4
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Using ADDRESS function in AVERAGE

    Problem solved.

    A lot of talents jumped on this within minutes. Thanks so much to NBVC and DonkeyOte.

    WOW

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1