Excel formula 复杂公式的PHPexcel公式错误

Excel formula 复杂公式的PHPexcel公式错误,excel-formula,phpexcel,Excel Formula,Phpexcel,我正在使用PHPExcel阅读excel表格。这是我的密码 $this->excel->setActiveSheetIndex(1); $data = $this->excel->getActiveSheet()->toArray(null, true, true, true); 但是我收到了这个错误信息 Fatal error: Uncaught exception 'PHPExcel_Calculation_Exception' with message 'I

我正在使用PHPExcel阅读excel表格。这是我的密码

$this->excel->setActiveSheetIndex(1);
$data = $this->excel->getActiveSheet()->toArray(null, true, true, true);
但是我收到了这个错误信息

Fatal error: Uncaught exception 'PHPExcel_Calculation_Exception' with
message 'Individual client details!E4 -> Formula Error: An unexpected
error occured' in

/var/www/html/application/third_party/PHPExcel/Cell.php:300 Stack
trace: #0

/var/www/html/application/third_party/PHPExcel/Worksheet.php(2458):
PHPExcel_Cell->getCalculatedValue() #1

/var/www/html/application/third_party/PHPExcel/Worksheet.php(2534):
PHPExcel_Worksheet->rangeToArray('A1:F54', NULL, true, true, true) #2

/var/www/html/application/libraries/Excel.php(51):
PHPExcel_Worksheet->toArray(NULL, true, true, true) #3

/var/www/html/application/controllers/broker.php(116): Excel->read(1,
true) #4 [internal function]: broker->upload_debtors_info() #5

/var/www/html/system/core/CodeIgniter.php(339):
call_user_func_array(Array, Array) #6 

/var/www/html/index.php(192):
require_once('/var/www/html/s...') #7 

{main} thrown in
/var/www/html/application/third_party/PHPExcel/Cell.php on line 300
似乎是这个公式出错了

=Table1[[#This Row],[Outstanding Debtor Balance Over T+3 (Rs.)
  '[A']]]-Table1[[#This Row],[Portfolio Value (Rs.) 
  '[B']]]

但我不知道如何修复。如果有人能解决它,谢谢。

切换到使用PHPSReadSheet而不是PHPExcel。PHPExcel已经好几年没有更新了,不再受支持,并且已经存档。你完全正确,但不幸的是,我不能这样做,因为PHP版本问题阻碍了我的整个软件:'(如果你使用的是一个旧的PHP版本,你需要认真考虑/考虑移动到一个最新的版本,以避免一般问题。大多数使用当前版本的PHP不难纠正“破损”。