php - Getting formula from another sheet PHPExcel -
i'm having trouble in executing formula using phpexcel. i'm getting formula sheet name sample new report. although there no errors when run reason after program executed; returns error saying undefined variable a. can me in getting formula running?
here's formula code:
$rowcount2 = 4; $objphpexcel->getactivesheet()->setcellvalue('b'.$rowcount2, "=sumif('sample new report'!$a:$a,incentive!$a4,'sample new report'!$z:$z)");
this isn't other sheets: phpexcel not support formulae using row (2:2) or column (a:a) references, whether in same worksheet or in worksheet. use ranges instead
=sumif('sample new report'!$a1:$a1024,incentive!$a4,'sample new report'!$z1:$z1024)
Comments
Post a Comment