Displaying results separated by commas will give you .csv not an Excel spreadsheet; although excel can read csv, and after opening in excel you can save it as an excel file. In order to actually write the file in excel format, I believe that you need to use Ole Provider or something like that, but I never worried, since the workaround for creating csv inside and outside the code, making it an excel file is quite simple.
source share