Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Pie Chart
  • How to calculate average last N values in a table in Excel
  • How To Create Pareto Chart in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How to sum a total in multiple Excel tables

References

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Lookup entire row in Excel
  • Extract all partial matches in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • How to use Excel ROWS Function

Data Validations

  • Excel Data validation require unique number
  • How To Create Drop-down List in Excel
  • Excel Data validation date in specific year
  • Excel Data validation specific characters only
  • Excel Data validation number multiple 100

LOOKUP function: Description, Usage, Syntax, Examples and Explanation

by

What is Excel LOOKUP function ?

LOOKUP function  is one of the lookup and reference functions in Microsoft office Excel that is used to return a value from a range (one row or one column) or from an array. When you need to look in a single row or column and find a value from the same position in a second row or column, use LOOKUP function.

There are 2 different syntaxes for the LOOKUP function:

LOOKUP Function (Syntax #1)

In Syntax #1, the LOOKUP function searches for value in the lookup_range and returns the value in the result_rangethat is in the same position.

The syntax for the LOOKUP function in Microsoft Excel is:

LOOKUP( value, lookup_range, [result_range] )

LOOKUP formula explanation

value
The value to search for in the lookup_range.
lookup_range
A single row or single column of data that is sorted in ascending order. The LOOKUP function searches for value in this range.
result_range
Optional. It is a single row or single column of data that is the same size as the lookup_range. The LOOKUP function searches for the value in the lookup_range and returns the value from the same position in the result_range. If this parameter is omitted, it will return the first column of data.
Worked Example:   Two-column Lookup in Excel

Returns

The LOOKUP function returns any datatype such as a string, numeric, date, etc.
If the LOOKUP function can not find an exact match, it chooses the largest value in the lookup_range that is less than or equal to the value.
If the value is smaller than all of the values in the lookup_range, then the LOOKUP function will return #N/A.
If the values in the LOOKUP_range are not sorted in ascending order, the LOOKUP function will return the incorrect value.

Worked Example:   Get last match cell contains in Excel

Example of LOOKUP function

Example 1

Based on the Excel spreadsheet above, the following LOOKUP examples would return:

=LOOKUP(10251, A1:A6, B1:B6)
Result: "Pears"

=LOOKUP(10251, A1:A6)
Result: 10251

=LOOKUP(10246, A1:A6, B1:B6)
Result: #N/A

=LOOKUP(10248, A1:A6, B1:B6)
Result: "Apples"

LOOKUP Function (Syntax #2)

In Syntax #2, the LOOKUP function searches for the value in the first row or column of the array and returns the corresponding value in the last row or column of the array.

The syntax for the LOOKUP function in Microsoft Excel is:

LOOKUP( value, array )

Parameters or Arguments

value
The value to search for in the array. The values must be in ascending order.
array
An array of values that contains both the values to search for and return.
Worked Example:   Lookup latest price in Excel

Returns

The LOOKUP function returns any datatype such as a string, numeric, date, etc.
If the LOOKUP function can not find an exact match, it chooses the largest value in the lookup_range that is less than or equal to the value.
If the value is smaller than all of the values in the lookup_range, then the LOOKUP function will return #N/A.
If the values in the array are not sorted in ascending order, the LOOKUP function will return the incorrect value.

Example 2

Let’s look at some Excel LOOKUP function examples and explore how to use the LOOKUP function as a worksheet function in Microsoft Excel:

=LOOKUP("T", {"s","t","u","v";10,11,12,13})
Result: 11

=LOOKUP("Tech on the Net", {"s","t","u","v";10,11,12,13})
Result: 11

=LOOKUP("t", {"s","t","u","v";"a","b","c","d"})
Result: "b"

=LOOKUP("r", {"s","t","u","v";"a","b","c","d"})
Result: #N/A

=LOOKUP(2, {1,2,3,4;511,512,513,514})
Result: 512

Post navigation

Previous Post:

IF function: Description, Usage, Syntax, Examples and Explanation

Next Post:

SUM function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel AND Function
  • Check multiple cells are equal in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel NOT Function

Date Time

  • How to get Holiday Date from Year in Excel
  • How to show last updated date stamp in Excel
  • Add years to date in Excel
  • Count times in a specific range in Excel
  • Roll back weekday to Friday base on a particular date in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel

General

  • 231 Keyboard Shortcut Keys In Excel
  • How to calculate percent of goal in Excel
  • Subtotal invoices by age in Excel
  • Freeze and Unfreeze Panes in Excel
  • Creating and Opening an existing file in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning