Update a table with new data from another table

frederikz

New Member
Joined
Sep 30, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have 2 tables. Table 1 is my primary data and table 2 is the updated data.

I have a table1 that I want to update with the new value of table2 located on another sheet.

To update each row of table1, I first need to check if the ID numbers (column A of both tables) of table1 is present in table 2:

-CASE1: If it is then I update the value of the (column M of both tables) of this row in table1

-CASE2: If it is not present then I create a new row in table1 and then copy paste all the new values from table 2

I manage to do it manually but the problem here is that the table are getting bigger and bigger. I know that I need to use vlookup function but I don't know how to make the disctinction between the two cases and make it update automatically as I get a new Table2 every month.

I marked the column that needs to be updated every time I update table2 in the pictures.

Thanks in advance
 

Attachments

  • table 1.PNG
    table 1.PNG
    62 KB · Views: 99
  • table 2.PNG
    table 2.PNG
    47.7 KB · Views: 98

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top