remove shuffled duplicates

vs140580

New Member
Joined
Dec 11, 2015
Messages
10
Suppose a1,b1,c1,d1,e1 are elements of a row and a1,c1,e1,d1,b1 is some permutation of the elements of that row how to retain only one row among all such permutations in several rows and delete remaining I dont know VBA prograoming kind help.
 
If the permutations arise from SQL joins then avoid them by changing the original query (if you can). Otherwise maybe a UNION query or reverse pivot table followed by an ORDER BY(sort) that you can re-pivot.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
THe question now is if they are spread across workbooks due to large data files
How difficult would it be to consolidate them into one with perhaps a reference number for each line?
My interpretation of the OPs remark was that the data is spread across multiple files because it will not fit in one - that is >1,048,576 rows &/or greater than Excel's column limit.

If the data files are very big it would also mean that a sorting formula solution would probably grind the sheet to a halt. :eek:
 
Upvote 0
My interpretation of the OPs remark was that the data is spread across multiple files because it will not fit in one - that is >1,048,576 rows &/or greater than Excel's column limit.

If the data files are very big it would also mean that a sorting formula solution would probably grind the sheet to a halt. :eek:

Yes, I've seen how slow even simple formulas can be on a million rows with just several columns. Like you say, it's now either the scripting dictionary or SQL/BI
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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