+ Reply to Thread
Results 1 to 4 of 4

Adding data to a table filled with data from a different Excel file

  1. #1
    Registered User
    Join Date
    11-25-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    2

    Adding data to a table filled with data from a different Excel file

    Hi all,

    To keep track of my work for several projects, I made an Excel sheet. I fill the sheet with data by a query from a different Excel file (which is managed by someone else) and the data is capured in a Table. I then apply some filters to sort out the projects I need.

    I added additional columns to the same Table in which I write my remarks on the status of a project. This works fine as long as in the source file new projects are added to the bottom of the table. However, when new projects are inserted somewhere in the table of the source file, my remarks get tagged to a different project as it does not seem to have a connection with the same project number.

    Each project has a unique number which is in column A. Is there a way I can couple my remarks to the project numbers so that they keep connected after refreshing the data?

    I hope my problem is clear and thanks for your help!
    Last edited by 2meter; 11-25-2021 at 05:49 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Adding data to a table filled with data from a different Excel file

    Hi and welcome to the forum.

    One way would be to take a temporary copy of your Project number and Comments column, or even the whole table on a separate sheet BEFORE you invoke a Data query update.

    Then after the update use an Xlookup to refresh your comments column from the temporary copy, the delete the temporary data.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-25-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    2

    Re: Adding data to a table filled with data from a different Excel file

    Hi Richard,

    Thanks for your reply and warm welcome

    Your solution looks interesting but manually copy-pasting the table every time I need to update the table (sometimes multiple times a day) is a bit laborious. I do like the Xlookup part though. So what I did was to make a new table containing my comments and use Xlookup to populate the table with information like client, project description and employee who worked on the project. The table Xlookup is referring to is automatically filled with a query.

    Not to miss new projects, I added an additional column to the table that is filled with the query in which a COUNTIFS is uesd to check if each entry is already in my comments table. Finally, I made a small table below my comments table that uses the FILTER function with multiple arguments to give a list with the projects that are missing in my comments table. Although I could not find a way to automatically add new projects to my comments table, this will work just fine.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Adding data to a table filled with data from a different Excel file

    Glad you came to a solution. Incidentally I wasn't suggesting that you do all the copy and pasting to a temporary table manually. A simple macro would do that.

+ 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. Adding data to an excel file using a form
    By mtwa1990 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2019, 03:09 PM
  2. Adding subtotals to table filled from UserForm
    By Luis Miguel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2015, 07:25 PM
  3. [SOLVED] Excel form writing filled data to another Excel file or sheet
    By G.Bregvadze in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-08-2014, 03:34 AM
  4. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 AM
  5. Adding Data to a word table using Excel VBA
    By gskMike in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2008, 08:39 AM
  6. Loading data into Excel file from Data table.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-11-2006, 07:20 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