+ Reply to Thread
Results 1 to 2 of 2

Make part of address indirect and keep rest of address relative?

  1. #1
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Make part of address indirect and keep rest of address relative?

    I want to control the file and sheet name of a reference in a cell formula with indirect or something equivalent but have the rest of the reference be relative and possible to copy to other cells, how can I achieve this?

    I'm looking for something like this:
    Please Login or Register  to view this content.
    that I can copy downwards with relative references like:
    Please Login or Register  to view this content.
    Where I would want the second factor to refer to A1, B1 and C1 in the other sheet
    Last edited by OldManExcellor; 01-29-2016 at 05:41 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Make part of address indirect and keep rest of address relative?

    Hi,

    Presumably you are wanting to reference another workbook, otherwise there's be no need to specify the file name

    This will work if the other file is open in memory
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    where FileName & SheetName are two range names that refer to cells that contain the actual file name.

    Unfortunately this will not work when the other workbook is closed since Indirect won;t work with closed workbooks. A work around would be to have a macro that automatically opened the other workbook when this workbook is opened, and closes the other workbook when you close this one.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. what is difference between absolute address and relative address?
    By what is difference between absolute addr in forum Excel General
    Replies: 1
    Last Post: 07-22-2006, 03:25 AM
  2. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Mike Barlow in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2005, 11:05 PM

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