Possible Duplicate:
Create Excel file in Java
How to save output in excel format rather than in .txt file?
Possible Duplicate:
Create Excel file in Java
How to save output in excel format rather than in .txt file?
A great alternative to an actual excel file is a CSV file which stands for Comma Separated Values. Basically you output your data as follows:
First Name, Last Name, Birthday
Joe, Smith, 10/10/78
Matt, Jones, 2/2/90
With commas between each column, and newlines after each row. If your data has commas in it, you can enclose the data in quotes.
Excel has very good support for loading csv files, and you can even use them as a linked data source in an excel file, and then reference the data from other sheets for graphing, calculations, and pivot tables.