@@ 327-333 (lines=7) @@ | ||
324 | return Functions::REF(); |
|
325 | } |
|
326 | ||
327 | if (strpos($cellAddress, '!') !== false) { |
|
328 | list($sheetName, $cellAddress) = explode('!', $cellAddress); |
|
329 | $sheetName = trim($sheetName, "'"); |
|
330 | $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); |
|
331 | } else { |
|
332 | $pSheet = $pCell->getWorksheet(); |
|
333 | } |
|
334 | ||
335 | return \PhpOffice\PhpSpreadsheet\Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, false); |
|
336 | } |
|
@@ 338-344 (lines=7) @@ | ||
335 | return \PhpOffice\PhpSpreadsheet\Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, false); |
|
336 | } |
|
337 | ||
338 | if (strpos($cellAddress, '!') !== false) { |
|
339 | list($sheetName, $cellAddress) = explode('!', $cellAddress); |
|
340 | $sheetName = trim($sheetName, "'"); |
|
341 | $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); |
|
342 | } else { |
|
343 | $pSheet = $pCell->getWorksheet(); |
|
344 | } |
|
345 | ||
346 | return \PhpOffice\PhpSpreadsheet\Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, false); |
|
347 | } |