From a047194ef8729440bea7d9f9e5089dc0b8600858 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 8 Feb 2012 22:32:22 +0000 Subject: [PATCH] Minor additions to formulas in built sheet git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86203 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Tests/03formulas.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/03formulas.php b/Tests/03formulas.php index 7b6cb9a6..2a280173 100644 --- a/Tests/03formulas.php +++ b/Tests/03formulas.php @@ -69,7 +69,10 @@ $objPHPExcel->getActiveSheet()->setCellValue('A7', 'Total of both ranges:'); $objPHPExcel->getActiveSheet()->setCellValue('B7', '=SUM(B5:C5)'); $objPHPExcel->getActiveSheet()->setCellValue('A8', 'Minimum of both ranges:'); -$objPHPExcel->getActiveSheet()->setCellValue('B8', '=MIN(B2:C5)'); +$objPHPExcel->getActiveSheet()->setCellValue('B8', '=MIN(B2:C4)'); + +$objPHPExcel->getActiveSheet()->setCellValue('A9', 'Maximum of both ranges:'); +$objPHPExcel->getActiveSheet()->setCellValue('B9', '=MAX(B2:C4)'); // Rename sheet echo date('H:i:s') . " Rename sheet\n";