Excel find function number

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 Excel Starter 2010 More…Less

This article describes the formula syntax and usage of the FIND and FINDB functions in Microsoft Excel.

Description

FIND and FINDB locate one text string within a second text string, and return the number of the starting position of the first text string from the first character of the second text string.

Important: 

  • These functions may not be available in all languages.

  • FIND is intended for use with languages that use the single-byte character set (SBCS), whereas FINDB is intended for use with languages that use the double-byte character set (DBCS). The default language setting on your computer affects the return value in the following way:

  • FIND always counts each character, whether single-byte or double-byte, as 1, no matter what the default language setting is.

  • FINDB counts each double-byte character as 2 when you have enabled the editing of a language that supports DBCS and then set it as the default language. Otherwise, FINDB counts each character as 1.

The languages that support DBCS include Japanese, Chinese (Simplified), Chinese (Traditional), and Korean.

Syntax

FIND(find_text, within_text, [start_num])

FINDB(find_text, within_text, [start_num])

The FIND and FINDB function syntax has the following arguments:

  • Find_text    Required. The text you want to find.

  • Within_text    Required. The text containing the text you want to find.

  • Start_num    Optional. Specifies the character at which to start the search. The first character in within_text is character number 1. If you omit start_num, it is assumed to be 1.

Remarks

  • FIND and FINDB are case sensitive and don’t allow wildcard characters. If you don’t want to do a case sensitive search or use wildcard characters, you can use SEARCH and SEARCHB.

  • If find_text is «» (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 1).

  • Find_text cannot contain any wildcard characters.

  • If find_text does not appear in within_text, FIND and FINDB return the #VALUE! error value.

  • If start_num is not greater than zero, FIND and FINDB return the #VALUE! error value.

  • If start_num is greater than the length of within_text, FIND and FINDB return the #VALUE! error value.

  • Use start_num to skip a specified number of characters. Using FIND as an example, suppose you are working with the text string «AYF0093.YoungMensApparel». To find the number of the first «Y» in the descriptive part of the text string, set start_num equal to 8 so that the serial-number portion of the text is not searched. FIND begins with character 8, finds find_text at the next character, and returns the number 9. FIND always returns the number of characters from the start of within_text, counting the characters you skip if start_num is greater than 1.

Examples

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

Miriam McGovern

Formula

Description

Result

=FIND(«M»,A2)

Position of the first «M» in cell A2

1

=FIND(«m»,A2)

Position of the first «M» in cell A2

6

=FIND(«M»,A2,3)

Position of the first «M» in cell A2, starting with the third character

8

Example 2

Data

Ceramic Insulators #124-TD45-87

Copper Coils #12-671-6772

Variable Resistors #116010

Formula

Description (Result)

Result

=MID(A2,1,FIND(» #»,A2,1)-1)

Extracts text from position 1 to the position of «#» in cell A2 (Ceramic Insulators)

Ceramic Insulators

=MID(A3,1,FIND(» #»,A3,1)-1)

Extracts text from position 1 to the position of «#» in cell A3 (Copper Coils)

Copper Coils

=MID(A4,1,FIND(» #»,A4,1)-1)

Extracts text from position 1 to the position of «#» in cell A4 (Variable Resistors)

Variable Resistors

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Purpose 

Get location substring in a string

Return value 

A number representing the location of substring

Usage notes 

The FIND function returns the position (as a number) of one text string inside another. If there is more than one occurrence of the search string, FIND returns the position of the first occurrence. When the text is not found, FIND returns a #VALUE error. Also note, when find_text is empty, FIND returns 1. FIND does not support wildcards, and is always case-sensitive. Use the SEARCH function to find the position of text without case-sensitivity and with wildcard support. 

Basic Example

The FIND function is designed to look inside a text string for a specific substring. When FIND locates the substring, it returns a position of the substring in the text as a number. If the substring is not found, FIND returns a #VALUE error. For example:

=FIND("p","apple") // returns 2
=FIND("z","apple") // returns #VALUE!

Note that text values entered directly into FIND must be enclosed in double-quotes («»).

Case-sensitive

The FIND function always case-sensitive:

=FIND("a","Apple") // returns #VALUE!
=FIND("A","Apple") // returns 1

TRUE or FALSE result

To force a TRUE or FALSE result, nest the FIND function inside the ISNUMBER function. ISNUMBER returns TRUE for numeric values and FALSE for anything else. If FIND locates the substring, it returns the position as a number, and ISNUMBER returns TRUE:

=ISNUMBER(FIND("p","apple")) // returns TRUE
=ISNUMBER(FIND("z","apple")) // returns FALSE

If FIND doesn’t locate the substring, it returns an error, and ISNUMBER returns FALSE. 

Start number

The FIND function has an optional argument called start_num, that controls where FIND should begin looking for a substring. To find the first match of «the» in any combination of upper or lowercase, you can omit start_num, which defaults to 1:

=FIND("x","20 x 30 x 50") // returns 4

To start searching at character 5, enter 4 for start_num:

=FIND("x","20 x 30 x 50",5) // returns 9

Wildcards

The FIND function does not support wildcards. See the SEARCH function.

If cell contains

To return a custom result with the SEARCH function, use the IF function like this:

=IF(ISNUMBER(FIND(substring,A1)), "Yes", "No")

Instead of returning TRUE or FALSE, the formula above will return «Yes» if substring is found and «No» if not.

Notes

  • The FIND function returns the location of the first find_text in within_text.
  • The location is returned as the number of characters from the start.
  • Start_num is optional and defaults to 1.
  • FIND returns 1 when find_text is empty.
  • FIND returns #VALUE if find_text is not found.
  • FIND is case-sensitive but does not support wildcards.
  • Use the SEARCH function to find a substring with wildcards.

Функция НАЙТИ (FIND) в Excel используется для поиска текстового значения внутри строчки с текстом и указать порядковый номер буквы с которого начинается искомое слово в найденной строке.

Содержание

  1. Что возвращает функция
  2. Синтаксис
  3. Аргументы функции
  4. Дополнительная информация
  5. Примеры использования функции НАЙТИ в Excel
  6. Пример 1. Ищем слово в текстовой строке (с начала строки)
  7. Пример 2. Ищем слово в текстовой строке (с заданным порядковым номером старта поиска)
  8. Пример 3. Поиск текстового значения внутри текстовой строки с дублированным искомым значением

Что возвращает функция

Возвращает числовое значение, обозначающее стартовую позицию текстовой строчки внутри другой текстовой строчки.

Синтаксис

=FIND(find_text, within_text, [start_num]) — английская версия

=НАЙТИ(искомый_текст;просматриваемый_текст;[нач_позиция]) — русская версия

Аргументы функции

  • find_text (искомый_текст) — текст или строка которую вы хотите найти в рамках другой строки;
  • within_text (просматриваемый_текст) — текст, внутри которого вы хотите найти аргумент find_text (искомый_текст);
  • [start_num] ([нач_позиция]) — число, отображающее позицию, с которой вы хотите начать поиск. Если аргумент не указать, то поиск начнется сначала.

Дополнительная информация

  • Если стартовое число не указано, то функция начинает поиск искомого текста с начала строки;
  • Функция НАЙТИ чувствительна к регистру. Если вы хотите сделать поиск без учета регистра, используйте функцию SEARCH в Excel;
  • Функция не учитывает подстановочные знаки при поиске. Если вы хотите использовать подстановочные знаки для поиска, используйте функцию SEARCH в Excel;
  • Функция каждый раз возвращает ошибку, когда не находит искомый текст в заданной строке.

Примеры использования функции НАЙТИ в Excel

Пример 1. Ищем слово в текстовой строке (с начала строки)

Функция НАЙТИ в Excel

На примере выше мы ищем слово «Доброе» в словосочетании «Доброе Утро». По результатам поиска, функция выдает число «1», которое обозначает, что слово «Доброе» начинается с первой по очереди буквы в, заданной в качестве области поиска, текстовой строке.

Telegram Logo Больше лайфхаков в нашем Telegram Подписаться

Обратите внимание, что так как функция НАЙТИ в Excel чувствительна к регистру, вы не сможете найти слово «доброе» в словосочетании «Доброе утро», так как оно написано с маленькой буквы. Для того, чтобы осуществить поиска без учета регистра следует пользоваться функцией SEARCH.

Пример 2. Ищем слово в текстовой строке (с заданным порядковым номером старта поиска)

Функция НАЙТИ в Excel

Третий аргумент функции НАЙТИ указывает позицию, с которой функция начинает поиск искомого значения. На примере выше функция возвращает число «1» когда мы начинаем поиск слова «Доброе» в словосочетании «Доброе утро» с начала текстовой строки. Но если мы зададим аргумент функции start_num (нач_позиция) со значением «2», то функция выдаст ошибку, так как начиная поиск со второй буквы текстовой строки, она не может ничего найти.

Если вы не укажете номер позиции, с которой функции следует начинать поиск искомого аргумента, то Excel по умолчанию начнет поиск с самого начала текстовой строки.

Пример 3. Поиск текстового значения внутри текстовой строки с дублированным искомым значением

Функция НАЙТИ в Excel

На примере выше мы ищем слово «Доброе» в словосочетании «Доброе Доброе утро». Когда мы начинаем поиск слова «Доброе» с начала текстовой строки, то функция выдает число «1», так как первое слово «Доброе» начинается с первой буквы в словосочетании «Доброе Доброе утро».

Но, если мы укажем в качестве аргумента start_num (нач_позиция) число «2» и попросим функцию начать поиск со второй буквы в заданной текстовой строке, то функция выдаст число «6», так как Excel находит искомое слово «Доброе» начиная со второй буквы словосочетания «Доброе Доброе утро» только на 6 позиции.

The FIND function of Excel searches and returns the position of a character within a text string. This position is returned as a numeric value, which represents the first instance of such character. The FIND function can also be informed the exact position from where the search should begin.

For example, the formula =FIND(“w”,“sunflower”) returns 7. This implies that the character “w” is at the seventh position of the text string “sunflower.”

The FIND function searches within the text string beginning from left to right. The purpose of using the FIND function is to ascertain whether a particular substring occurs in a specific cell or not. The FIND can also be used with other Excel functionsExcel functions help the users to save time and maintain extensive worksheets. There are 100+ excel functions categorized as financial, logical, text, date and time, Lookup & Reference, Math, Statistical and Information functions.read more to extract certain characters of a text string.

The FIND function is categorized as a Text function of Excel.

Table of contents
  • What is FIND Function in Excel?
    • Syntax of the FIND Function of Excel
    • How to use the FIND Function in Excel?
      • Example #1–Find a Single Character Within a Text String
      • Example #2–Count the Number of Times a Single Character Occurs in a Range
      • Example #3–Count the Text Strings Ending With Certain Characters
      • Example #4–Extract Certain Characters From Each Cell of a Range
    • Relevance and Uses of the FIND Function of Excel
    • The Key Points Related to the FIND Function of Excel
    • Frequently Asked Questions
    • FIND Function in Excel Video
    • Recommended Articles

Syntax of the FIND Function of Excel

The syntax of the FIND function of Excel is shown in the following image:

FIND Formula in Excel

The FIND function of Excel accepts the following arguments:

  • Find_text: This is the character (or substring) whose position is to be searched. It can be supplied as a reference to a cell containing the substring or as a direct substring enclosed within double quotation marks.  
  • Within_text: This is the text string within which the character (or substring) needs to be searched. It can be supplied either directly to the FIND function or as a reference to a cell containing the text string. Enclose the text string within double quotation marks when supplied directly to the function.
  • Start_num: This is the character from which the search shall begin. It is supplied as a numeric value to the FIND function. For instance, if this argument is 3, the search begins from the third character of the “within_text” argument.

The arguments “find_text” and “within_text” are required, while “start_num” is optional. If the “start_num” argument is omitted, the search begins from the first character of the “within_text” argument.

How to use the FIND Function in Excel?

Let us consider some examples to understand the working of the FIND function in Excel.

You can download this FIND Function Excel Template here – FIND Function Excel Template

Example #1–Find a Single Character Within a Text String

The following image shows a text string and substring in cells A3 and B3 respectively. Within the text string (leopard), we want to find the substring (a) by using the FIND function of Excel. Supply the “find_text” and “within_text” arguments as:

  1. Cell references
  2. Direct strings

Consider the “start_num” argument to be 1 in both cases.

FIND Function Example 1

a. The steps to use the FIND function with cell referencesCell reference in excel is referring the other cells to a cell to use its values or properties. For instance, if we have data in cell A2 and want to use that in cell A1, use =A2 in cell A1, and this will copy the A2 value in A1.read more are listed as follows:

Step 1: Supply the cell references of the substring and the text string (in the stated sequence) to the FIND function. So, enter the following formula in cell C3.

“=FIND(B3,A3)”

Notice that the “start_num” argument is omitted since it is 1.

FIND Function Example 1-1

Step 2: Press the “Enter” key. The output appears, as shown in the following image. Hence, the character “a” is the fifth letter of the word “leopard.”

FIND Function Example 1-2

b. The steps to use the FIND function with direct strings are listed as follows:

Step 1: Supply the substring and the text string (in the stated sequence) to the FIND function directly. So, enter the following formula in cell C4.

“=FIND(“a”, “Leopard”)”

Since the “start_num” argument is 1, it has been omitted.

FIND Function Example 1-3

Step 2: Press the “Enter” key. The output in cell C4 is 5. This is shown in the following image. Hence, whether the first two arguments are entered as cell references or direct strings, the output of the FIND function is the same.

Result 1-4

Example #2–Count the Number of Times a Single Character Occurs in a Range

The following image shows some random text strings in the range A3:A6. We want to find the number of times the character (or substring) “i” appears in this range. Use the FIND, ISNUMBER, and SUMPRODUCT functions of Excel.

FIND Function Example 2

The steps to find the character count by using the stated functions are listed as follows:

Step 1: Enter the following formula in cell B3.

“=SUMPRODUCT(- -(ISNUMBER(FIND(“i”,A3:A6))))”

FIND Function Example 2-1

Step 2: Press the “Enter” key. The output in cell B3 is 3. This is shown in the following image. Hence, the character “i” appears thrice in the range A3:A6.

FIND Function Example 2-2

Explanation: In the formula entered in step 1, the FIND function is processed first as it is the innermost function. Next, the ISNUMBERISNUMBER function in excel is an information function that checks if the referred cell value is numeric or non-numeric.read more and SUMPRODUCTThe SUMPRODUCT excel function multiplies the numbers of two or more arrays and sums up the resulting products.read more functions are processed. The entire formula works as follows:

  • The FIND function looks for the character “i” in each cell of range A3:A6. This character is found in cells A3, A4, and A6. It is not found in cell A5. If the character “i” is found in a cell, the FIND function returns its position. However, if this character is not found in a cell, the FIND function returns the “#VALUE!” error. So, the FIND function returns an array of four values {3;5;#VALUE!;5 }.
  • The array returned by the FIND function becomes an argument of the ISNUMBER function. If the output of the FIND function is numeric, the ISNUMBER returns “true.” However, if the output of the FIND function is an error, the ISNUMBER function returns “false.” So, the ISNUMBER returns an array of Boolean values {TRUE;TRUE;FALSE;TRUE}.
  • The unary operator or the double negative symbol (- -) converts every “true” and “false” output of the ISNUMBER function into 1 and 0 respectively. So, the unary operator returns a vertical array of four numbers {1;1;0;1}.
  • The array ({1;1;0;1}) returned by the unary operator becomes an argument of the SUMPRODUCT function. Since it is a single array of numbers, the SUMPRODUCT sums it. So, the sum returned by the SUMPRODUCT function is 3.

Hence, the final output of the given formula (entered in step 1) is 3.

Notice that three cells of the range A3:A6 contained a single instance of the character “i.” However, had there been multiple occurrences of this character in cells A3, A4 or A6, the FIND function would have returned its first instance. Therefore, the final output would still have been 3.

Note 1: The ISNUMBER function checks whether a value (or a cell containing a value) is numeric or not. The SUMPRODUCT function multiplies the numbers of two or more arrays and sums up the resulting products. In case of a single array, the SUMPRODUCT function adds the numbers and returns their sum.

For the syntax of the ISNUMBER and SUMPRODUCT functions, click the hyperlinks given in the preceding explanation.

Note 2: Rather than the FIND function, one could have used the COUNTIFThe COUNTIF function in Excel counts the number of cells within a range based on pre-defined criteria. It is used to count cells that include dates, numbers, or text. For example, COUNTIF(A1:A10,”Trump”) will count the number of cells within the range A1:A10 that contain the text “Trump”
read more
function. The formula for counting the character “i” in the range A3:A6 would be =COUNTIF(A3:A6,“*i*”). This formula would also have returned the output 3.

Like the FIND function, the COUNTIF would also have returned 3 in case of multiple occurrences of character “i” in cells A3, A4 or A6. However, the COUNTIF is not case-sensitive, unlike the FIND function.

Example #3–Count the Text Strings Ending With Certain Characters

The following image shows a list of names in column A. We want to find the number of names ending with “ansh” or “anka” in the range A3:A10. Use the FIND, ISNUMBER, and SUMPRODUCT functions of Excel.

Example 3

The steps to count specific names by using the stated functions are listed as follows:

Step 1: Enter the following formula in cell B3.

“=SUMPRODUCT(- -((ISNUMBER(FIND(“ansh”,A3:A10))+ISNUMBER(FIND(“anka”,A3:A10)))>0))

Example 3-1

Step 2: Press the “Enter” key. The output in cell B3 is 4. This is shown in the following image.

Hence, a total of 4 names end with “ansh” or “anka.” Two names end with the former substring (Priyansh and Divyansh) and two names end with the latter substring (Priyanka and Divyanka).

Example 3-2

Explanation: The formula entered in step 1 is explained as follows:

  • The FIND function processes each name of the range A3:A10. If “ansh” or “anka” are present in a cell, the FIND function returns the position of the first letter of these substrings. However, if these substrings are not present in a cell, the FIND function returns the “#VALUE!” error. So, the FIND function returns two arrays {#VALUE!;#VALUE!;5;5;#VALUE!;#VALUE!;#VALUE!; #VALUE!} and {5;5;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!}.
  • The ISNUMBER processes the outputs returned by the FIND function. If the output of the FIND function is numeric, the ISNUMBER returns “true,” otherwise returns “false.” So, the ISNUMBER function returns two arrays {FALSE;FALSE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE} and {TRUE;TRUE;FALSE;FALSE;FALSE;FALSE;FALSE;FALSE}.
  • The two arrays returned by the ISNUMBER function are added due to the “plus” operator placed between them. The array returned after addition and the application of the “greater than zero” expression is {TRUE;TRUE;TRUE;TRUE;FALSE;FALSE;FALSE;FALSE}.
  • The unary operator (- -) converts each “true” and “false” output of the preceding array to 1 and 0 respectively. So, the unary operator returns the final array of 8 values {1;1;1;1;0;0;0;0}.
  • The SUMPRODUCT function sums the single array returned by the unary operator. Hence, this function returns the output 4.

Note 1: The “greater than zero” expression checks whether each output of the two arrays (returned by the ISNUMBER function) is greater than zero or not. This expression is useful in case one requires logical values (true and false) as the output.

This expression returns “true” if either of the two outputs (of the two arrays returned by the ISNUMBER function) is a number. It returns “false” if both outputs are errors.

Note 2: For knowing more about the ISNUMBER and SUMPRODUCT functions, refer to the hyperlinks (within the explanation) or “note 1” of the preceding example (example #2).

The following image shows some incomplete statements containing a hash symbol (#) in column C. From each statement, we want to extract this symbol, the word following it, and the trailing space in a separate column. Use the MID and FIND functions of Excel.

Example 4

The steps to extract the given substrings using the stated functions are listed as follows:

Step 1: Enter the following formula in cell D3.

 “=MID(C3,FIND(“#”,C3),FIND(” “,(MID(C3,FIND(“#”,C3),LEN(C3)))))”

Example 4-1

Step 2: Press the “Enter” key. The output in cell D3 is “#Wedding .” It includes a space at the end. The output is shown in the following image.

FIND Function Example 4-2

Step 3: Drag the formula of cell D3 till cell D5 by using the fill handle. The output of the range D3 to D5 is shown in the following image.

Hence, the hash symbol, the following word, and the trailing space have been extracted from each statement of column C.

Example 4-3

Explanation: In the given formula (entered in step 1), each function on the right is processed, followed by the subsequent function on the left. The LEN functionThe Len function returns the length of a given string. It calculates the number of characters in a given string as input. It is a text function in Excel as well as an inbuilt function that can be accessed by typing =LEN( and entering a string as input.read more, being the innermost (or rightmost), is processed first. The entire formula works as follows:

  • The LEN function counts the total number of characters in cell C3. So, the formula “=LEN(C3)” returns 27. This count includes 23 letters, 3 spaces, and 1 hash symbol.
  • Next, the FIND function searches the position of the hash symbol in cell C3. So, the formula “=FIND(“#”,C3)” returns 10. This implies that the hash symbol is at the tenth position of the statement given in cell C3.
  • The outputs of the FIND and LEN functions become the arguments of the MID functionThe mid function in Excel is a text function that finds strings and returns them from any mid-part of the spreadsheet. read more. So, the MID function processes the formula “=MID(C3,10,27)” and returns “#Wedding in Jaipur.”
  • The output of the MID function becomes the argument of the FIND function. The FIND function searches for a space character in the string “#Wedding in Jaipur.” So, the formula “=FIND(“ ”,“#Wedding in Jaipur”) returns 9. This implies that the first instance of the space character is at the ninth position of the given text string (#Wedding in Jaipur).
  • The formula “=FIND(“#”,C3)” again returns 10.
  • The outputs of the two FIND functions (in the preceding two pointers) become the arguments of the MID function. The formula “=MID(C3,10,9)” returns the string beginning from the tenth character and consisting of nine characters in total. So, this formula returns “#Wedding ” including a single space at the end of the word.

Likewise, the outputs in cells D4 and D5 have been returned by Excel.

Note 1: The LEN function counts all the characters in a cell. This includes letters, numbers, spaces, and special characters. The MID function helps extract a certain number of characters from the middle of the string. The position to begin extraction from can be specified to the MID function.

For the syntax of the LEN and MID functions, click the hyperlinks given in the preceding explanation.

Note 2: In the formula “=MID(C3,10,27),” the “start_num” argument is 10 and the “num_chars” argument is 27. If the sum of these two arguments exceeds the total length of the string, the MID function returns the characters beginning from the “start_num” till the end of the entire string.

Therefore, since 37 (“start_num” is 10 and “num_chars” is 27) exceeds 27 (length of the entire string), the MID function returns the character beginning from the tenth place (#) till the end of the string (Jaipur). So, the MID function returns “#Wedding in Jaipur.”

Relevance and Uses of the FIND Function of Excel

The FIND function of Excel is helpful in the following situations:

  • It helps extract the relevant characters, thereby removing the unwanted substrings of a text string.
  • It helps extract the words preceding or succeeding a specific character.
  • It assists in searching the nth occurrence of a character.
  • It can be combined with other functions of Excel to find the number of times a character appears in a range.

The important points related to the FIND function of Excel are listed as follows:

  • The FIND function looks for the first occurrence of the “find_text” in the “within_text” argument.
  • The “find_text” and “within_text” arguments can be supplied as cell references or direct text strings. To supply these arguments as direct text strings, they must be enclosed within double quotation marks.
  • If the “find_text” argument contains more than one character, the FIND function returns the position of the first character in the “within_text” argument.
  • If the “find_text” argument is an empty string (“”), the FIND function returns 1.
  • The FIND function is case-sensitive and does not support the usage of wildcard characters.
  • The FIND function returns the “#VALUE!” error in the following cases:
    • The “find_text” is not found in the “within_text” argument
    • The “start_num” argument is zero or negative
    • The “start_num” argument contains more characters than the “within_text” argument

Frequently Asked Questions

1. Define the FIND function of Excel.

The FIND function of Excel returns the position of a character within a text string. The first instance of such character is returned. In case multiple characters are searched within a text string, the position of the first searched character is returned.

The FIND function of Excel returns a numeric value. The function can be told the position from where the search should begin.

Note: For the syntax of the FIND function of Excel, refer to the heading “syntax of the FIND function of Excel” of this article.

2. Is the FIND function of Excel case-sensitive? Explain with the help of an example.

Yes, the FIND function of Excel is case-sensitive. This implies that this function treats the lowercase and uppercase letters differently.

For example, the formula =FIND(“m”,“smile”) looks for the lowercase “m” in the text string “smile.” It returns 2, signifying that “m” is the second letter of the given text string.

However, the formula =FIND(“M”,“smile”) looks for the uppercase “M” in the text string “smile.” It returns the “#VALUE!” error since “M” could not be found in the given text string. Had the text string been supplied as “SMILE,” the FIND function would have again returned 2.

Note: For a case-insensitive function, use the SEARCH in place of the FIND function of Excel.

3. How can the FIND function be used with the LEFT function of Excel?

The LEFT function helps extract the specified number of characters from the leftmost side of a text string. The FIND and LEFT functions can be used together to extract a substring from the left side of a cell. The formula for the same is stated as follows:

“=LEFT(textstring,FIND(character,textstring)-1)”

The “textstring” is the cell reference containing the entire text string. The substring preceding the “character” is extracted. The “-1” ensures that the “character” is not included in the output.

Therefore, if the substring “rose” needs to be extracted from cell A1 containing “rose flower,” the formula used is “=LEFT(A1,FIND(” “,A1)-1).” The “-1” of the formula helps exclude the trailing space of the substring extracted. Had the strings “rose” and “flower” been separated by a hyphen, we would have used the hyphen (“-”) as the “character.”

Note: The given formula should be entered in Excel without the beginning and ending double quotation marks.

FIND Function in Excel Video

Recommended Articles

This has been a guide to the FIND function in Excel. Here we discuss how to use FIND Formula in excel along step by step examples. You may also look at these useful functions in Excel–

  • Excel Find and SelectFind and Select in Excel is a feature available on the Home Tab of Excel that facilitates the user to quickly discover a specific text or value in the given data. The shortcut key to instantly use this feature is Ctrl+F.read more
  • VBA FIND FunctionVBA Find gives the exact match of the argument. It takes three arguments, one is what to find, where to find and where to look at. If any parameter is missing, it takes existing value as that parameter.read more
  • Row Function in ExcelThe row function in Excel is a worksheet function that displays the current row index number of the selected or target cell. The syntax to use this function is as follows: =ROW( Value ).read more
  • VLOOKUP Excel FunctionThe VLOOKUP excel function searches for a particular value and returns a corresponding match based on a unique identifier. A unique identifier is uniquely associated with all the records of the database. For instance, employee ID, student roll number, customer contact number, seller email address, etc., are unique identifiers.
    read more

If you use Excel often, you’re already aware of its numerous useful functions. Many of these formulas perform calculations or analyse data. However, if you want to make life easier when working with large data sets, you should know about the FIND function. What is the syntactical structure? How do you use the function? And what’s the difference between FIND and FINDB? You can find this out and more in the following article.

Contents

  1. What is the Excel FIND formula used for?
  2. Excel FIND function – the syntax explained
  3. The Excel FIND function in practice
    1. FIND & FIND: Nested groups
    2. FIND & ISNUMBER: True or false statements
    3. FIND & MID: Extracting characters
    4. FIND & IF: If, then, otherwise
    5. FIND & IF: If, then, otherwise

What is the Excel FIND formula used for?

It’s easy to lose track of things when working in large spreadsheets with hundreds of rows. Like all other Office products, Excel has a built-in search function. But that isn’t always what you actually need. The search function automatically searches the entire document, meaning you can’t narrow down the range. More importantly, you can’t use the returned values in other functions. You can’t forward the search result because the search function operates only on the interface.

But if you want to search within specific cells and integrate the search directly into your worksheet, you can use the FIND function. Simply enter the word or phrase and the function to find the location of the first occurrence of your search term in the text string (meaning the text in the cell).

The FIND function in Excel is a building block with a range of further applications. Combine FIND with other functions to unlock its full potential. For example, you can use it to see whether a certain term appears in your worksheet or to extract specific parts of a text string.

Tip

You can also use VLOOKUP as an alternative search function in Excel.

Excel FIND function – the syntax explained

The syntax of FIND isn’t very complex. In the standard version, you only have to specify two arguments: What do you want to find? And where do you want to find it?

You can also customise your search to start at a specific character:

You can use the parametres to specify various information:

  • Find_text: This is the text string you want to find. You have to enclose the text in quotes. You can also specify the cell containing the text. This parametre is always case-sensitive.
  • Within_text: This parametre specifies the text within which you want to search. You typically specify a cell containing the text. You could also type the text directly into the formula. In that case, you also have to enclose it in quotes.
  • Start_num: You use a numerical value to specify the character where the search is to start. This parametre is optional. If you don’t enter this value, the search will start at position 1.

Note

The FIND function is case-sensitive and does not support wildcards. To get around this restriction, you can use the SEARCH function.

Excel returns a number as the result. This value tells you where the search string begins, meaning the first occurrence from left to right. If the term occurs again in the cell, the FIND function will disregard it by itself. To find further positions, you have to use nesting. The returned value counts every single character, including spaces. The number indicates the position of the first character of the returned string. This means that the first letter or number of the search is counted in the result.

Besides FIND, Excel also offers the FINDB function. Both functions achieve the same results and have identical syntax. They only differ in the character sets they support. FIND only works with single-byte character sets (SBCS). This includes the Latin alphabet. If you use Asian characters from Chinese, Japanese and Korean (CJK), use FINDB because it supports double-byte character sets (DBCS) for these languages. Each character is encoded in two bytes, so counting is adjusted accordingly.

Tip

To work faster in Excel, you should learn the most important Excel shortcuts.

The Excel FIND function in practice

For many users, the purpose of this function is not always immediately apparent. Finding the position of a search term within a text doesn’t seem all that useful at first. But the true power of this function is revealed when used in combination with other functions.

FIND & FIND: Nested groups

Suppose we want to find the second, third or nth occurrence of the search term rather than the first.

=FIND(Searchtext;Text;FIND(Searchtext;Text)+1)

This formula shows how you can use the optional third parametre. In the start_num position of this formula, we once again insert the formula that returns the position of the first occurrence. This value plus one indicates the position at which you want the search to begin. If you then want to find a third position, nest the function again, and so on.

FIND & ISNUMBER: True or false statements

The FIND function in Excel allows you to form a true or false statement from the specified position: Does the text contain the search term or not?

=ISNUMBER(FIND("Teddybear";B2))

The ISNUMBER function returns the value TRUE if the result of FIND is a number, otherwise it will return FALSE. Since the FIND function in Excel specifies the position of the term as a whole number, the ISNUMBER function can respond to it. If the text does not contain the search term, FIND returns an error message, which of course is not a number, and ISNUMBER responds accordingly with FALSE.

You may also be interested in seeing where search terms appear. You can do this if you’ve entered data in multiple cells, such as a list of products sold. You can add this formula (like any other formula) to the conditional formatting rules. This allows you to select any sales entry related to teddy bears, for example.

Conditional formatting in Excel with FIND function
You can have Excel display specific cells by combining the FIND function with the ISNUMBER function.

FIND & MID: Extracting characters

Product codes can be very long and confusing, so you may want to extract a certain number of characters from a string. Excel provides three functions for this purpose: LEFT, RIGHT and MID. These are very useful on their own, but the formulas are even more powerful when combined with FIND. Suppose your product codes always follow a specific pattern consisting of letters, numbers, and hyphens: ABCDE-A-12345-T. You want to extract the numerical part in the middle.

However, because the string does not have a fixed length, you can’t use the basic extract functions. These functions require a specific number of characters, which you can’t easily provide in this case. But thanks to the hyphens, you can use the FIND function. It gives you the position information you need.

Since there are multiple hyphens in the string, you have to nest the FIND function. In this example, we’re assuming that the number part always contains five characters.

FIND & IF: If, then, otherwise

Product codes can be very long and confusing, so you may want to extract a certain number of characters from a string. Excel provides three functions for this purpose: LEFT, RIGHT and MID. These are very useful on their own, but the formulas are even more powerful when combined with FIND. Suppose your product codes always follow a specific pattern consisting of letters, numbers, and hyphens: ABCDE-A-12345-T. You want to extract the numerical part in the middle.

However, because the string does not have a fixed length, you can’t use the basic extract functions. These functions require a specific number of characters, which you can’t easily provide in this case. But thanks to the hyphens, you can use the FIND function. It gives you the position information you need.

Since there are multiple hyphens in the string, you have to nest the FIND function. In this example, we’re assuming that the number part always contains five characters.

=PART(A2;FIND("-"; A2;FIND("-"; A2;FIND("-";A2)+1))+1;5)
Combining the MID and FIND functions
The FIND function in Excel can help you extract a specific number of characters from a cell.

However, if the length is not defined, further nesting of FIND functions can be helpful. Since the string you want to find ends in a hyphen, you can search for it to determine the length.

=PART(A2;FIND("-";A2;FIND("-";A2;FIND("-";A2)+1))+1; FIND("-";A2;FIND("-";A2;FIND("-";A2)+1)+1)-FIND("-";A2;FIND("-";A2;FIND("-";A2)-1))-3)

Admittedly, this formula is very confusing, but it actually manages to achieve the goal. No matter how many characters you place between the two hyphens, Excel will always extract the correct characters using the FIND function.

Worksheet in Excel with FIND and MID function
Highly nested, but effective: This is how you extract the exact range you want.

FIND & IF: If, then, otherwise

You can also easily combine FIND with IF. For example, you may want a certain action to happen if a specific string occurs in the cell. You can do this by combining IF and FIND: If the string appears, this will happen, otherwise that will happen. A problem may arise if FIND returns an error if the string does not appear. Therefore, you also have to use the ISERROR function.

=IF(ISNUMBER(MATCH(B2,A:A,0)),1,0)

If the FIND function doesn’t find the search term (“bear” in this example), it returns an error message. For ISERROR, this means the condition is met and IF returns the first option: No, the search term does not appear. However, if the FIND function finds the string, it returns a number, which does not meet the condition for ISERROR. The alternative is returned: Yes, the search term appears.

Worksheet in Excel with FIND function and IF function
You can combine FIND, IF and ISERROR to find parts of words.

Summary

FIND is a helpful function, especially when combined with other functions. It has a wide range of combination options and different applications. This small but useful function can help you solve many problems you encounter when creating formulas in Excel.

HiDrive Cloud Storage with IONOS!

Based in Germany, HiDrive secures your data in the cloud so you can easily access it from any device!

Highly secure

Shared access

Available anywhere

Related articles

VLOOKUP in Excel

Faster with Excel: the VLOOKUP function explained

It can often be incredibly time-consuming to search for a specific entry in an Excel table by hand, which is where VLOOKUP comes into play. This practical function allows you to find the exact value for a specific search criterion. The VLOOKUP function is indispensable for managing price lists, members directories, and inventory catalogues. To ensure you can benefit from this practical function,…

Faster with Excel: the VLOOKUP function explained

Excel if-then statements

Excel if-then: how the IF function works

Excel’s if-then statement is one of its most helpful formulas. In many situations, you can create a logical comparison: if A is true, then B, otherwise C. To use this useful if-then formula in Excel, you first need to understand how it works and precisely how to use it. For example, which syntax rules does the IF function follow, and how can you extend the formula?

Excel if-then: how the IF function works

IFERROR function in Excel

Using IFERROR function in Excel to avoid problems

Error messages are never fun. That’s why Excel has the IFERROR function. It allows you to catch error messages and replace them with a custom message or a value. Most importantly, the helpful IFERROR function ensures that your whole formula doesn’t fall apart if you make a typo.

Using IFERROR function in Excel to avoid problems

SUMIF in Excel

The Excel: SUMIF function explained

Get more out of Excel: SUMIF makes it easier to work with balance sheets and analyses. Add only the values you need – completely automatically. From simple calculations to complex formulas, it’s all possible with the SUMIF function in Excel. How do you use the function? And what does the syntax look like?

The Excel: SUMIF function explained

Excel SEARCH function

Excel SEARCH: tips for using the Excel SEARCH function

The SEARCH function in Excel gives you the ability to quickly perform complex analyses of large data sets, clean up your data, and stay on top of your documents. When used correctly, the Excel SEARCH function is a highly effective tool. In this overview, you’ll learn more about how to use this convenient feature.

Excel SEARCH: tips for using the Excel SEARCH function

Понравилась статья? Поделить с друзьями:
  • Excel find from left
  • Excel find formulas in cells
  • Excel find column with value
  • Excel find column for value
  • Excel find cell with value