Need formula for justifying (matching) two columns in Numbers spreadsheet
Imagine a "master" column with the following data:
one
two
three
four
five
Now imagine a second column that includes this data:
five
three
[empty cell]
one
I'd like to find a way to align the two columns so that all values that occur in both columns will appear side by side. So, for example, if "three" in the master column is on row 16, then three in the second column will be moved to row 16 as well.
If there's a value in the second column that isn't matched in the master column, then that value won't be deleted; it will simply be moved to the bottom of the column, or whatever.
Can anyone tell me formula I can use to do this? Thanks.
MacBook Pro 13", macOS 10.12