in reply to WriteExcel : The text 801495E40 turns into 8.01495E+45

I don't see where 'Text' is a valid number format...and don't use a number format for a text column anyway...try 'write_string()'. write() will use write_number() if the value 'looks like' a number.
  • Comment on Re: WriteExcel : The text 801495E40 turns into 8.01495E+45

Replies are listed 'Best First'.
Re^2: WriteExcel : The text 801495E40 turns into 8.01495E+45
by voram (Initiate) on Jan 17, 2014 at 16:16 UTC
    Thanks runrig!

    My issue is that except for the four columns from A-D (which are string), all the other ones are numbers. And since I am populating these cells from a csv file, I have automated it to be printed with write() method for each cell.

    Hence I was trying to set a format for those 4 columns, but you pointed it right, 'Text' cannot be a number format indeed.
    <\br> For now, I have considered these as special cases and using regex i identify the tokens with such formats (like 801495E40) and print them using write_string() method.
    <\br> Thanks for the help!