
In my data there are 3 columns.
Where I want to show unique route only.
Data
| Location-1 | Location-2 | Distance |
|---|---|---|
| AAA | BBB | 10 |
| BBB | CCC | 20 |
| CCC | DDD | 30 |
| BBB | AAA | 10 |
| DDD | CCC | 30 |
Target is.
| Location-1 | Location-2 | Distance |
|---|---|---|
| AAA | BBB | 10 |
| BBB | CCC | 20 |
| CCC | DDD | 30 |
Thank you!
I want to show unique values only.
Note: I am using Excel-2013


Try something along the lines using the following formula:
• Formula used in cell E2
Test Case One:
Test Case Two:
Since OP has updated that their version of
Excel is 2013, therefore here is a solution, which works fromExcel 2010+onwards.• Formula used in cell E3
Notes: One needs to hit CTRL+SHIFT+ENTER while exiting the edit mode for the approach which supports
Excel 2010onwards as well as needs to fill down & fill right accordingly, also ensure to change the cell references and ranges as per your suit.