The FINDB function is closely related to the FIND function. FINDB locates one text string within a second text string, and returns the number of the starting position of the first text string from the first character of the second text string.

FINDB takes 2 required arguments and 1 optional argument:

Syntax: FINDB(find_text, within_text, [start_num])

#1)
Using the FINDB function:
#2)
The arguments for the FINDB function are:
Argument Required? Description
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.
#3)
Quite a few more things:
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 "A21829.Apples". To find the number of the first "A" in the second part of the text string, set start_num equal to 7 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 8. 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.

Summary

The FINDB function locates one text string within a second text string, and returns the number of the starting position of the first text string from the first character of the second text string.
comments powered by Disqus