dongyong3223 2013-04-06 20:19
浏览 120

PHP中的Excel公式

Can anyone tell me the math behind this MS Excel functions. I am writing code in php and I am unable to use Excel to calculate these but I still need the same result.

CUMIPMT(rate,nper,pv,start_period,end_period,type) Returns the cumulative
interest paid on a loan between start_period and end_period.

My Excel Function -

=IF($C$33<0,CUMIPMT($C$36/12,$C$35,-$C$33,$C$34,$C$34+11,0),-CUMIPMT($C$36/12,$C$35,$C$33,$C$34,$C$34+11,0))

One more question - I used (=E11-E12) but it is not substracting, it adds both values, i cant understand why?

Thank you in advance

  • 写回答

3条回答 默认 最新

  • donljt2606 2013-04-06 20:24
    关注

    I haven't used it, but you may want to check out the PHPExcel Library. Excel and PHP are different enough that you will either need to use a library like the one I linked to or write functions to do all of that math manually. In your case, it seems like handling excel files may be the easiest way to accomplish your goal.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么