error writing data into a sheet with formula in its columns

Topics: Developer Forum, User Forum
Apr 30, 2009 at 10:10 AM
i have to write data into an existing excel file in one particular sheet.
this sheet i need to write on has formulas in most of its columns.
my problem is that whenever i write data into the sheet's last row i am getting an error like this:
Fatal error: Uncaught exception 'Exception' with message 'Syntax error: +, lookahead:

any ideas?

Apr 30, 2009 at 10:41 AM
What formula are you trying to write? There are unfortunately some bugs writing formulas with PHPExcel_Writer_Excel5. Can you see if problem is this:

Apr 30, 2009 at 11:08 AM
hi sir.i am trying to write into a column that uses a formula like this: =+A
Apr 30, 2009 at 11:27 AM
In that case that is the problem, PHPExcel_Writer_Excel5 does not support the unary plus operator. Can you remove the + sign ?

Apr 30, 2009 at 11:33 AM
huhu no workaround for this?
Apr 30, 2009 at 12:04 PM
Can you explain what kind of formula this is? Is "A" a defined name?

Apr 30, 2009 at 2:52 PM
the formula is like this: =+A*(B*.20)
that is what i see when i click on the column
i don't use ms excel often btw
i really really wanna solve this asap
thanks for all the help so far....

Apr 30, 2009 at 3:03 PM
Can you send me the Excel file so I can inspect? (erik at phpexcel dot net)