derekstewart
MIS
I have a dataset in Excel with the follwing pattern where there is one primary number and several related numbers:
Prim Secondary
13 10259
13 44589
21 66514
21 44577
21 22187
I would like this info displayed horizontally, seperated by a comma in the same cell like this:
13 10259,44589
21 66514,44577,22187
The count of secondary numbers varies from 1 to 11. I did an IF statement that does it for only a set number of secondary but am not sure how to loop it while a2 = a3 and then do it again for the next number in the column. Any thoughts? Thanks. Derek
Prim Secondary
13 10259
13 44589
21 66514
21 44577
21 22187
I would like this info displayed horizontally, seperated by a comma in the same cell like this:
13 10259,44589
21 66514,44577,22187
The count of secondary numbers varies from 1 to 11. I did an IF statement that does it for only a set number of secondary but am not sure how to loop it while a2 = a3 and then do it again for the next number in the column. Any thoughts? Thanks. Derek