Skip to content

Commit d333932

Browse files
author
Victory
committed
[fix] order of lookup functions
1 parent c74ca6f commit d333932

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

docs/functions.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,24 +1023,25 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b).
10231023
<td><b>Description</b></td>
10241024
</tr>
10251025
<tr>
1026-
<td><b>MATCH</b><br>added in v4.3</td>
1027-
<td>=MATCH(lookup_value, lookup_array, [match_type]), <br><br> where:
1026+
<td><b>HLOOKUP</b><br>added in v4.3</td>
1027+
<td>=HLOOKUP(lookup_value, table_array, row_index, [range_lookup]), <br><br> where:
10281028
<ul>
1029-
<li><i>lookup_value</i> - the value that you want to match in <i>lookup_array</i>;</li>
1030-
<li><i>lookup_array</i> - the range of cells;</li>
1031-
<li><i>match_type</i> - optional (1 by default):<br>1- finds the largest value that is less than or equal to <i>lookup_value</i><br>0 - finds the value that is exactly equal to <i>lookup_value</i><br>-1 - finds the smallest value that is greater than or equal to <i>lookup_value</i></li>
1029+
<li><i>lookup_value</i> - the value to search for;</li>
1030+
<li><i>table_array</i> - the table from which to retrieve a value;</li>
1031+
<li><i>column_index_num</i> - the row number in the table from which to retrieve a value;</li>
1032+
<li><i>range_lookup</i> - optional (1 by default):<br>0 - exact match, 1 - approximate match</li>
10321033
</ul></td>
1033-
<td>Searches for a specified item in a range of cells, and then returns the relative position of that item in the range.</td>
1034+
<td>Looks up a value in a horizontal table</td>
10341035
</tr>
10351036
<tr>
1036-
<td><b>XMATCH</b><br>added in v4.3</td>
1037-
<td>=XMATCH(lookup_value, lookup_array, [match_mode]), <br><br> where:
1037+
<td><b>INDEX</b><br>added in v4.3</td>
1038+
<td>=INDEX(array, row_num, [column_num]), <br><br> where:
10381039
<ul>
1039-
<li><i>lookup_value</i> - the value that you want to match in <i>lookup_array</i>;</li>
1040-
<li><i>lookup_array</i> - the range of cells;</li>
1041-
<li><i>match_mode</i> - optional, 0 - exact match (default), -1 - exact match or next smallest, 1 - exact match or next larger</li>
1040+
<li><i>array</i> - a range of cells or an array constant;</li>
1041+
<li><i>row_num</i> - the row position in the reference or array;</li>
1042+
<li><i>column_num</i> - optional, the column position in the reference or array.</li>
10421043
</ul></td>
1043-
<td>Performs a lookup and returns a position in vertical or horizontal ranges.</td>
1044+
<td>Returns the value at a given location in a range or array.</td>
10441045
</tr>
10451046
<tr>
10461047
<td><b>LOOKUP</b><br>added in v4.3</td>
@@ -1053,26 +1054,14 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b).
10531054
<td>Looks up a value in a one-column or one-row range, and retrieves a value from the same position in another one-column or one-row range.</td>
10541055
</tr>
10551056
<tr>
1056-
<td><b>XLOOKUP</b><br>added in v4.3</td>
1057-
<td>=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode]), <br><br> where:
1058-
<ul>
1059-
<li><i>lookup_value</i> - the value to search for;</li>
1060-
<li><i>lookup_array</i> - the array or range to search;</li>
1061-
<li><i>return_array</i> - the array or range to return;</li>
1062-
<li><i>if_not_found</i> - optional, if a valid match is not found, returns the [if_not_found] text you supply;</li>
1063-
<li><i>match_mode</i> - optional (0 by default):<br>0 - Exact match<br>-1 - Exact match. If not found, returns the next smaller item<br>1 - Exact match. If not found, returns the next larger item</li>
1064-
</ul></td>
1065-
<td>Searches a range or an array, and then returns the item corresponding to the first match it finds. If no match exists, then XLOOKUP can return the closest (approximate) match.</td>
1066-
</tr>
1067-
<tr>
1068-
<td><b>INDEX</b><br>added in v4.3</td>
1069-
<td>=INDEX(array, row_num, [column_num]), <br><br> where:
1057+
<td><b>MATCH</b><br>added in v4.3</td>
1058+
<td>=MATCH(lookup_value, lookup_array, [match_type]), <br><br> where:
10701059
<ul>
1071-
<li><i>array</i> - a range of cells or an array constant;</li>
1072-
<li><i>row_num</i> - the row position in the reference or array;</li>
1073-
<li><i>column_num</i> - optional, the column position in the reference or array.</li>
1060+
<li><i>lookup_value</i> - the value that you want to match in <i>lookup_array</i>;</li>
1061+
<li><i>lookup_array</i> - the range of cells;</li>
1062+
<li><i>match_type</i> - optional (1 by default):<br>1- finds the largest value that is less than or equal to <i>lookup_value</i><br>0 - finds the value that is exactly equal to <i>lookup_value</i><br>-1 - finds the smallest value that is greater than or equal to <i>lookup_value</i></li>
10741063
</ul></td>
1075-
<td>Returns the value at a given location in a range or array.</td>
1064+
<td>Searches for a specified item in a range of cells, and then returns the relative position of that item in the range.</td>
10761065
</tr>
10771066
<tr>
10781067
<td><b>VLOOKUP</b><br>added in v4.3</td>
@@ -1086,15 +1075,26 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b).
10861075
<td>Looks up a value in a vertical table by matching on the first column</td>
10871076
</tr>
10881077
<tr>
1089-
<td><b>HLOOKUP</b><br>added in v4.3</td>
1090-
<td>=HLOOKUP(lookup_value, table_array, row_index, [range_lookup]), <br><br> where:
1078+
<td><b>XLOOKUP</b><br>added in v4.3</td>
1079+
<td>=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode]), <br><br> where:
10911080
<ul>
10921081
<li><i>lookup_value</i> - the value to search for;</li>
1093-
<li><i>table_array</i> - the table from which to retrieve a value;</li>
1094-
<li><i>column_index_num</i> - the row number in the table from which to retrieve a value;</li>
1095-
<li><i>range_lookup</i> - optional (1 by default):<br>0 - exact match, 1 - approximate match</li>
1082+
<li><i>lookup_array</i> - the array or range to search;</li>
1083+
<li><i>return_array</i> - the array or range to return;</li>
1084+
<li><i>if_not_found</i> - optional, if a valid match is not found, returns the [if_not_found] text you supply;</li>
1085+
<li><i>match_mode</i> - optional (0 by default):<br>0 - Exact match<br>-1 - Exact match. If not found, returns the next smaller item<br>1 - Exact match. If not found, returns the next larger item</li>
10961086
</ul></td>
1097-
<td>Looks up a value in a horizontal table</td>
1087+
<td>Searches a range or an array, and then returns the item corresponding to the first match it finds. If no match exists, then XLOOKUP can return the closest (approximate) match.</td>
1088+
</tr>
1089+
<tr>
1090+
<td><b>XMATCH</b><br>added in v4.3</td>
1091+
<td>=XMATCH(lookup_value, lookup_array, [match_mode]), <br><br> where:
1092+
<ul>
1093+
<li><i>lookup_value</i> - the value that you want to match in <i>lookup_array</i>;</li>
1094+
<li><i>lookup_array</i> - the range of cells;</li>
1095+
<li><i>match_mode</i> - optional, 0 - exact match (default), -1 - exact match or next smallest, 1 - exact match or next larger</li>
1096+
</ul></td>
1097+
<td>Performs a lookup and returns a position in vertical or horizontal ranges.</td>
10981098
</tr>
10991099
</tbody>
11001100
</table>

0 commit comments

Comments
 (0)