Skip to content

Commit 239ca05

Browse files
committed
1 parent de73aa2 commit 239ca05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PhpSpreadsheet/Calculation/LookupRef.php

+4
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,10 @@ public static function MATCH($lookup_value, $lookup_array, $match_type = 1)
611611
*/
612612
public static function INDEX($arrayValues, $rowNum = 0, $columnNum = 0)
613613
{
614+
while(is_array($rowNum)) {
615+
$rowNum = current($rowNum);
616+
}
617+
614618
if (($rowNum < 0) || ($columnNum < 0)) {
615619
return Functions::VALUE();
616620
}

0 commit comments

Comments
 (0)