whatever I have tried. it does not get the right format for the decimal values. sometimes it gets written as 12345.004 sometimes 234.000 sometimes just as 54.0 or 576 I am using html tables to create the excel file. Regards. happy new Year to all... wish a better period for the whole universe!