How to use the LOOKUP function in Excel - Data search function

The LOOKUP function in Excel has many uses. This article will show you how to use the LOOKUP function in Excel simply and quickly.

The LOOKUP function in Excel has many uses. This article will show you how to use the LOOKUP function in Excel simply and quickly.

 

Searching in a Microsoft Excel spreadsheet is fairly easy using the keyboard shortcut Ctrl + F. However, you can use more sophisticated tools to find and extract data based on specific values.

Microsoft Excel provides many functions to help you do this easily, and LOOKUP is just one of them.

What is the LOOKUP function in Microsoft Excel?

The LOOKUP function in Excel references a cell to match a value in another row or column based on that cell, giving the user a corresponding result.

Some common ways to use the LOOKUP function:

  • Find the exact or approximate value.
  • Data can be searched both vertically and horizontally.
  • Easier to use and no need to select the entire table.

Concepts you need to know in the LOOKUP function formula

  • Lookup - To find a specific value in a data table.
  • Lookup Value - A search value
  • Return Value - The value in the same location but a different row or column, depending on whether you want to look up the data horizontally or vertically.
  • Master Table - The table where you receive the appropriate value.

The Lookup function can be used in two forms: vector and array. Each form has a different formula and application scenario. This article will guide you on how to use the Lookup function in Excel.

  • How to use the Vlookup function in Excel
  • How to use the Hlookup function in Excel
  • How to combine the Sumif and Vlookup functions in Excel

Instructions on using the Lookup function in Excel

The vector lookup function is used to find a value within a range of one row or one column, and return the value from the same position within a second range of one row or one column. This vector lookup is useful when you want to define the range containing the values ​​you want to compare, or when the search range contains multiple values ​​or values ​​that may change.

 

Array search is used to find a specified value in the first column or row of an array, and then return the value from the same position in the last column or row of the array. Array search is used when the search range has few values, the values ​​remain unchanged, and they must be sorted.

1. Use the Lookup function as a vector.

The formula is =Lookup(Value to search for,Range containing the value to search for,Range containing the result value) .

The value to be searched for can be a number, text, logical value, name, or a reference to a value.

The search area contains text, numbers, or logical values. The values ​​within this area must be sorted in ascending order to avoid errors.

The range containing the result value can be a single row or a single column.

Note:

  • If the desired value is not found, the smallest value within the range containing the desired value will be used.
  • If the value to be found is smaller than the smallest value in the range containing the value to be found, the error #N/A will be displayed.

We will apply this to the table below. For example, if you want to buy a phone in the price range of 7,500,000 VND, what type of phone would you look for? And if you want to find a phone in the price range of 13 million VND, what type would you look for?

Step 1:

In the result input field for phones with a range of 7,500,000 users, enter the formula =LOOKUP(7500000,C2:C6,B2:B6) and press Enter. If using numbers, do not use delimiters between the units digits.

 

The result will show the phone model as Lenovo.

Step 2:

To find phone models within the range of 13 million, we enter the formula =LOOKUP(13000000,C2:C6,B2:B6) into the result cell and then press Enter.

The value 13,000,000 is not within the data range, so the Lookup function will search for a value less than 13,000,000.

As a result, we will have a list of recommended iPhone models to buy within the price range of 13 million VND.

 

If you need to find a phone in the 5 million VND price range, you will get a #N/A error as shown below. This is because the value 5,000,000 is less than the minimum value in the table, which is 6,000,000. The search result will only show a price range between 6,000,000 and 12,000,000 VND.

2. Use the Lookup function as an array.

The syntax is =LOOKUP(Value to search, Search range) .

The value to be found is the value that the Lookup function needs to search for within an array.

The search area is the range of cells containing the text, numbers, or logical values ​​that you want to find.

Note:

  • If the desired value is not found, the nearest smaller value within the search range will be used.
  • If the value to be found is smaller than the smallest value in the first row or column, the Lookup function will return the #N/A error.
  • If the array has more columns than rows, the Lookup function will search for the desired value in the first column.
  • The values ​​in the search area must be sorted in ascending order.

We will process the data table below with sales achieved and bonuses for sales milestones achieved. Calculate bonuses for employees who sold 15 products and for employees who sold 59 and 65 products, respectively.

Step 1:

In the cell showing the bonus result for the employee who sold 15 products, enter the formula =LOOKUP(15,B2:C6) .

The reward results will be as shown below.

Step 2:

Continuing in the result cell for the bonus for the employee who sold 59 products, you enter the formula =LOOKUP(59,B2:C6) .

 

The bonus for an employee who sells 59 products will still be 600,000. Although the number 59 is not in the table, it will still have value.

Step 3:

In the result box, the reward for the product is 65. We enter the formula =LOOKUP(65,B2:C6) and press Enter, and the result will be 800,000 as shown in the image.

If a user searches for a reward for someone who has purchased 14 products, an error will be displayed because the value being searched for is smaller than the smallest value in the table.

Things to note when using the LOOKUP function in Excel

Use the LOOKUP function to look up a value in a column or row range, and retrieve the same value from a different column or row range. The LOOKUP function comes in two forms: vector and array.

The LOOKUP function accepts three arguments: lookup_value, lookup_vector, and result_vector. The first argument, lookup_value, is the value to search for. The second argument, lookup_vector, is a row or column to search. LOOKUP assumes lookup_vector is sorted in ascending order. The third argument, result_vector, is a result row or column. Result_vector is optional.

When result_vector is provided, LOOKUP identifies a match in lookup_vector and returns the corresponding value from result_vector. If result_vector is not provided, LOOKUP returns the matching value found in lookup_vector.

LOOKUP has an efficient way of handling specific problems, especially in data retrieval. Therefore, you can rest assured when using it.

See more:

  • How to use the Concatenate function in Excel
  • How to use the SUMPRODUCT function in Excel
  • How to use the AVERAGEIF function in Excel

Good luck with your project!

Related posts
Other Program articles
  • VLOOKUP function: How to use it and specific examples

    hàm vlookup được sử dụng khá phổ biến trong excel. dưới đây là chi tiết cách dùng hàm vlookup của microsoft excel.
  • The LEFT function: Extracts characters from the left side of a string in Excel.

    hàm left trong excel là gì? cách dùng hàm left trong excel như thế nào? hãy cùng tipsmake.com.com tìm hiểu nhé!
  • PowerPoint 2016: Reviewing your presentation

    trước khi gửi bài thuyết trình, người dùng có thể yêu cầu người khác review bài thuyết trình đó và đưa ra ý kiến phản hồi về các slide. người tạo ra bài thuyết trình thậm chí có thể làm việc với một cộng tác viên để cùng nhau tạo ra một bài thuyết trình.
  • PowerPoint 2016: Working with Charts

    biểu đồ là một công cụ mà người dùng có thể sử dụng để biểu đạt dữ liệu bằng đồ họa. việc sử dụng một biểu đồ trong một bài thuyết trình giúp khán giả hiểu rõ hơn ý nghĩa đằng sau các con số.
  • PowerPoint 2016: Working with Shapes

    hình dạng là một cách tuyệt vời để làm cho bài thuyết trình trở nên thú vị hơn. powerpoint cung cấp cho người dùng rất nhiều hình dạng khác nhau để lựa chọn và chúng có thể được tùy chỉnh cho phù hợp với nhu cầu riêng của từng người.
  • PowerPoint 2016: Image Formatting in PowerPoint

    có nhiều cách để định dạng hình ảnh trong slide show powerpoint. các công cụ hình ảnh trong powerpoint giúp bạn dễ dàng cá nhân hóa và sửa đổi hình ảnh theo những cách thú vị.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup