Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
882
Hi all, i would like to write a vba so that to delete the second duplicate entire rows as my below extracts. In sch. 2. are the original data and on sch. 2. is the expected result.

Thanking you in advance





Sch.1.
ACD
131-12-17
JanuaryFebruary
27800005 ΙNDIVIDUALS7,8006,500
37800022-BUISINESS
47800022-BUISINESS
57800027-TOUR OPERATORS
3,2822,155
67800027-TOUR OPERATORS
77800035-CONFERENCES5,4784,578
87800035-CONFERENCES
97800068-FUNCTIONS 1,258
107800068-FUNCTIONS

<colgroup><col style="mso-width-source:userset;mso-width-alt:804;width:17pt" width="22"> <col style="mso-width-source:userset;mso-width-alt:5778;width:119pt" width="158"> <col style="mso-width-source:userset;mso-width-alt:2084; width:43pt" width="57" span="2"> </colgroup><tbody>
</tbody>


Sch.2.
ACD
131-12-17
JanuaryFebruary
27800005 ΙNDIVIDUALS
7,8006,500
37800022-BUISINESS
47800027-TOUR OPERATORS
3,2822,155
57800035-CONFERENCES5,4784,578
67800068-FUNCTIONS
1,258

<colgroup><col style="mso-width-source:userset;mso-width-alt:804;width:17pt" width="22"> <col style="mso-width-source:userset;mso-width-alt:5778;width:119pt" width="158"> <col style="mso-width-source:userset;mso-width-alt:2084; width:43pt" width="57" span="2"> </colgroup><tbody>
</tbody>
 
Considering the example converting the range into a table, it is Excel that does this automatically - it's a built-in feature.
Someone at Microsoft created the code that keeps only the first instance up.
We, users, do not have to do anything, just follow the steps. :)

M.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Thanks for inform me this trick Marcelo! It was an important for me and that why i was asking!
 
Upvote 0
Well done oldb!! 72 years and you improve your knowledge!! well done once again and all the best to you!!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,937
Members
449,480
Latest member
yesitisasport

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