mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 07:16:03 +03:00
CHOOSE() returns "#VALUE!" if the 1st entry is chosen
This commit is contained in:
parent
f9f37f566a
commit
ded0f6dc13
@ -462,7 +462,7 @@ class PHPExcel_Calculation_LookupRef {
|
|||||||
return PHPExcel_Calculation_Functions::VALUE();
|
return PHPExcel_Calculation_Functions::VALUE();
|
||||||
}
|
}
|
||||||
$chosenEntry = floor($chosenEntry);
|
$chosenEntry = floor($chosenEntry);
|
||||||
if (($chosenEntry <= 0) || ($chosenEntry > $entryCount)) {
|
if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) {
|
||||||
return PHPExcel_Calculation_Functions::VALUE();
|
return PHPExcel_Calculation_Functions::VALUE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user