search
HomeSoftware TutorialOffice SoftwareHow to use the lookup function_How to use the lookup function

The function of lookup function is eye-catching and curious. The editor of PHP, Xigua, keeps abreast of the pulse of the times, and hereby provides this valuable guide to developers, analyzing the use of the lookup function in a simple and easy-to-understand manner. The following content will analyze the mechanism of the lookup function in detail, usage examples and common application scenarios to help you easily master this convenient tool.

1. Ordinary search (single condition)

Find the corresponding value based on the cell content

=LOOKUP(1,0/(B3:B11=E3), C3:C11).

How to use the lookup function_How to use the lookup function

2. Ordinary search (multiple conditions)

Find the corresponding value according to the target condition, and add the corresponding condition to the condition of 1

=LOOKUP(1,0/(A3:A11=E3)*(B3:B11=F3),C3:C11).

How to use the lookup function_How to use the lookup function

3. Find the content of the last Chinese character

Use the Chinese characters that are sorted by the first letter of the Chinese character to search, generally use the Chinese characters starting with Z to search

【Example】Find the last Chinese character content: character

=LOOKUP("在",B:B).

How to use the lookup function_How to use the lookup function

4. Find the last number

Use a number greater than the current search column as the search value

[Example] Find the last number content: Combat power

=LOOKUP(1000,C:C).

How to use the lookup function_How to use the lookup function

5. Find the last non-empty cell

Use the first ordinary search, and add [""] to the area condition, which represents any non-empty cell Cell

=LOOKUP(1,0/(C3:C13""),C3:C13).

How to use the lookup function_How to use the lookup function

6. Interval search

When the order of numbers is sorted, interval search can be performed

Find commission points based on performance interval

=LOOKUP(E4,B:C).

How to use the lookup function_How to use the lookup function

7. Search the full name based on the abbreviation

Use the formula combination with the FIND function to achieve

[Example] Search for the country of Wu by searching for the string position Sun Quan's combat power

=LOOKUP(9^9,FIND(D3,A3:A11),B3:B11).

How to use the lookup function_How to use the lookup function

8. Search for the abbreviation based on the full name

Also use FIND to search for strings

[Example] Find the combat effectiveness of Sun Quan of Wu Kingdom

=LOOKUP(9^9,FIND(A3:A11,D3),B3:B11).

How to use the lookup function_How to use the lookup function

The above is the detailed content of How to use the lookup function_How to use the lookup function. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:zol. If there is any infringement, please contact admin@php.cn delete
How to use SUMIF function in Excel with formula examplesHow to use SUMIF function in Excel with formula examplesMay 13, 2025 am 10:53 AM

This tutorial explains the Excel SUMIF function in plain English. The main focus is on real-life formula examples with all kinds of criteria including text, numbers, dates, wildcards, blanks and non-blanks. Microsoft Excel has a handful o

IF function in Excel: formula examples for text, numbers, dates, blanksIF function in Excel: formula examples for text, numbers, dates, blanksMay 13, 2025 am 10:50 AM

In this article, you will learn how to build an Excel IF statement for different types of values as well as how to create multiple IF statements. IF is one of the most popular and useful functions in Excel. Generally, you use an IF statem

How to sum a column in Excel - 5 easy waysHow to sum a column in Excel - 5 easy waysMay 13, 2025 am 09:53 AM

This tutorial shows how to sum a column in Excel 2010 - 2016. Try out 5 different ways to total columns: find the sum of the selected cells on the Status bar, use AutoSum in Excel to sum all or only filtered cells, employ the SUM function

How to make and use Pivot Table in ExcelHow to make and use Pivot Table in ExcelMay 13, 2025 am 09:36 AM

In this tutorial you will learn what a PivotTable is, find a number of examples showing how to create and use Pivot Tables in all version of Excel 365 through Excel 2007. If you are working with large data sets in Excel, Pivot Table comes

Excel SUMIFS and SUMIF with multiple criteria – formula examplesExcel SUMIFS and SUMIF with multiple criteria – formula examplesMay 13, 2025 am 09:05 AM

This tutorial explains the difference between the SUMIF and SUMIFS functions in terms of their syntax and usage, and provides a number of formula examples to sum values with multiple AND / OR criteria in Excel 365, 2021, 2019, 2016, 2013,

How You Can Use Wildcards in Microsoft Excel to Refine Your SearchHow You Can Use Wildcards in Microsoft Excel to Refine Your SearchMay 13, 2025 am 01:59 AM

Excel wildcards: a powerful tool for efficient search and filtering This article will dive into the power of wildcards in Microsoft Excel, including their application in search, formulas, and filters, and some details to note. Wildcards allow you to perform fuzzy matching, making it more flexible to find and process data. *Wildcards: asterisks () and question marks (?)** Excel mainly uses two wildcards: asterisk (*) and question mark (?). *Asterisk (): Any number of characters** The asterisk represents any number of characters, including zero characters. For example: *OK* Match the cell containing "OK", "OK&q

Excel IF function with multiple conditionsExcel IF function with multiple conditionsMay 12, 2025 am 11:02 AM

The tutorial shows how to create multiple IF statements in Excel with AND as well as OR logic. Also, you will learn how to use IF together with other Excel functions. In the first part of our Excel IF tutorial, we looked at how to constru

How to calculate percentage in Excel - formula examplesHow to calculate percentage in Excel - formula examplesMay 12, 2025 am 10:28 AM

In this tutorial, you will lean a quick way to calculate percentages in Excel, find the basic percentage formula and a few more formulas for calculating percentage increase, percent of total and more. Calculating percentage is useful in m

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.