I am trying to extract unique data from a table which at first I tried to do using a pivot table, but it needs some further processing or a different technique.
Below is a simplified example to explain what I am trying to do.
I have a set of data with headers 'From' and 'To'.
The first row shows that A goes to 1, then half way down the table this data is reversed, so 1 goes to A etc
I am trying to extract the unique data from this table, because the second half of the table is duplicated, its just the "From" and "To" that is in vice versa
i.e. "From" A "To" 1 is the same as "From 1 "To" A
The result I am looking for would give this...
i.e. it would recognise that "A to 1" is the same as "1 to A" and only give one of those results (either "A to 1" or "1 to A")
The data will actually have multiple From's and To's as shown below but they are always the same.
In the example below there are multiple "C to 3" (and vice versa "3 to C") as well as multiple "E to 5" (and vice versa "5 to E")
However, the result must still give this...
I tried a pivot table which correctly deals with the multiple From's and To's, but it also shows all the duplicate vice versa's
i.e. "1 to A" as well as "A to 1" - these are the same just in the reverse order. I want it to only show one of these (it does not matter which)
Can a pivot table be used to do this ?
Or is there an existing function ?
Or some other technique ?
Below is a simplified example to explain what I am trying to do.
I have a set of data with headers 'From' and 'To'.
The first row shows that A goes to 1, then half way down the table this data is reversed, so 1 goes to A etc
I am trying to extract the unique data from this table, because the second half of the table is duplicated, its just the "From" and "To" that is in vice versa
i.e. "From" A "To" 1 is the same as "From 1 "To" A
The result I am looking for would give this...
i.e. it would recognise that "A to 1" is the same as "1 to A" and only give one of those results (either "A to 1" or "1 to A")
The data will actually have multiple From's and To's as shown below but they are always the same.
In the example below there are multiple "C to 3" (and vice versa "3 to C") as well as multiple "E to 5" (and vice versa "5 to E")
However, the result must still give this...
I tried a pivot table which correctly deals with the multiple From's and To's, but it also shows all the duplicate vice versa's
i.e. "1 to A" as well as "A to 1" - these are the same just in the reverse order. I want it to only show one of these (it does not matter which)
Can a pivot table be used to do this ?
Or is there an existing function ?
Or some other technique ?