+ Reply to Thread
Results 1 to 4 of 4

Extract file name & path from hyperlink

  1. #1
    Registered User
    Join Date
    11-08-2005
    Posts
    9

    Extract file name & path from hyperlink

    Hi there,

    Attached three "Slave" xls files and one "Master" xls file.

    All slave files contains data at specific locations.

    Column E of the master contains hyperlink to some slave files.

    Column F of the master contains a formula to get the maximum value of column C of the slave file linked to in the same row at column E.
    The formula is :
    =MAX('C:\[Slave1.xls]Sheet1'!$C$3:$C$33000)

    Column H of the master contains a formula to calculate the quotient of two cells the slave file linked to in the same row at column E.
    The formula is : ='C:\Slave1.xls'!rngTeller/'C:\Slave1.xls'!rngNoemer


    So far so good
    But when I change any hyperlink in column E I want the data in column F and H to change according the data in the new slave file.

    In other words : How to change the red parts automatically in the above formulas according to the new hyperlink.

    Thanks a lot...
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can use the Indirect() function for this... but, unfortunately, it only works if your slave files are open...

    Fortunately, there is a free addin that you can install that improves this function so that it can work with closed workbooks. The addin is called Morefunc.dll and can be gotten here: http://xcell05.free.fr/english/

    After you've downloaded the adding..

    try:
    Please Login or Register  to view this content.
    copied down.

    Please Login or Register  to view this content.
    Note: If you will work with open workbooks, then take out the .ext from the Indirect functions....no need to install the addin.
    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
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    The attached master.zip contains a macro which inserts formula in col F & H based on filename of the hyperlink in col E. It starts from row 4 (col E)
    Ravi
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-08-2005
    Posts
    9
    Hi,

    Many thanks to both of you, both ways are ok
    I go for the macro solution

    Regards

+ 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