I have a two column list of key-value pairs. For example:
71 Archaebacteria
71 Mendosicutes
71 Metabacteria
72 blue green algae
72 blue-green algae
72 Cyanochloronta
72 Cyanophyta
73 CFB group
73 Chloroflecales
73 Chloroflexaceae/Deinococcaceae group
73 Chloroflexus/Deinococcaceae group
73 Chloroflexus/Deinococcus group
73 Cytophaga-Flexibacter-Bacteroides group
73 Fibrobacter-Acidobacteria group
73 Flexistipes group
73 GNS bacteria
73 Green non-sulfur bacteria
73 true bacteria
I need to 'flatten' the two column list into an array where the key remains in column 1 and all values for the key are moved to new cells on the same row.
Some keys have 20 values. For that case, there would be 21 columns (1 for the key, 20 for the key's values).
I have studied this question but have not been able to successfully modify it to produce the desired results.
How to transform an Excel list into an array?
Notes: a solution may leave a value in column 2 and 'copy' that value to the appropriate row in the array. Alternatively, a solution may 'move' the value to the proper position in the array, leaving a key with a NULL value. These "clean-up" conditions are OK as I'll sort/delete to remove detritus from the new array.
Either a formula or VBA solution is good.