chief...@gmail.com
unread,Oct 30, 2008, 2:53:47 PM10/30/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-excel, chief...@gmail.com
I just downloaded version 0.6.3a and ran formulas.py. There seems to
be a problem with the last example in the script.
That line says
ws.write(12, 3, Formula('IF(A1>A2;3;"hkjhjkhk")'))
When I view the cell (d13), the formula actually stored is
=IF(A1>=A2,3,"hkjhjkhk")
Notice that the relational comparison stored is not what the script
specified.
For a test I changed the line in the script to
ws.write(12, 3, Formula('IF(A1>=A2;3;"hkjhjkhk")'))
but when I ran the script I got the error
File "C:\Python25\Lib\site-packages\pyExcelerator-0.6.3a\examples
\formulas.py", line 48, in <module>
ws.write(12, 4, Formula('IF(A1>=A2;3;"hkjhjkhk")'))
File "c:\Python25\Lib\site-packages\pyExcelerator\ExcelFormula.py",
line 62, in __init__
raise Exception, "can't parse formula " + s
Exception: can't parse formula IF(A1>=A2;3;"hkjhjkhk")
This seems very strange to me. Is it true that
a) pyExcelerator formulae specified as "strictly greater than" are
implemented in Excel as "greater than or equal to", and therefore
b) pyExcelerator is not able to specify an Excel formula as "strictly
greater than"?
I am running Excel 2003 under Windows Vista 64.
Thanks.
Dan