@@ -27,6 +27,8 @@ class Worksheet extends WriterPart
2727
2828 private string $ formula = '' ;
2929
30+ private string $ formulaRange = '' ;
31+
3032 private string $ twoDigitTextYear = '' ;
3133
3234 private string $ evalError = '' ;
@@ -50,6 +52,7 @@ public function writeWorksheet(PhpspreadsheetWorksheet $worksheet, array $string
5052 $ worksheet ->calculateArrays ($ this ->getParentWriter ()->getPreCalculateFormulas ());
5153 $ this ->numberStoredAsText = '' ;
5254 $ this ->formula = '' ;
55+ $ this ->formulaRange = '' ;
5356 $ this ->twoDigitTextYear = '' ;
5457 $ this ->evalError = '' ;
5558 // Create XML writer
@@ -180,6 +183,7 @@ private function writeIgnoredErrors(XMLWriter $objWriter): void
180183 $ started = false ;
181184 $ this ->writeIgnoredError ($ objWriter , $ started , 'numberStoredAsText ' , $ this ->numberStoredAsText );
182185 $ this ->writeIgnoredError ($ objWriter , $ started , 'formula ' , $ this ->formula );
186+ $ this ->writeIgnoredError ($ objWriter , $ started , 'formulaRange ' , $ this ->formulaRange );
183187 $ this ->writeIgnoredError ($ objWriter , $ started , 'twoDigitTextYear ' , $ this ->twoDigitTextYear );
184188 $ this ->writeIgnoredError ($ objWriter , $ started , 'evalError ' , $ this ->evalError );
185189 if ($ started ) {
@@ -1392,6 +1396,9 @@ private function writeSheetData(XMLWriter $objWriter, PhpspreadsheetWorksheet $w
13921396 if ($ worksheet ->getCell ($ coord )->getIgnoredErrors ()->getFormula ()) {
13931397 $ this ->formula .= " $ coord " ;
13941398 }
1399+ if ($ worksheet ->getCell ($ coord )->getIgnoredErrors ()->getFormulaRange ()) {
1400+ $ this ->formulaRange .= " $ coord " ;
1401+ }
13951402 if ($ worksheet ->getCell ($ coord )->getIgnoredErrors ()->getTwoDigitTextYear ()) {
13961403 $ this ->twoDigitTextYear .= " $ coord " ;
13971404 }
0 commit comments