Test Index

Computerised Accounting Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 64 of 105
Marks: +1, -0
Explain the two syntax forms of 'Lookup' function.
[CBSE 2024 67/1/1]
Solution:  
The LOOKUP function has two syntax forms: the vector form and the array form.
(i) Vector form
It looks for a value in a one-row or one-column range (a vector) and returns the value from the same position in a second one-row or one-column range.
Syntax: LOOKUP(lookup_value, lookup_vector, result_vector)
• lookup_value: the value LOOKUP searches for in the first vector; it can be a number, text, a logical value or a name that refers to a value.
• lookup_vector: a range of only one row or one column; its values can be text, numbers or logical values (arranged in ascending order).
• result_vector: a range of only one row or one column, of the same size as lookup_vector.
e.g. =LOOKUP(4.19, A2:A6, B2:B6) finds 4.19 in A2:A6 and returns the value in the same row of column B.
(ii) Array form
It looks for the value in the first row or first column of an array and returns a value from the same position in the last row or last column of the array.
Syntax: LOOKUP(lookup_value, array)
• lookup_value: the value searched for in the array.
• array: the range of cells containing text, numbers or logical values to be compared with lookup_value.
• 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 smaller than the smallest value in the first row or column, it returns the #N/A error value.
• If the array has more columns than rows, LOOKUP searches the first row; otherwise it searches the first column.
© examsnet.com
Advertisements
Go to Question: