Write out the listings across the columns

I would like to export data across columns to Excel.
The structure of the data is @3@2@1 as shown in the image.
How can I export the data obtained as shown on the left side of the image to look like the Excel sheet on the right side of the image?
I would appreciate it if you could help me.

Please don’t duplicate topics.

It keeps people from helping you/others, makes it harder to find answers via search, and makes helping harder as threads are instantly split.

Leverage this and add or edit the original post rather than making new.

Closing this post now accordingly.