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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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