I have a working program which integrates python and Excel (thanks to xlwt). I am reading from a csv file and copying into an excel. While I do this, I also have a few formulae that I include using the formula module in xlwt. To be specific, the code is
ws_xlwt.write(3,3, Formula("MMULT(MINVERSE(C11:D12),"+col_char+"2:"+col_char+"3)"), style)
col_char is an ASCII code generated in the loop. The array (C11:D12) contains data generated using the code:
ws_xlwt.write(10,2, Formula("SUMPRODUCT($C$36:$C$161,$C$36:$C$161)"), style)
When the program runs, it puts the formula in the particular cell correctly. But the cell displays the error "#VALUE" instead of the result. The interesting point is when I open the excel file, double click on this particular cell to edit it and hit enter without changing anything, the result is displayed. I am not sure if this is a python integration issue or if its an Excel problem.
OS - Windows 7 64-bit
Python - 2.7 32-bit