diff --git a/src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php b/src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php index 8bce07e908..a1da86c890 100644 --- a/src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php +++ b/src/PhpSpreadsheet/Calculation/LookupRef/RowColumnInformation.php @@ -159,8 +159,8 @@ public static function ROW($cellAddress = null, ?Cell $cell = null) [, $cellAddress] = Worksheet::extractSheetTitle($cellAddress, true); if (strpos($cellAddress, ':') !== false) { [$startAddress, $endAddress] = explode(':', $cellAddress); - $startAddress = (string) preg_replace('/\D/', '', $startAddress); - $endAddress = (string) preg_replace('/\D/', '', $endAddress); + $startAddress = (int) (string) preg_replace('/\D/', '', $startAddress); + $endAddress = (int) (string) preg_replace('/\D/', '', $endAddress); return array_map( function ($value) {