+ Reply to Thread
Results 1 to 3 of 3

Refer Back to the Cell Returned by Address Function

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    NY, NY
    MS-Off Ver
    Excel 2007
    Posts
    16

    Refer Back to the Cell Returned by Address Function

    I'm calculating an XNPV and I have the values and dates changing, so I've used Address and Match to return the start and end cells for the XNPV calc...

    But I'm getting a Value error, and I think it's because the XNPV doesn't recognize what the Address function is returning... Is this right?

    Basically, I want the XNPV function to refer back to the cell that Address returns... is that possible?

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Refer Back to the Cell Returned by Address Function

    Hello
    The ADDRESS function only returns a text reference. For Excel to use it as an actual range reference you need to place it within the INDIRECT function. For example, to Sum $A$1:$A$5:

    =SUM(INDIRECT(ADDRESS(1,1)&":"&ADDRESS(5,1)))
    Hope this helps.
    DBY

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,621

    Re: Refer Back to the Cell Returned by Address Function

    INDIRECT being volatile, INDEX is much easier
    =SUM(index(A:A,1):index(A:A,5))
    following DBY's example

    EDIT : even better =SUM(index(A:A,5,))
    Last edited by Pepe Le Mokko; 04-26-2013 at 10:56 AM.

+ 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