Also, I’m unable to retrieve the value from a cell which has formula.
I’ve tried using the hack given in issue #2645
But, my hot3.plugin returns undefined.
Does this mean that I will have to destroy the existing HOT and create HOT again for modified columnSummary?
Or is there any other way to achieve that?
If I’ll use getDataAtCell for a cell which has a formula, I’ll get the formula in return. I want the computed value from that formula.
It returns the formula used in the cell.
For example, if cell (0,0) = ‘=SUM(B1:D1)’
Then hot.getSourceDataAtCell(0, 0) returns ‘=SUM(B1:D1)’ and not the sum of values in cells B1 to D1
I think I was misled.
Function getDataAtCell returns the value present on the cell.
I was under the impression that the function returns the formula in the cell. I was wrong.
Hot’s formulas IF() has always had this division by 0 problem. It always evaluates both possible results from the IF(), which is crazy. I reported it several years ago, but cannot find my post. It seems no one addressed it.
The only workaround is that you must nest another “redundant” IF() into the divisor of all formulas which use IF() to divide. Something like:
=IF(D3 = 0, 0, C3 / IF(D3 = 0, 1, D3))
I leave you/@rishabhbhs to examine and see why this will actually always produce the correct answer even though it looks like it might not…
I was also looking for this post. I knew that I saw it somewhere.
As it makes sense it can produce unnecessary issues. I have reported it to our board to never lose it again.