Computers/Language
2013. 6. 26. 21:48
http://closedxml.codeplex.com/releases/view/96561
ClosedXML now resolves formulas!
Yes it finally happened. If you call cell.Value and it has a formula the library will try to evaluate the formula and give you the result.
For example:
You can even resolve your own formulas without using cells. For Example:
If you're not referencing a worksheet you can use:
If you're not referencing a range without a worksheet you can use:
If you have the worksheet you can evaluate at your heart's content:
This is a list of the included formulas:
All math and trigonometric formulas.
All text formulas except BAHTTEXT, JIS, and PHONETIC.
All logical formulas.
All date and time formulas.
Many statistical formulas.
Very important:
- Not all formulas are included and you'll probably get a nasty error if the formula isn't supported or if there's an error in the formula. Please test your formulas before going to production.
- I'm adding new formulas all the time but if your formula isn't included please let me know via the Issue Tracker. I'll do my best to include the formula asap.
As always many fixes and performance improvements
v0.68.1
- Added all date and time functions