Intersection of rows in excel through vba or direct kind help and duplicate permuted rows from csv

vs140580

New Member
Joined
Dec 11, 2015
Messages
10
I have a csv with n columns in it and it has say 500k rows. Now kind help with a way in excel for possible ways to pick n+1 rows such that intersection between any two rows is exactly one record in the entire row and all elements in n+1 rows together have each record in the row exactly only twice. Also problem to open such huge csv file. Can I remove duplicate rows of type if row has a b c d e respective 5 column and another b c a e d say a permuted of the first all fields strings how to identify delete such duplicate rows keepin only one.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I'm not sure what you mean by "intersection between two rows". Rows are parallel, they do not intersect.
 
Upvote 0
(0,1), (0,2), (0,3), (3,4)
(0,1), (1,3), (1,2), (2,4)
(0,2), (2,3), (1,2), (1,4)
(1,4), (2,4), (0,4),(0,3)

Each row contains each line of above and each column contains (0,1) next (0,2) etc so there are 4 columns and we have to choose 5 rows with five columns like this u can see the intersection there I feel
 
Upvote 0
So, by intersection, you mean elements in common.

A row of cells containing a,b,c,d,e intersects with a row of cells b,x,a,y,z twice, on the elements a,b.

Is that your meaning?

And you want N+1 rows of N elements, such than there are N*(N+1) / 2 total elements, each duplicated twice.
Further more, the intersection of any two rows is at most 1 element.

Is that your requirement?
 
Upvote 0
If there are 5 lac rows and I have to split it into sheets two or more if possible how can do it with handling multiple sheets of data
 
Upvote 0

Forum statistics

Threads
1,216,076
Messages
6,128,669
Members
449,463
Latest member
Jojomen56

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