Google Sheets: Reverse data which contains duplicates
I have data as such:
| Person | Color 1 | Color 2 | Color 3 |
|---|---|---|---|
| Bob | Red | Blue | |
| Jack | Red | Orange | |
| Amy | Green | Yellow | Blue |
Is there a formula which can produce something like the following:
| Color | Person 1 | Person 2 |
|---|---|---|
| Red | Bob | Jack |
| Blue | Bob | Amy |
| Green | Amy | |
| Yellow | Amy | |
| Orange | Jack |
which has each unique colour in a single column, and all the names that are associated with them in additional columns?