+ Reply to Thread
Results 1 to 6 of 6

Link to a cell in another excel file

  1. #1
    Registered User
    Join Date
    11-25-2024
    Location
    Netherlands
    MS-Off Ver
    365 (16.91) MAC
    Posts
    3

    Link to a cell in another excel file

    I have a complex problem which me co-workers a I cannot figure out.
    We have many excel files from machines with lots of information about a machine and measurement data. That data is always stored in the same location (cell).
    Then there is another large excel file which shows the name of the machine and measurement data.
    I have used <shift><F3> to link the information in the large file to the smaller machine files. This works but is lots of work and it seems that I can automate this.
    <shift><f3> generates a link like this: /General/NEN Keuringen/Apparatuur/[WTB-003.xlsx]Blad1'!$E$33
    What I need to do is change the file in between the [. ] . I have created two cells in the large file: one WTB-00* or whatever the small file is named. And another which generates the actual filename: WTB-003.xlsx. But I cannot figure out how to get it in the [ ] .
    When using a cell location (like A6), it links to a file called A6. I have also tried using "INDIRECT" function, but clearly I just don't know enough about excel to get this working.
    I realy hope someone can help (and understands what I wrote), because this can save me a lot of work :-)
    Attached Images Attached Images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Link to a cell in another excel file

    INDIRECT would solve this problem, but INDIRECT will return a #REF! if the external file is closed. It sounds like you have a lot of files and will not have them open.

    The only other ways I know do this require VBA. My suggestion would be to use VBA to write the formulas. But the screenshot does not give enough information to actually write the code. Can you attach a sample file, and explain what you need in each column where you need the external reference?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-25-2024
    Location
    Netherlands
    MS-Off Ver
    365 (16.91) MAC
    Posts
    3

    Re: Link to a cell in another excel file

    ...........
    Last edited by Noob1976; 12-02-2024 at 04:18 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Link to a cell in another excel file

    Why are you using 16.384 columns?

    I can write code that will generate the references for you but I can't figure out which columns you need. You have references in
    Datum controle Weerstand beschermingsleiding Isolatieweerstand Vervangende lekstroom Verschilstroom
    and I can write code based on those, but there are other columns too.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,023

    Re: Link to a cell in another excel file

    Here is a version of your file that will add formulas automatically every time you add a new ID nummer. It will only add formulas, in columns C, E, F, G, H because those are the only ones in your sample that have formulas.

    It also has an Initialize macro that will fill in all the formulas the first time.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-25-2024
    Location
    Netherlands
    MS-Off Ver
    365 (16.91) MAC
    Posts
    3

    Re: Link to a cell in another excel file

    Wow , that is amazing, could not have done this myself! Thanks a lot

+ 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. Replies: 5
    Last Post: 08-27-2013, 03:15 PM
  2. Replies: 0
    Last Post: 08-23-2013, 07:57 AM
  3. Macro: Search for a file name in a specified folder and link to excel cell
    By jr13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-08-2013, 03:57 PM
  4. Embed a cell value within a link to an Excel file
    By staffordalex in forum Excel General
    Replies: 11
    Last Post: 10-27-2008, 12:47 PM
  5. Replies: 1
    Last Post: 07-14-2007, 07:25 AM
  6. How can I link external excel file cell formats?
    By Peter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-27-2006, 12:25 PM
  7. [SOLVED] How can I link a pdf file (address) to an Excel cell
    By Wil in forum Excel General
    Replies: 1
    Last Post: 04-28-2006, 05:45 AM
  8. Replies: 2
    Last Post: 09-18-2005, 11:05 AM

Tags for this Thread

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