+ Reply to Thread
Results 1 to 6 of 6

Inserting a variable over a formula

  1. #1
    Registered User
    Join Date
    06-01-2010
    Location
    panama
    MS-Off Ver
    Excel 2007
    Posts
    6

    Inserting a variable over a formula

    http://img199.imageshack.us/img199/7299/imagemlek.jpg

    Hi guys!

    Looking the picture may help out what i want to do, is quite simple i have that "=[HHH2222.xlsx]Sheet1!$C$4" , and i want to make the part with the file name "HHH2222" came from a cell like "A4", so that i can change A4 and everything else may change along.

    Thanks!
    Last edited by NBVC; 06-01-2010 at 04:12 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Inserting a variable over a formula

    To do that you need to download and install and Addin from here: Morefunc.xll

    and use formula:

    =INDIRECT.EXT("'["&A4&".xlsx]Sheet1'!$C$4")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-01-2010
    Location
    panama
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Inserting a variable over a formula

    I will try that, thank you very much!
    Last edited by shg; 06-01-2010 at 01:11 PM. Reason: deleted spurious quote

  4. #4
    Registered User
    Join Date
    06-01-2010
    Location
    panama
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Inserting a variable over a formula

    Quote Originally Posted by NBVC View Post
    To do that you need to download and install and Addin from here: Morefunc.xll

    and use formula:

    =INDIRECT.EXT("'["&A4&".xlsx]Sheet1'!$C$4")
    It worked but just if my sheet is open, i need it to refresh the value without the sheet being open because i need to be able to see the values without having to open all the sheets that i use.



    Please further answer me, thanks!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Inserting a variable over a formula

    You will need to include the full path...

    e.g..


    =INDIRECT.EXT("'C:\Mydocs\ExcelDocs\["&A4&".xlsx]Sheet1'!$C$4")

  6. #6
    Registered User
    Join Date
    06-01-2010
    Location
    panama
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Inserting a variable over a formula

    Quote Originally Posted by NBVC View Post
    You will need to include the full path...

    e.g..


    =INDIRECT.EXT("'C:\Mydocs\ExcelDocs\["&A4&".xlsx]Sheet1'!$C$4")
    Thank you man! saved my life, literally, haha, in debt. bruno.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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