Cutting or moving multiple non adjacent rows to the bottom of a data set using vba

Yashkar

New Member
Joined
Jan 4, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good day,

I am carrying out an analysis of data submitted. the nature of the analysis is to seek variances in the data. one of the variances is multiple submissions on the same data.

what I am aiming to do, is to cut all the first occurring duplicates to the bottom of the data.
I have already included a formula to mark the duplicates that need to be moved in a separate column( If(a2=a1,"Duplicate","")

so a VBA script to cut rows based on value of a row will work as well.

This would have normally been easy enough to filter and cut, but excel will not allow me to cut multiple rows that are not next to each other.

Please help
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Perhaps convert your formula column to value then sort by that column to put "duplicates" at the bottom.
Then cut>paste the duplicates.

Alternatively, filter column A for unique items then cut>paste visible cells.

You posted that you want "to cut all the first occurring duplicates".
Your formula does not do this - it identifies duplicates except the first ones.
 
Upvote 0
Thanks Footoo, doing this once off is easy enough for me.

However this needs to be repeated over and over again on different sheets, hence me wanting to use a macro for it
 
Upvote 0
You should be able t get the code from the macro recorder.
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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