+ Reply to Thread
Results 1 to 8 of 8

Please check my formula for external cell reference

  1. #1
    Registered User
    Join Date
    07-30-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    20

    Please check my formula for external cell reference

    Hi everyone,

    Sorry to ask for help on my first post, hopefully I can get my skills up and start spreading some love around.

    Just wanted to check how I could modify the following formula to include a cell reference containing the current date which would thereby allow the formula to find the current dates workbook. Hope that makes sense, I will try to elaborate more below...

    This is the formula:
    ='Z:\Admin\Afternoon Reports\July\260713\[tradefiledata260713.xlsx]Iress Trades - All'!$A5

    The red text is where I want to put a cell reference (I1) in, for example...

    ='Z:\Admin\Afternoon Reports\July\I1\[tradefiledataI1.xlsx]Iress Trades - All'!$A5

    Would anyone be able to point me in the right direction? I have already created the cell in the spreadsheet that contains the date in the correct format.

    Thank you in advance for any help!

    Justin

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Please check my formula for external cell reference

    Hi,

    Assuming the cell in which your desired variable lies is A1:

    =INDIRECT("'Z:\Admin\Afternoon Reports\July\"&$A$1&"\[tradefiledata"&$A$1&".xlsx]Iress Trades - All'!$A5")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Please check my formula for external cell reference

    Indirect won't work on a closed workbook.

    You'll need the Morefunc Addin which has it's own indirect function that does work on closed books.

  4. #4
    Registered User
    Join Date
    07-30-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Please check my formula for external cell reference

    Thank you XOR LX & Jonmo1 for your timely help, it is very much appreciated!

    Would you be able to explain why Indirect will not work on a closed work book? I'm just finding it hard to wrap my head around as the formula works without the INDIRECT function as long as I do not have a cell reference in the file name...

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Please check my formula for external cell reference

    Quote Originally Posted by Mr ZN View Post
    Would you be able to explain why Indirect will not work on a closed work book?
    Sorry, I don't know "Why" it doesn't work on closed workbooks.
    I just know it's a given limation of the Indirect Function.

  6. #6
    Registered User
    Join Date
    07-30-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Please check my formula for external cell reference

    Quote Originally Posted by XOR LX View Post
    Hi,

    Assuming the cell in which your desired variable lies is A1:

    =INDIRECT("'Z:\Admin\Afternoon Reports\July\"&$A$1&"\[tradefiledata"&$A$1&".xlsx]Iress Trades - All'!$A5")

    Regards
    Hi XOR LX,

    Nearly there. This morning I got the addin set up and it is working a treat.

    I have one problem though, whenever I drag the formula the cell references remain the same, e.g.

    When i drag =INDIRECT("'Z:\Admin\Afternoon Reports\July\"&$A$1&"\[tradefiledata"&$A$1&".xlsx]Iress Trades - All'!A5")

    The A5 remains the same irrespective of whether I drag it vertically or horizontally.

    I have gathered that I will need to insert cell references within the formula to make this happen but cannot seem to get the right combo.

    Would you happen to know the structure of the formula I will need to use, i.e. Where the cell reference goes and how to format it?

    EDIT: Would you use an array formula for this?

    Thanks so much for your help.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Please check my formula for external cell reference

    Hi,

    Try:

    =INDIRECT("'Z:\Admin\Afternoon Reports\July\"&$A$1&"\[tradefiledata"&$A$1&".xlsx]Iress Trades - All'!"&CELL("address",A5))

    Regards

  8. #8
    Registered User
    Join Date
    07-30-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Please check my formula for external cell reference

    Thanks for getting back to me.

    Would it be possible to enter this formula as an array? something like:

    {=INDIRECT("'Z:\Admin\Afternoon Reports\July\"&$A$1&"\[tradefiledata"&$A$1&".xlsx]Iress Trades - All'!"&CELL("address",A5:G300))}

    Just wanna try pulling all the data at the same time. Currently it is calculating the cells one by one and it take aaaaaages.

    Thx for your help again!

+ 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. check formula integrity: replace dynamic cell reference with fixed value?
    By orchidee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2013, 06:18 PM
  2. [SOLVED] external link reference formula inside formula user input
    By jscc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2012, 04:29 PM
  3. Formula within an external reference?
    By shawar in forum Excel General
    Replies: 2
    Last Post: 02-29-2012, 08:30 PM
  4. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  5. Replies: 2
    Last Post: 05-01-2009, 07:06 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