Finding and Deleting Duplicates and Entire Rows

jamesdean1379

Board Regular
Joined
Jun 11, 2014
Messages
55
Okay, I am working on putting together a workbook I can use to track data progression. Every day I will be pasting data from one report into this workbook that I am working on. I am looking for a couple of things.

1st is finding duplicates between two worksheets and deleting entire row on one worksheet if no duplicates are found
Looking for a macro that will find duplicates between Column G on worksheet Inventory and Column F on worksheet Data. If column G(worksheet Inventory) does not contain any duplicates from Column F(worksheet Data) then delete entire row on worksheet Inventory.

2nd is searching for duplicates on 1 worksheet and checking cell in column for value and deleting entire row if value in column is blank
So this one will search for duplicates in column G and then check the corresponding cell in column K for values. If duplicate is found and one of the duplicates has a blank for the corresponding cell in column K then delete the entire row for that one.

Example below, so in this case the bottom row would need to be deleted. Rows for the workbook go up to 5,000

GHIJK
IDOrder #Order DateCustomerComment
CDA852A803/02/22CUSTOMERASHIPPING 03/17/22
CDA852A803/02/22CUSTOMERA
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I think you're looking at this the wrong way.


The aim should be to stop people entering duplicate IDs. Always a bad practice to try and retrospectively fix something.

You don't need VBA to achieve this as it can be done using validate functionality.

Check out the following link:

Excel formula: Data validation unique values only
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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