diff --git a/src/PhpSpreadsheet/Cell/Coordinate.php b/src/PhpSpreadsheet/Cell/Coordinate.php index 6a377f2b40..0138b938a4 100644 --- a/src/PhpSpreadsheet/Cell/Coordinate.php +++ b/src/PhpSpreadsheet/Cell/Coordinate.php @@ -327,7 +327,7 @@ public static function coordinateIsInsideRange(string $range, string $coordinate } } - $boundaries = self::rangeBoundaries($range); + $boundaries = self::rangeBoundaries($coordinateData['localReference']); $coordinates = self::indexesFromString($coordinate); $columnIsInside = $boundaries[0][0] <= $coordinates[0] && $coordinates[0] <= $boundaries[1][0];