【发布时间】:2021-05-25 21:56:10
【问题描述】:
我想执行这个求和公式,但是我正在用列和行填充单元格,如何获取最后一列的名称以将其放置在范围内
$sheet->setCellValueByColumnAndRow($col, $row, $score);
$sheet->setCellValueByColumnAndRow(($col + 1), $row, "=SUM(E{$row}:{$col_name}{$row})");
$sheet->getCellByColumnAndRow(($col + 1), $row)->getCalculatedValue();
我试过了
$sheet->setCellValueByColumnAndRow($col, $row, "=SUM(E{$row}:{$sheet->getCellByColumnAndRow($col, $row)})");
【问题讨论】:
标签: phpspreadsheet