Home » excel » Access Excel Programmatically

Access Excel Programmatically

Posted by: admin April 23, 2020 Leave a comment

Questions:

I am given a huge excel file with a great deal of data and formulas and I need to access the functionality implemented therein to create a web service running on MacOSX. I tried at first to use POI to access its functionality from Java but unfortunately POI does not support some functions like MINVERSE, TRANSPOSE, MMULT and others and I found it particularly difficult to implement them (also see this question).

Is there a programmatic way to access the excel sheet? I found RCOMClient for R but it seems it works onl on Windows. Perl, Python, R, Octave, C++, Java or anything if fine provided that it provided full functionality over Excel formulas.

Python Excel: Why Python Excel in NOT an option for my problem. In the tutorial it is written that:

A relative reference is useful only if you have external knowledge of
what cells can be used as the origin. Many formulas found in Excel
files include function calls and multiple references and are not
useful, and can be too hard to evaluate. A full calculation engine is
not included in xlrd.

Unfortunately I need a very good support of the Excel engine.

How to&Answers:

Sure you can.

Have you checked the wonderful Python Excel project ?

Even better : you could take a look at that stupendous blog post.

Have fun and keep us posted if you need more help.

  • Don’t bother accessing Excel from another language than Python, as Python is where you’ll waste the lower amount of time.