Assuming cell C2 holds the first set of data, a function to do this is:
This presumes ALL the data has a 10-digit zip code and a two letter state abbreviation.
To be honest, what they really want is a comma-delimited file. I wouldn't do it this way. I would split the City / State / Zip into separate columns and then export the data as a comma-delimited file, which will put the commas in for you as the file is saved.
If you want to do that, just pick three rows to the left, and cut out each of the three sections of code above to get each part:
Then copy the range and paste over itself Paste Special > Values. Now you can delete the original grouped set and export the data.
Bookmarks