हिंदी

Explain Array form of LOOKUP function.

Advertisements
Advertisements

प्रश्न

Explain Array form of LOOKUP function.

स्पष्ट कीजिए
Advertisements

उत्तर

The array form of LOOKUP looks for lookup_value in the first row or first column of a given array and returns the entry from the same location in the last row or column.

Syntax: LOOKUP(lookup_value, array). The function compares lookup_value to the values in the array's first row (if the array is wider than tall) or first column (if the array is taller than wide); when it finds the position, it returns the value from the last row or column in that position. Because the match is approximate (using nearest match behaviour), the lookup range should be sorted in ascending order to ensure reliable results.

Example: Given array A1:C2 where A1:C1 = {10, 20, 30} and A2:C2 = {“Ten”,“Twenty”,“Thirty”}, the formula = LOOKUP(20, A1:C2) searches the first row, finds 20 in column 2, and returns “Twenty” from the last row (A2:C2).

The array form is less flexible (it requires sorted data and only returns values from the last row/column); Microsoft prefers VLOOKUP/HLOOKUP (or the current XLOOKUP) for clearer, safer lookup behaviour.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) 67/5/1

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×