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).
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).
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).
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).
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).
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).
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).
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).
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!

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

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

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

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

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,

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

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

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
