FINDB

Description

FINDB searches for a string of text within another text string and returns the byte position at which the search string first occurs.

Syntax

FINDB ( search_text, text [, start_position] )

 

Parameter

Description

search_text

The text to find. If you specify a string consisting of a single space character (" "), FINDB matches the first byte in text.

text

The text to be searched.

start_position

The byte position in text where the search begins. The first byte in text is byte number 1. When you omit this argument, the default starting position is byte number 1.

Remarks

FINDB is case-sensitive. You cannot use wildcard characters in the search_text.

Examples

This function returns 12:

FINDB("time", "There's no time like the present")

This function returns 19:

FINDB("4", "Aisle 4, Part 123-4-11", 9)

 Note:

If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.