@ribarm

Parsing anything but the simplest Excel formula without accessing Excel from AutoCAD (and presumably outside of Excel) may be a rabbit hole you don't want to go down. If it is just simple operators can be achieved but there are too many built in functions to deal with.

Some links to good reading on parsing Excel formulas shown on this website:

https://ewbi.blogs.com/develops/2004/12/excel_formula_p.html

If you can use CAD to access the .csv via Excel (or an Excel VBA macro) then should be easy to solve.

e.g.

- Start Excel Application

- Open existing .csv (or .xlsx/.xls) file

- Pick range (cell) of interest to get activesheet and 'selection'

- test using 'HasFormula property to determine the cell has a formula

- if HasFormula = true, then get the solved formula from 'Value2 property

- send answer to text file or do something else with it, etc.

I can mock up a LISP example (or Excel VBA macro) based on the above if you like (and if I'm not off track for what you are hoping to achieve).