+ Reply to Thread
Results 1 to 5 of 5

Help with adapting formula destination to other cell

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    5

    Help with adapting formula destination to other cell

    Hello.

    Im trying to adapt a formula destination to cell.

    I have a formula on cell B2 that is directed do other excel file, It appears like [1.xlsx] 1 being the name of the other file.

    What I am trying to is make something like:

    cell A2 = 1
    and ["A2".xlsx]

    so whenever I change the A2 cell, the destination also changes.

    Thank you in advance.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with adapting formula destination to other cell

    =INDIRECT("["& A2&".xlsx]"
    However, Indirect will only work if the other file is open.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-09-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with adapting formula destination to other cell

    Thank you very much for quick reply and help.
    That work just fine.

    But, Is it possible to make it work even if the file is closed?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with adapting formula destination to other cell

    Google "Morefunc.xll" add in which has a function INDIRECT.EXT which works with closed workbooks.

  5. #5
    Registered User
    Join Date
    01-09-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Help with adapting formula destination to other cell

    Thank you.
    I will look into that.

+ 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. Adapting an IF formula..
    By Guygettinby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2011, 04:13 PM
  2. Adapting a Formula to fit new parameters
    By grey9192 in forum Excel General
    Replies: 2
    Last Post: 08-18-2010, 09:46 AM
  3. Including destination cell value in a formula
    By Alko_Holik in forum Excel General
    Replies: 5
    Last Post: 03-28-2009, 07:40 PM
  4. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 PM
  5. [SOLVED] Adapting an array formula
    By sixwest in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2006, 03:40 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