Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

CHOOSE() returns "#VALUE!" if the 1st entry is chosen #267

Merged
merged 1 commit into from Nov 8, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Calculation/LookupRef.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public static function CHOOSE() {
return PHPExcel_Calculation_Functions::VALUE();
}
$chosenEntry = floor($chosenEntry);
if (($chosenEntry <= 0) || ($chosenEntry > $entryCount)) {
if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) {
return PHPExcel_Calculation_Functions::VALUE();
}

Expand Down