doupapin172773 2012-12-27 14:34
浏览 64


I am working on a very large sheet, that sheet is created from database and have 40 columns with more than 3000 rows, I set its title Backup Data in Php Excel

Now I have created a new sheet where I can set value of different cells. I need to use countifs formula to show results from Backup Data sheet to Summary Sheet

$sheetSummary->setCellValue('E39', '=COUNTIFS(\'Backup Data\'!$H:$H,"=KTM", \'Backup Data\'!$J:$J,"=Full Size", \'Backup Data\'!$Y:$Y,"<>SPD", \'Backup Data\'!$U:$U, ">=1-Dec-12", \'Backup Data\'!$U:$U, "<=31-Dec-12")');

When I use a formula in php

A file is prompted but when I open the file in notepad it is having this text

  • 写回答

1条回答 默认 最新

  • duanfengwang9157 2012-12-27 14:41

    The problem is the use of column references such as $H:$H and $J:$J aren't yet supported in formulae by PHPExcel. use ranges instead (such as $H1:$H3000) or disable precalculation on save


    To disable precalculation on save:

    $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 机器人关节变量求解问题
  • ¥15 ros小车启动launch文件报错
  • ¥15 vs2015到期想登陆但是登陆不上
  • ¥20 Intellij实现web登录界面
  • ¥15 IPQ5018制作烧录固件,boot运行失败(操作系统-linux)(相关搜索:操作系统)(相关搜索:操作系统)
  • ¥20 icefall在librispeech基础上加入个人数据集
  • ¥30 keepalive高可用故障运维配置询问
  • ¥15 求帮助!国家电网内网u盘突然识别不出来了。
  • ¥15 matlab语音变速变调同时实现
  • ¥15 如何用Thoony写ESP32温湿度检测无源蜂鸣器报警代码?