VBA Looping Data n' Deleting Duplicates

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
1,113
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have three separate data tables, where I'd like to loop values for specific row values for columns G & I and delete its duplicate.

Where;

Data 1: is between Rows (2-172)

Data 2: is between Rows (173-273)

Data 3: is between Rows (274-573)


Here;

Data 1 - This is the 2nd place where the loop goes and takes the values for Columns G & I.

Data 2 - This is the Last Place where the loop goes and takes the values for Columns G & I.

Data 3 - This is the First Place where the loop begins and takes the values for Columns G & I.



Example:


So if all three duplicates are present;

Data 1:
Column C
D
E
F
G
H
I
XY 155
WWW
XY
155
1659
WWW
259

<tbody>
</tbody>


Data 2:
Column C
D
E
F
G
H
I
XY 155
WWW
XY
155
1459
WWW
559

<tbody>
</tbody>

Data 3:
Column C
D
E
F
G
H
I
XY 155
WWW
XY
155
1759
WWW
359

<tbody>
</tbody>


Where after deleting a duplicate it takes the values of Data 2 producing;

Column C
D
E
F
G
H
I
XY 155
WWW
XY
155
1459
WWW
559

<tbody>
</tbody>


Let me know what you can come up with.

Thank you,
Pinaceous
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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