Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Closed Issue: In Beta 4, formulas including Dates may return "#VALUE!" rather than the proper value. [15074]

$
0
0
My Excel spreadsheet contains a Date in column A and the following formula in column B.

```
=IF([@IssueDate]<>"",TODAY()-[@IssueDate],"")
```

When the 'Compute' method is called, the result '#VALUE!' is assigned to column B rather than the proper value.

I was able to circumvent the problem by updating the arithmetic operator methods in file "Operator.cs" to support "DataType.Date'. I also updated "ExpressionConverter.cs" to handle "DataType.Date". Finally, I updated "DateExpression.cs". I have no confidence I made these changes correctly; I only mention this in the remote chance it might be helpful.

There is a second issue regarding Date values in arithmetic expressions that prevents the "<>" operator from begin parsed correctly. I submitted that issue in bug report 15073.

I have attached a simple spread sheet that reproduces this problem.


Comments: closed /MA

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>