+ Reply to Thread
Results 1 to 4 of 4

Update a Row in Excel with Data From Another Workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    01-06-2021
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    2

    Update a Row in Excel with Data From Another Workbook

    Hi there,

    I am pretty new to Excel and very new to the Excel Forum. I have been doing some research to try to solve my current issue and based on that I think this is the right place for this question. Please let me know if I need to move it.

    Here is my issue. I am working with data sets from my LMS system to do some data analysis. The way the LMS creates these data sets, there is a full data set created every week, and then differential data sets created every day to capture the differences between the full data sets. The data sets are CSV files that I then save as Excel Workbook files.

    So I have two Excel workbooks. One is the full data set, and one is the differential. What I want to do is use the differential workbook to update the full workbook. So for example: in the full data set workbook, there is a specific course that does NOT have data in the Recycle Date column, because at the time the full data set was created, the course had not been recycled. The data from the differential workbook has the same course but it DOES have a data in the Recycle Date field, because the course has now been recycled. I would want to update the row in the full data set workbook so that it matches the row in the differential data set workbook.

    Is this something I would use VBA or a Macro to achieve? And if so, can you get me pointed in the right direction in terms of what I need to do?

    I hope this made sense. Please let me know if you need any other information.

    Thanks!

    -Roslyn

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Update a Row in Excel with Data From Another Workbook

    Is there a reason the data set have to be in two separate workbooks?

    If you put the two data sets in the same workbook on two different sheets, you could use a VLOOKUP formula to lookup the recycle dates.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-06-2021
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Update a Row in Excel with Data From Another Workbook

    That's a good point. I was thinking about the fact that they would each download as a separate workbook, but there's no reason I couldn't take the data from the differential workbook and put it as a sheet in the full workbook. That makes sense.

    Follow up question: If the differential sheet also contains a new row that does not exist in the full worksheet (let's say a brand new course was created between the creation of the full data set and the differential data set), would a macro/VBA then be necessary to update the full workbook with that new row? I guess the long story short is, I'm looking for a way to use the differential sheet to update the full sheet so that the full sheet updates any existing values to match the differential sheet, and also adds any new values from the differential sheet that didn't exist before.

    My goal here is to create an automatically updating Excel spreadsheet (the full worksheet) so that I can link that spreadsheet to an Access database, so that the database updates as well.

    I am also brand new to databases, so if this is not the best way to go about the task, I would love any advice you might have.

    Thank you!!

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Update a Row in Excel with Data From Another Workbook

    I'm not an Access Database guy, but I think there is a way to import records from a CSV file to update existing records or add new records. I couldn't tell you how to go about it though. You may want to post a thread on a database forum.

+ 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. Copy and update the data in excel sheet to another workbook
    By Hussain Anees in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2019, 06:19 AM
  2. [SOLVED] VBA code to update query from a password protected excel workbook and then close workbook
    By MrChipper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2017, 07:41 AM
  3. Replies: 12
    Last Post: 06-06-2016, 11:57 AM
  4. Linking and Update automatically data from workbook to another workbook
    By MzExec2U in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2014, 01:09 PM
  5. Replies: 2
    Last Post: 07-10-2012, 02:10 AM
  6. Update second workbook data once another Workbook is Updated
    By Brandy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-10-2008, 10:48 AM
  7. [SOLVED] how can update the data in an excel workbook without opening it
    By dk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-14-2006, 09:35 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