That's exactly the structure of a .csv (comma separated values) file: just a block of text with fields and separators (commas, semicolons, ...) in between.
Just open that with EXCEL; it should offer sth. like a text wizard (or so).
The code you showed us in the 1st post in this thread produced tabular data aligned on tab stop boundaries (although the output you showed us replaced the tabs that your script produced with varying numbers of spaces that misaligned the output). You said you didn't want that; you said you wanted a CSV file output file format instead. You are getting exactly what you asked for. If you want a nicely formatted table style output with aligned output (even if the width of the text in the output columns varies), you can do that too; but nicely formatted table style output is MUCH harder to load into a MicroSoft Excel spreadsheet, while loading a CSV formatted file into MicroSoft Excel is easy.