We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
trimSheetFromCellReference()
1 parent b4fc92e commit e043cf3Copy full SHA for e043cf3
src/PhpSpreadsheet/Calculation/Functions.php
@@ -705,8 +705,8 @@ public static function trimTrailingRange(string $coordinate): string
705
706
public static function trimSheetFromCellReference(string $coordinate): string
707
{
708
- while (strpos($coordinate, '!') !== false) {
709
- $coordinate = substr($coordinate, strpos($coordinate, '!') + 1);
+ if (strpos($coordinate, '!') !== false) {
+ $coordinate = substr($coordinate, strrpos($coordinate, '!') + 1);
710
}
711
712
return $coordinate;
0 commit comments