This cannot be done in SPSS using core (built-in) functions - output functions in SPSS are extremely limited.
Workarounds:
1) You could script it in Python (which can run underneath SPSS).
2) You could export it to text and then program a wrapper to reformat it however you want.
3) You could export it to text and then write an Excel macro to open the data and automatically format it.
3) You could use the open-source statistical program called R. It can format data any way you can imagine.
All of these methods will involve a degree of programming, however.