This article describes the formula syntax and usage of the FIND function in GoFormz.
FIND locates 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.
FIND(textToFind, textToSearch, [startNumber])
The FIND function syntax has the following arguments:
- textToFind (Required) The text you want to find.
- textToSearch (Required) The text containing the text you want to find.
- startNumber (Optional) Specifies the character at which to start the search. The first character in within_text is character number 0. If you omit start_num, it is assumed to be 0.
FIND is case sensitive and doesn't allow wildcard characters.
If textToFind is "" (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 0).
textToFind cannot contain any wildcard characters.
If textToFind does not appear in textToSearch, the field will remain blank
Use startNumber 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 startNumber equal to 7 so that the serial-number portion of the text is not searched. FIND begins with character 7, finds textToFind at the next character, and returns the number 8. FIND always returns the number of characters from the start of textToSearch, counting the characters you skip if startNumber is greater than 0.
Position of the first "M" in the value "Miriam McGovern"
Position of the first "m" in the value "Miriam McGovern"
Position of the first "M" in the value "Miriam McGovern", starting with the third character
Create three fields with the following names an Default Values:
Field 1: Ceramic Insulators #124-TD45-87
Field 2: Copper Coils #12-671-6772
Field 3: Variable Resistors #116010
=MID([Field 1],0,FIND(" #",[Field 1],0)-1)
Extracts text from position 0 to the position of "#" in "Field 1" (Ceramic Insulators)
=MID([Field 2],0,FIND(" #",[Field 2],0)-1)
Extracts text from position 0 to the position of "#" in "Field 2" (Copper Coils)
=MID([Field 3],1,FIND(" #",[Field 3],0)-1)
Extracts text from position 0 to the position of "#" in "Field 3" (Variable Resistors)
Updated over 1 year ago