You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- HLookup needs an ordered list even if range_lookup is set to false [Issue #1055](https://github.com/PHPOffice/PhpSpreadsheet/issues/1055) and [PR #1076](https://github.com/PHPOffice/PhpSpreadsheet/pull/1076)
15
15
- Improve performance of IF function calls via ranch pruning to avoid resolution of every branches [#844](https://github.com/PHPOffice/PhpSpreadsheet/pull/844)
16
+
- MATCH function supports `*?~` Excel functionality, when match_type=0 - [Issue #1116](https://github.com/PHPOffice/PhpSpreadsheet/issues/1116)
16
17
17
18
### Fixed
18
19
@@ -26,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
26
27
- Cover `getSheetByName()` with tests for name with quote and spaces - [#739](https://github.com/PHPOffice/PhpSpreadsheet/issues/739)
27
28
- Best effort to support invalid colspan values in HTML reader - [878](https://github.com/PHPOffice/PhpSpreadsheet/pull/878)
- MATCH function fix (value search by type, stop search when match_type=-1 and unordered element encountered) - [Issue #1116](https://github.com/PHPOffice/PhpSpreadsheet/issues/1116)
Copy file name to clipboardExpand all lines: src/PhpSpreadsheet/Calculation/LookupRef.php
+64-24
Original file line number
Diff line number
Diff line change
@@ -464,19 +464,21 @@ public static function CHOOSE(...$chooseArgs)
464
464
*
465
465
* @param mixed $lookupValue The value that you want to match in lookup_array
466
466
* @param mixed $lookupArray The range of cells being searched
467
-
* @param mixed $matchType The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
467
+
* @param mixed $matchType The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below.
468
+
* If match_type is 1 or -1, the list has to be ordered.
468
469
*
469
-
* @return int The relative position of the found item
470
+
* @return int|string The relative position of the found item
0 commit comments