I have to create a function in C# allowing to calculate Excel formulas entered in a string:
for example:
ROUND(COUNTIF(['YES', 'NO'],'YES')*(100/4),1)
I absolutely have to use a free library, but I can't find anything to do so in C#.
Has anyone come across this problem before?
Thanks for your help
Explications of the app context:
This function receives as a parameter a string which has already been generated on another application over which I do not have control.
the need is to find a way evaluate this kind of string containing some Excel functions.
EPPlus v4 is LGPL. It can create Excel files but not execute them AFAIK. But you could automate Excel afterwards .
As @DS_London said: it is a weird use case, are you sure you got it right?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.