+ Reply to Thread
Results 1 to 4 of 4

Using ADDRESS as part of another function

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Using ADDRESS as part of another function

    Hi,

    I am struggling with a formula I'm trying to use. I would like it to be something along the lines of:

    =SUM('Sheet3'!C47 : (ADDRESS(47, Period + 2, 1, 1, "Sheet3")))

    where the address function is returning a certain row with a moving column value (depending on my formula variable called "Period"). However, this is returning an error.

    When I copy the "(ADDRESS(47, Period + 2, 1, 1, "Sheet3"))" portion into another cell, it returns the value " 'Sheet3'!$G$47 ". When I type my original function in with the following:

    =SUM('Sheet3'!C47:'Sheet3'!$G$47)

    that works, too, but for some reason not the combination of ADDRESS and SUM. Please help!
    Last edited by jdriscol; 08-18-2017 at 06:19 PM.

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Using ADDRESS as part of another function

    Try this:

    =SUM(Sheet3!C47:INDEX(Sheet3!47:47,Period+2))

  3. #3
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Re: Using ADDRESS as part of another function

    That works, thanks! Do you know why the address formula doesn't work in this scenario?

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Using ADDRESS as part of another function

    Quote Originally Posted by jdriscol View Post
    That works, thanks! Do you know why the address formula doesn't work in this scenario?
    Because ADDRESS returns a text string. Your formula would work with INDIRECT added:

    =SUM(Sheet3!C47:INDIRECT(ADDRESS(47, Period+2, 1, 1, "Sheet3")))

    However, INDIRECT is a volatile function while INDEX isn't.
    Last edited by Root_; 08-18-2017 at 06:46 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Make part of address indirect and keep rest of address relative?
    By OldManExcellor in forum Excel General
    Replies: 1
    Last Post: 01-29-2016, 06:07 AM
  2. [SOLVED] Using formula as part of cell address
    By jcaster in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2014, 08:51 AM
  3. [SOLVED] reference part of cell address from button and part of another cell
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-24-2012, 04:48 PM
  4. Using a cells contents as part of an address in a function
    By bdemski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2007, 11:05 PM
  5. Using the ADDRESS function to refer to part of a range
    By TruthSeeker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2006, 04:54 AM
  6. Select part of hyperlink address via VBA
    By Ron in forum Excel General
    Replies: 2
    Last Post: 04-23-2006, 03:10 PM
  7. hyperlink with cell value as part of address
    By chevee55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2006, 03:25 PM

Tags for this Thread

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