Que codigo utilizas?, es muy simple si usas lo que te puso
.php:
Código PHP:
<?php
header('Content-type: application/vnd.ms-excel');
header("Content-Disposition: attachment; filename=archivo.xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
<table> <tr> <td>Nombre:</td><td>Juanito Perez</td> </tr> <tr> <td>Pais</td><td>Shile</td> </tr> </table>