you bet its possible--there are lots and lots of ways to do this, but it all starts with the header.
header ("content-type: application/x-msexcel");
header("Content-Disposition: filename=results.xls");
There are other ways to do it, but that is the simplest one I am familiar with: