LEFT_TEXT
Stay organized with collections
Save and categorize content based on your preferences.
Returns a number of characters from the beginning of a specified string.
Sample usage
LEFT_TEXT(Campaign, 6)
Syntax
LEFT_TEXT( X, length )
Parameters
X - a field or expression of any type.
length - The number of characters to include in the substring. length can be a field, an expression, or a literal value.
Examples
| Example formula |
Input |
Output |
LEFT_TEXT(Campaign, 6) |
Summer Sale |
Summer |
LEFT_TEXT(Campaign, 3) |
Summer Sale |
Sum |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-29 UTC.
[null,null,["Last updated 2026-07-29 UTC."],[],[]]