question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formula not working

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
kevmo314commented, May 27, 2018

Fixed in the latest dev version, indeed Excel seems to be more lenient in parsing formulas that don’t match the spec exactly.

0reactions
suyash248commented, May 30, 2018

It would be convenient if you could merge this fix to master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excel formulas not working, not updating, not calculating
The most common reason for an Excel formula not calculating is that you have inadvertently activated the Show Formulas mode in a worksheet....
Read more >
Excel Formulas Not Working? 5 Ways to Fix Them - MakeUseOf
1. Calculation Options Set to Manual · 2. Cell Is Formatted as Text · 3. Show Formulas Button Is Turned On · 4....
Read more >
How to Fix Excel Formulas that are Not Calculating or Updating
When Excel is in Manual Calculation mode, the formulas in your worksheet will not calculate automatically. You can quickly and easily fix your ......
Read more >
Excel Formulas Not Calculating? What to Check | Pryor Learning
1. Check for Automatic Recalculation ... On the Formulas ribbon, look to the far right and click Calculation Options. On the dropdown list,...
Read more >
6 Main Reasons for Excel Formulas Not Working (with Solutions)
6 Main Reasons for Excel Formula Not Working (with Solution) ; #1 Cells Formatted as Text ; #2 Accidentally Typed the keys CTRL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found