Manuals/calci/FINDB
FINDB(Find_text,Within_text,Start_num)
where,
Find_text is the text string to find.
Within_text is the text containing the text you want to find.
Start_num specifies the character at which to start the search
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. FINDB is intended for use with languages that use the double-byte character set (DBCS).
If find_text is "" (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 1).
If Number_chars > length of text, it returns all of text.
If find_text does not appear in within_text, FINDB return the #ERROR value.
If start_num is not greater than zero, FINDB return the #ERROR value.
If start_num is greater than the length of within_text, FINDB return the #ERROR value
If you omit start_num, it is assumed to be 1.
FINDB
Lets see an example in (Column3Row1)
=FINDB(R1C1,R1C2,1)
FINDB("smith","th",1) returns 4
Consider another example in (Column3Row2)
=FINDB(R1C1,R1C2,7)
FINDB("smith","th",7) returns #ERROR
Column1 | Column2 | Column3 | Column4 | |
Row1 | smith | th | 4 | |
Row2 | #ERROR | |||
Row3 | ||||
Row4 | ||||
Row5 | ||||
Row6 |
TABLE3 | File:Calci1.gif | $ |