You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excel works with some functions Epplus considers circular.
For example a SUMIF function in Excel is only considered circular if the cell is actually relevant to the calculation.
While Epplus throws as soon as it COULD become circular.
Consider for example:
Excel evaluates this to 44 (D2 = 10 + D4 = 34) while Epplus throws an exception when evaluating the very first argument. (Since cell D5 is within the range D2:D9.)
This seems to be because Excel checks the IF first. Or in this case, checks if row 5 has a 'mats' value. If it does there's a circular reference. Otherwise it works.
As such If you change the value from Jan to Mats on row 5 Excel ALSO counts it as a circular reference.
Arguably we should evaluate potential IF calculations before checking the range address to see if the actually relevant cells (D2,D4) are circular references.
That said a formula that has the risk to become a circular reference like this is likely to cause problems eventually anyway.
The text was updated successfully, but these errors were encountered:
Excel works with some functions Epplus considers circular.
For example a SUMIF function in Excel is only considered circular if the cell is actually relevant to the calculation.
While Epplus throws as soon as it COULD become circular.
Consider for example:
Excel evaluates this to 44 (D2 = 10 + D4 = 34) while Epplus throws an exception when evaluating the very first argument. (Since cell D5 is within the range D2:D9.)
This seems to be because Excel checks the IF first. Or in this case, checks if row 5 has a 'mats' value. If it does there's a circular reference. Otherwise it works.
As such If you change the value from Jan to Mats on row 5 Excel ALSO counts it as a circular reference.
Arguably we should evaluate potential IF calculations before checking the range address to see if the actually relevant cells (D2,D4) are circular references.
That said a formula that has the risk to become a circular reference like this is likely to cause problems eventually anyway.
The text was updated successfully, but these errors were encountered: