Import From Excel: Compare and Delete

Samnuni

Board Regular
Joined
Sep 27, 2005
Messages
206
Hi all, I have set up my database where information will be imported monthly and a report is generated. Each monthly reports might contain information from the previous months and I would like to have those duplicate entries deleted.

I am thinking of having a master table and a temp table where the import information would go and then have a check put into place to sort those entries out. However, I am not sure how to proceed with this implementation. Please help, thanks in advance.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi

If you set up the key(s) in the table such that duplicate entries cannot be entered then you won't need to worry about deleting duplicate entries. When you copy/append the data from the temporary table to the main table, entries where there would be a duplicate key (which can be more than one field) will not be copied across.

Andrew
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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