STARTSWITH

Returns true if a property or string starts with a value, and returns false otherwise.

Syntax

=STARTSWITH(value, test)

Arguments

ArgumentTypeDescription
valueStringThe value to check for the starting string
testStringThe value to look for

Examples

=STARTSWITH("xyz", "x")true
Tests whether the string "xyz" starts with "x".

=STARTSWITH("xyz", "a")false
Tests whether the string "xyz" starts with "a".

=STARTSWITH("xyz", "z")false
Tests whether the string "xyz" starts with "z".

=STARTSWITH(@"Property 1", "abc")true
Tests whether the shape data property @"Property 1" ("abcdef") starts with the string "abc".