Hello!
I'm trying to group unique pairs from col A and col B.
For example, I have this dataset:
| Col A | Col B |
| Apple | Red |
| Red | Apple |
| Banana | Yellow |
| Green | Banana |
| Green | Yellow |
| Lemon | Pink |
| Pink | Lemon |
What I want to do is to group the unique pairs (in the sample table above, Red Apple = Apple Red. The order does not matter.) My desired output is like this:
| Col A | Col B | Group |
| Apple | Red | 1 |
| Red | Apple | 1 |
| Banana | Yellow | 2 |
| Green | Banana | 2 |
| Green | Yellow | 2 |
| Lemon | Pink | 3 |
| Pink | Lemon | 3 |
I've tried concatenating Cols A and B to form pairs, but I feel a bit lost and can't seem to find a way to group them.