I am looking for a method of "merging"/matching up various unique IDs into one table. I frequently have data that look like this:
Col1 Col2 Col3
n01 n02 n24
n02 n03 n20
n03 n05 n15
n04 n01 n05
n05 n20 n03
n06 n09 n10
n07 n14 n02
n08 n15 n07
n09 n10
n10 n08
n11 n11
n12 n16
n13 n07
n14 n23
n15 n24
My data sometimes but do not always have all of one column in the next column (column 3 has less data in it than column 1 or 2).
I want to be able to put them all together into one table where the cells are sorted and spaced properly, like this:
Col1 Col2 Col3
n01 n01
n02 n02 n02
n03 n03 n03
n04
n05 n05 n05
n06
n07 n07 n07
n08 n08
n09 n09
n10 n10 n10
n11 n11
n12
n13
n14 n14
n15 n15 n15
n16
n20 n20
n23
n24 n24
The ways I used to do this was by copying Col2 into a new column and then removing duplicates (new feature in Excel 2007) of the new column from Col1 and then using the uniques left to remove the uniques from Col2 leaving me with only duplicates, and then just sorting it. Then repeat that for Col3. If there is a quicker or less error prone method then I would be very happy!
Can anyone offer guidance? Thanks very much!
Col1 Col2 Col3
n01 n02 n24
n02 n03 n20
n03 n05 n15
n04 n01 n05
n05 n20 n03
n06 n09 n10
n07 n14 n02
n08 n15 n07
n09 n10
n10 n08
n11 n11
n12 n16
n13 n07
n14 n23
n15 n24
My data sometimes but do not always have all of one column in the next column (column 3 has less data in it than column 1 or 2).
I want to be able to put them all together into one table where the cells are sorted and spaced properly, like this:
Col1 Col2 Col3
n01 n01
n02 n02 n02
n03 n03 n03
n04
n05 n05 n05
n06
n07 n07 n07
n08 n08
n09 n09
n10 n10 n10
n11 n11
n12
n13
n14 n14
n15 n15 n15
n16
n20 n20
n23
n24 n24
The ways I used to do this was by copying Col2 into a new column and then removing duplicates (new feature in Excel 2007) of the new column from Col1 and then using the uniques left to remove the uniques from Col2 leaving me with only duplicates, and then just sorting it. Then repeat that for Col3. If there is a quicker or less error prone method then I would be very happy!
Can anyone offer guidance? Thanks very much!