XLOOKUP function - learnit

Home Top Ad

Post Top Ad

Tuesday, September 28, 2021

XLOOKUP function

XLOOKUP function

To find items in a table or range by row, use the XLOOKUP function. For example, you could look up the price of an automotive part by the Employee, or you could find an employee's name based on their Price. You can use XLOOKUP to look for a search term in one column and return a result from the same row in another column, regardless of which side the return column is on.


Sytnax

The XLOOKUP function searches a range or an array for the first match and returns the item corresponding to that match. If there is no match, XLOOKUP can return the closest (approximate) match


=XLOOKUP(lookup_value,lookup_array,return_array,[if_not_found],[match_mode],[search_mode])

rgument Description
lookup_value
Required*
The value to search for
*If omitted, XLOOKUP returns blank cells it finds in lookup_array.
lookup_array
required
The array or range to search
return_array
required
The array or range to return
[if_not_found]
Optional
Where a valid match is not found, return the [if_not_found] text you supply.
If a valid match is not found, and [if_not_found] is missing, #N/A is returned.
[match_mode]
Optional
Specify the match type:
0 - Exact match. If none found, return #N/A. This is the default.
-1- Exact match. If none found, return the next smaller item.
1- Exact match. If none found, return the next larger item.
2 - A wildcard match where *, ?, and ~ have special meaning.
[search_mode]
Optional
Specify the search mode to use:
1 - Perform a search starting at the first item. This is the default.
-1 - Perform a reverse search starting at the last item.
2 - Perform a binary search that relies on lookup_array being sorted in ascending order. If not sorted, invalid results will be returned.
-2 - Perform a binary search that relies on lookup_array being sorted in descending order. If not sorted, invalid results will be returned.

Please Watching My Video is Below

No comments:

Post a Comment

Post Top Ad