Convert Excel spreadsheet to PHP script

2019-09-03 08:20发布

I have an excel spreadsheet that contains some formulas to calculate ROI for an upcoming product of a client. Is it possible to convert this into a php script whereby a user would type into some boxes and then submit it working out the same. The excel spreadsheet is here: http://www.solidcamxpress.co.uk/roi.xls

标签: php excel
3条回答
相关推荐>>
2楼-- · 2019-09-03 08:37

You can use PHPExcel to read an existing spreadsheet and extract its data/formulas, but converting those formulas from Excel syntax to PHP is rather non-trivial.

Unless you're doing a generalized Excel->PHP converter, the time/effort required to write such a converter will be far greater than it would take you do analyze the one spreadsheet by hand and code up some PHP stuff to recreate it.

查看更多
一夜七次
3楼-- · 2019-09-03 08:51

@Cameron

There is a software in the market which can convert the spreadsheet to active html/php with ease. You can get the software at the following url:
http://www.spreadsheetconverter.com

Even you can also convert the spreadsheet by yourself as it is simple to convert with scripts. but you can also this software for the conversion =)

查看更多
家丑人穷心不美
4楼-- · 2019-09-03 08:57

Sure, PHP can do math just like Excel's formulas. However, there is no magic method of converting Excel to a Web page, if that's what you're asking.

查看更多
登录 后发表回答