excel中函数查找图片_30天中30个Excel函数:23 –查找

excel中函数查找图片

Yesterday, in the 30XL30D challenge, we had a light day, with the N function, and learned that can return a number, based on a value. For day 23 in the challenge, we'll examine the FIND function. It's similar to the SEARCH function, which we saw on Day 18, but the FIND function is case sensitive.

昨天,在30XL30D挑战赛中,我们度过了轻松的一天,它具有N函数 ,并且学会了可以基于值返回数字。 在挑战的第23天,我们将检查FIND函数。 它类似于我们在第18天看到的SEARCH函数 ,但是FIND函数区分大小写。

NOTE: You can have all of the 30 Functions content in an easy-to-use single reference file -- the 30 Excel Functions in 30 Days eBook Kit ($10). So, let's take a look at the FIND information and examples, and if you have other tips or examples, please share them in the comments.

注意:您可以在一个易于使用的单个参考文件中获得这30个函数的全部内容-30天电子书工具包中30个Excel函数 (10美元)。 因此,让我们看一下FIND信息和示例,如果还有其他提示或示例,请在评论中分享。

功能23:查找 (Function 23: FIND)

The FIND function finds a text string, within another text string, and is case sensitive.

FIND函数在另一个文本字符串中查找一个文本字符串,并且区分大小写。

Find00

您如何使用FIND? (How Could You Use FIND?)

The FIND function can find text within another string, and is case sensitive. For example:

FIND函数可以在另一个字符串中查找文本,并且区分大小写。 例如:

  • Find start position of text in text string

    查找文本在文本字符串中的开始位置
  • Find exact values from a list

    从列表中查找确切值
  • Find street name in address

    在地址中找到街道名称

查找语法 (FIND Syntax)

The FIND function has the following syntax:

FIND函数具有以下语法:

    • find_text is the text that you're looking for.

      find_text是您要查找的文本。
    • within_text is the string that you're searching in.

      inside_text是您要搜索的字符串。
    • if start_num is omitted, the search starts with the first character

      如果省略了start_num,则搜索从第一个字符开始

    FIND(find_text,within_text,[start_num])

    FIND(find_text,within_text,[start_num])

查找陷阱 (FIND Traps)

  • The FIND function will return the position of the first matching string, and it is case sensitive. For a search that is not case sensitive, use the SEARCH function, which we saw later earlier the 30XL30D challenge.

    FIND函数将返回第一个匹配字符串的位置,并且区分大小写。 对于不区分大小写的搜索,请使用SEARCH功能,我们稍后会看到30XL30D挑战。
  • You can't use wildcard characters in the find_text string. For wildcards, use the SEARCH function.

    您不能在find_text字符串中使用通配符。 对于通配符,请使用SEARCH功能。

示例1:在文本字符串中查找文本 (Example 1: Find Text in a Text String)

To find specific text in a text string, you can use the FIND function. It is case sensitive, so in the screen shot below, the first two "i" characters are ignored, because they are lower case.

要查找文本字符串中的特定文本,可以使用FIND函数。 它区分大小写,因此在下面的屏幕截图中,前两个“ i”字符被忽略,因为它们是小写字母。

=FIND(B5,B2)

=查找(B5,B2)

To handle errors, if the text is not found, you can wrap the FIND function with IFERROR (in Excel 2003 or earlier, use IF and ISERROR).

要处理错误,如果找不到文本,则可以使用IFERROR包裹FIND函数(在Excel 2003或更早版本中,请使用IF和ISERROR)。

=IFERROR(FIND(B5,B2),"Not Found")

= IFERROR(FIND(B5,B2),“未找到”)

Find01

示例2:从列表中查找确切值 (Example 2: Find exact values from a list)

Because FIND is case sensitive, you can use it to find exact strings in another string. In this example, there are valid codes listed in column E. With the FIND function, we can identify the ID numbers in column B that contain one of the valid code strings.

由于FIND区分大小写,因此您可以使用它在另一个字符串中查找确切的字符串。 在此示例中,在E列中列出了有效的代码。使用FIND函数,我们可以在B列中标识包含有效代码字符串之一的ID号。

This formula must be array-entered, by pressing Ctrl + Shift + Enter =IF(OR(ISNUMBER(FIND($E$2:$E$4,B2))),"Yes","No")

必须按Ctrl + Shift + Enter = IF(OR(ISNUMBER(FIND($ E $ 2:$ E $ 4,B2))),“ Yes”,“ No”),此公式必须输入数组

Find02

示例3:在地址中找到街道名称 (Example 3: Find street name in address)

In the next example, most of the addresses in column B start with a street number. With the formula in column C, we check for a number in the first character. If it's a number, the FIND function locates the first space character, and the MID function returns all the text from the next character, to the end.

在下一个示例中,B列中的大多数地址都以街道号码开头。 使用C列中的公式,我们检查第一个字符中的数字。 如果是数字,则FIND函数查找第一个空格字符,MID函数返回从下一个字符到结尾的所有文本。

=IF(ISNUMBER(–LEFT(B2,1)),MID(B2,FIND(" ",B2)+1,LEN(B2)),B2)

= IF(ISNUMBER(–LEFT(B2,1)),MID(B2,FIND(“”,B2)+ 1,LEN(B2)),B2)

Find03

下载查找功能文件 (Download the FIND Function File)

To see the formulas used in today's examples, download the FIND function sample workbook. The file is zipped, and is in Excel 2007 file format.

要查看当今示例中使用的公式,请下载FIND函数示例工作簿 。 该文件已压缩,并且为Excel 2007文件格式。

观看查找视频 (Watch the FIND Video)

To see a demonstration of the examples in the FIND function sample workbook, watch this short Excel video tutorial - Locate Text With Excel FIND Function

要在FIND函数示例工作簿中观看示例的演示,请观看此简短的Excel视频教程-使用Excel FIND函数查找文本

演示地址

翻译自: https://contexturesblog.com/archives/2011/01/24/30-excel-functions-in-30-days-23-find/

excel中函数查找图片

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值