Use the LOOKUP function to find data quickly

Returns a value in a vector or array. The function LOOKUP has two syntactic forms: vector and array.

Tip: The values of LOOKUP_vector must be sorted in ascending order:… -2, -1, 0, 1, 2,… , A-Z, FALSE, TRUE;

Otherwise, the function LOOKUP cannot return the correct result. The text is case insensitive.

First, vector form

A vector is a region that contains only one row or column.

The vector form of the function LOOKUP is to look for a value in a single-row or single-column region (vector).

It then returns the value of the same position in the second single-row or single-column area.

This form of the function LOOKUP can be used if you need to specify the region that contains the value to be looked up.

Another form of the LOOKUP function is to automatically look up a value in the first column or row.

grammar

LOOKUP(lookup_value,lookup_vector,result_vector)

■ Lookup_value is the value that the function LOOKUP looks for in the first vector.

lookup_value can be a number, text, logical value, or a name or reference containing a numeric value.

■ Lookup_vector is a region that contains only one or one column. The values of lookup_vector can be text, numeric, or logical.

■ Result_vector contains only one or one column of the area, the size must be the same as the lookup_vector.

Instructions

■ If LOOKUP cannot find lookup_value, it looks for the maximum value in the lookup_vector that is less than or equal to lookup_value.

■ If lookup_value is less than the minimum value in lookup_vector, LOOKUP returns the error value #N/A.

Two, array form

The array form of the function LOOKUP looks for the specified value in the first row or column of the array.

It then returns the value at the same position in the last row or column.

This form of the function LOOKUP can be used if the value you want to look for is in the first row or column of the array.

Other forms of the function LOOKUP can be used when you need to specify the position of a column or row.

grammar

LOOKUP(lookup_value,array)

Lookup_value is the value that the function LOOKUP looks for in the array, which can be a number, text, logical value, or a name or reference containing a value.

Instructions

■ If LOOKUP cannot find lookup_value, it uses the largest value in the array that is less than or equal to lookup_value.

■ If lookup_value is less than the minimum value of the first row or column (depending on the dimension of the array), the function LOOKUP returns the error value #N/A.

Array is a range of cells containing text, numeric, or logical values that are compared with lookup_value.

The array form of the function LOOKUP is very similar to the functions HLOOKUP and VLOOKUP.

The difference is that the function HLOOKUP looks for lookup_value in the first row and the function VLOOKUP looks for lookup_value in the first column.

The function LOOKUP looks up the dimension of the array.

■ If the array contains an area of large width and small height (that is, more columns than rows), the function LOOKUP looks for lookup_value on the first row.

■ If the array is square, or contains an area with a large height and a small width (that is, more rows than columns), the function LOOKUP looks in the first column

lookup_value.

■ Functions HLOOKUP and VLOOKUP allow indexing by row or column, while function LOOKUP always selects the last value of a row or column.

I want to create a clean, concise and efficient office reference manual, in order to maintain a good reference experience, I did not add any third-party advertisements in my blog, of course, if you are willing, you can watch the following video, it can bring me some income, so that I can better maintain the server to provide higher quality service, thank you for your help and support.

You can choose any link below to watch my videos and I will earn some money to strengthen the site and resist DDOS attacks that may happen at any time, thank you for your support!
(Please note: Please do not maliciously click on links or video ads to increase invalid traffic, as this can result in lower or no revenue.)

Learn to consult the manual video

(Will be released in the later period with the consult the manual article, please pay attention.)

My Febspot video list (Learn after-school relaxation videos)

https://suu.us/sponsor

My Febspot video home page

https://www.febspot.com/leet4477/