+ Reply to Thread
Results 1 to 29 of 29

How to link separate Excel files to auto-populate cells

Hybrid View

  1. #1
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,549

    Re: How to link separate Excel files to auto-populate cells

    This should work (it did work in my testing):

    Open the Master file
    Open the csv file
    Copy this formula to cell H2.

    Formula: copy to clipboard
    =LET(Mdata,     TRIM('C:\Test\[Example_Mastersheet.xlsx]Sheet1'!$A$1:$D$95),
    MA,INDEX(Mdata,SEQUENCE(ROWS(Mdata)),1), MB,INDEX(Mdata,SEQUENCE(ROWS(Mdata)),2),
    COut,IF(F2<>"",FILTER(Mdata,MA=TRIM(F2),""),IF(G2<>"",FILTER(Mdata,MB=TRIM(G2),""),"")),IFERROR(INDEX(COut,,{3,4}),""))

    Adjust the file location, file name, sheet name and range in the first line of the formula.

    Copy the formula in H2 down to the bottom of the csv file.

    Save and close the csv file.
    Last edited by TMS; 06-22-2024 at 11:43 AM. Reason: Correct error in formula
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Auto link from excel to folder's files
    By sherif114 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-06-2020, 09:46 AM
  2. Replies: 3
    Last Post: 06-25-2020, 10:43 PM
  3. [SOLVED] How to link two sheets in two separate Excel files
    By BNCOXUK in forum Excel General
    Replies: 3
    Last Post: 11-30-2012, 09:17 AM
  4. Auto populate data from multiple cells on separate worksheet
    By Talance in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2011, 07:19 PM
  5. [SOLVED] Link and auto-populate cells in workbooks
    By Larry in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 06-22-2006, 11:00 AM
  6. [SOLVED] How can I create a link between cells in two separate Excel sheet
    By Dawnmarie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2006, 01:40 PM
  7. [SOLVED] How do I link separate Excel files to one spreadsheet?
    By eklushin in forum Excel General
    Replies: 0
    Last Post: 01-06-2006, 04:40 PM

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