Documentation for smfWord() function

Description

A utility function to extract nth word from a string using a delimiter.

Syntax

=smfWord(Haystack, Occurrence, [Delimiter], [Convert], [Reverse])

Parameters

Haystack = String to extract the word from.
Occurance = The nth word found surrounded by the delimiter.
Delimiter = Optional - Default is “ ”. String to delimit the Haystack into words. If a zero-length string is used; i.e., “”, Haystack will be returned.
Convert = Optional - Default is 0. If set to 1, function will attempt to convert the substring to a numeric value, for example convert “50K” to “50000”.
Reverse = Optional - Default is 0. If set to 1, function will retrieve the substring starting at the end of Haystack and work backwards.

Examples

Usage notes