Formula not working
See original GitHub issueI’m trying to use HYPERLINK formula as follows -
ws.set_cell_value(1, 1, '=HYPERLINK("www.someurl.com", "Click here")')
But when I look at the underlying cell(1, 1) in excel file, it complains that formula is invalid. Actually pyexcelerate prepends an additional =
sign, so above formula is translated to -
==HYPERLINK(“www.someurl.com”, “Click here”)
I also tried to use the formula without =
sign as follows -
ws.set_cell_value(1, 1, 'HYPERLINK("www.someurl.com", "Click here")')
So in this is case excel client complains that that formula is invalid, it’s because there is no =
sign, so above formula is translated to -
HYPERLINK(“www.someurl.com”, “Click here”)
valid formula must contain only one =
sign in the cell, e.g.
=HYPERLINK(“www.someurl.com”, “Click here”) #This is valid
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top GitHub Comments
Fixed in the latest dev version, indeed Excel seems to be more lenient in parsing formulas that don’t match the spec exactly.
It would be convenient if you could merge this fix to
master
.