+ Reply to Thread
Results 1 to 4 of 4

using relative references in Indirect

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    using relative references in Indirect

    Is there a simple method of writing an Indirect formula so that I can copy it across to multiple tables, all with same structure? In the example below, I'd like the "E" and "F" to be relative. I looked up the Columns formula but that returns the column number. I've attached a worksheet where this formula appears in rows 75 and 76

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: using relative references in Indirect

    Use the ADDRESS function.

    In L76:
    Please Login or Register  to view this content.
    That should copy/paste around as you desire.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: using relative references in Indirect

    Thanks Ben. Saved me from lots of tedious work!

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: using relative references in Indirect

    I don't use INDIRECT() myself. I think the easiest way to get relative referencing in INDIRECT() would be to use R1C1 notation (see optional second argument of INDIRECT() function: https://support.office.com/en-us/art...1-92b6306fa261 ). The advantage to R1C1 referencing in this case is that reference text strings do not change as cells are copied around. A1 references, of course, change.

    I apologize for being to lazy to translate all of your complex logic, but a simple example should suffice to illustrate how this works.

    =INDIRECT("R[-43]C[4]",FALSE) in A77 (I wanted to be able to compare to your formula in A76) will always refer to the cell 43 rows above and 4 columns to the right -- which should be E34 in this case. If you copy this function across, each copy will refer to the cell 43 rows above and 4 columns to the right of the cell containing the INDIRECT() function, so each successive column returns F34, G34, and so on.

    Compare to =INDIRECT("E34",TRUE) in A76. A76 will pull the value from E34, but the reference string does not change as it is copied across, so each copy also refers to E34.

    Of course, going from that to the more complex range definition and such that your MAX(...)-MIN(...) functions are doing is more work. I would suggest you start here https://support.office.com/en-us/art...3-c311f47ca173 which has a section that talks about how R1C1 references are put together.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. VBA to change indirect references to direct references within array formulas
    By acj06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2017, 12:16 AM
  2. INDIRECT with Relative Cell References
    By i4mt3hwin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-07-2015, 08:28 AM
  3. How to for converting absolute references to relative references in formulas
    By edspyhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2014, 02:09 AM
  4. Relative References?
    By PleaseHelpMe123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 09:39 AM
  5. Excel 2007 : Relative References
    By SDHofmann in forum Excel General
    Replies: 9
    Last Post: 08-20-2011, 12:33 PM
  6. Replies: 5
    Last Post: 02-18-2011, 05:27 AM
  7. Relative references
    By GARY in forum Excel General
    Replies: 7
    Last Post: 06-16-2006, 05:15 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