Home » excel » javascript – Convert (heavily formula-loaded) Excel spreadsheet to user-friendly web calculator

javascript – Convert (heavily formula-loaded) Excel spreadsheet to user-friendly web calculator

Posted by: admin April 23, 2020 Leave a comment

Questions:

I need to create a webtool that takes several input values and generates a number of outputs based on complex sequences of arithmetic calculations in an Excel workbook. I am thinking of hard-coding the formulas into Javascript and creating a live-update user input form, but I don’t want to waste my time if there is a more efficient way of doing this…I have heard of embedding live spreadsheets in webpages but realize this is only compatible with IE, which is not preferable. Does anyone have suggestions to help get me started?

How to&Answers:

You would need more than javascript to accomplish this. Despite the web guru naysayers, I made it work. You need IIS and Excel on the server. People are getting hung up on the 2nd requirement, but you have to use what is available. SpreadSheet Gear is an alternative.

But the first question you should ask yourself, do you really need a web front-end? I would explore building your front-end in excel; having a cell mapping tab that maps your UI elements to the cells of your calculator spreadsheet and have a macro copy/paste the contents from one spreadsheet to another.

The beauty of this set-up is you can run batch through your calculator spreadsheet.

Answer:

You could use Formula.js, which is a JavaScript implementation of Excel’s formula functions.