VBA Compare and 'UPSERT' (with audit) multiple columns on two worksheets

hemant4music

New Member
Joined
Mar 29, 2018
Messages
1
Hi all,

My first query here. I am from a development background and lack the VBA know how to get this work done. Any help is much appreciated.

I have 2 spreadsheets, with around 2000 rows of data with 55 columns.

I need to match data between the two sheets based on 10 columns given to me by the business.

Any rows NOT matching on the above 10 columns need to be inserted in the 2nd spreadsheet. I can then sort them and set them to be in the right location within the spreadsheet.

It would be a 5-10 minutes job to do this in SQL with two tables/data-sets. However, I can't get around how best to approach this to make sure

- Any new records that are marked by the above 10 column's comparison, get inserted into the 2nd sheet
- Information in any columns other than the above 10, also gets updated in the 2nd sheet with data from the 1st sheet
- An audit of everytime records are inserted/updated in the 2nd sheet.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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