Data in one column to be reflected in multiple columns

Occasional Visitor

I have a column of cost centers (repeating) that have various locations that are applicable to each of them (this is valued data from a pivot table).  I'm trying to show the cost center in one cell with the locations showing in separate cells on the same line but in separate columns (see attachment).  How can this be accomplished? 

I have a fairly large file with data and some cost centers have 20 or more locations associated with them.


1 Reply

@E_Run1010 if you are an MS365 subscriber you can use UNIQUE and a combination of the TRANSPOSE and FILTER functions. I changed the example data a bit to demonstrate this. See attached, rows 14:16.