Removing Duplicates Rows - Based off of 2 column values

KB13

New Member
Joined
Apr 24, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

Hoping someone can help.

I have a large spreadsheet with a lot of data.

I have used concatenate to identify which rows are duplicates.
I am looking for a script that will go down column BE checking for duplicates, once a duplicate is found column H needs to be checked and the lowest value row deleted.

So BE11 & BE12 have a duplicate value, H11 value is 169014 & H12 value is 169017. So row 11 would need to be deleted.

Work sheet is called ‘This Month’ if that also helps for the code.

Hope this makes sense, please let me know if any questions. Appreciate anyone’s time to help on this.

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hello & Welcome to Board!

Try this:
1. Select your table with headres (be sure to include columns H and BE).
2. Ctrl-Shift-L (to toggle Autofilter).
3. Press small filter icon in the column H header, choose Sort Descending.
4. On the Data tab press Remove Duplicates, In the Remove Duplicates window press Unselect All button and then check one column BE only.
5. Press OK.

An important disadvantage of this method: if the value in column H matches, e.g. H11 = H12, row 11 will still be deleted.

Hope this helps your case.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,713
Messages
6,174,039
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