First, the NullPointerException. That's caused by this line:
If the cell is empty, the value is quite often null. The following will fix that:
I'm not using String.valueOf because that will put the
String literal "null" into s when the cell is empty.
As for the formatting issue, use a proper Excel API like Apache POI or JExcelAPI. You can specify the cell type; Excel has a nasty habit of applying its own formatting when numbers get too large.