mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-04-04 05:43:36 +03:00
CHOOSE() returns "#VALUE!" if the 1st entry is chosen
This commit is contained in:
parent
f9f37f566a
commit
ded0f6dc13
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ class PHPExcel_Calculation_LookupRef {
|
|||
return PHPExcel_Calculation_Functions::VALUE();
|
||||
}
|
||||
$chosenEntry = floor($chosenEntry);
|
||||
if (($chosenEntry <= 0) || ($chosenEntry > $entryCount)) {
|
||||
if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) {
|
||||
return PHPExcel_Calculation_Functions::VALUE();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue