Text Formulas
=concat(<input1>, [input2], ...)
Concatenates all given inputs from left to right.
Argument | Required (Y/N) | Description |
Input | Y | The input to which following inputs will be appended |
Input | N | The second and any additional inputs to append to the first input |
Example 1:=concat($"FirstName", "-", $"LastName")
="Albert-Einstein"
Example 2:=concat("a","b","C","D")
="abCD"
Formula
=find(<input>, <searchTerm>, [startPosition])
Description
Returns the zero-based index of the given search term or null if it is not found.
Arguments
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | The string to search within |
searchTerm | Y | The search term to search for |
startPosition | N | The one-based index to start searching from. Optional, defaults to 1. |
Examples
Example 1:=find("tacocat", "taco")
=>0
Example 2:=find("tacocat", "cat")
=>4
Example 3:=find("tacocat", "dog")
=>null
Example 4:=find("tacocat", "taco", 2)
=>null
Example 5:=find("ab ab ab", "ab", 3)
=>4
=rfind(<input>, <searchTerm>, [startPosition])
Returns the one-based index of the last occurrence of the given search term or null if it is not found.
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | The string to search within |
searchTerm | Y | The search term to search for |
startPosition | N | The one-based index to start searching from. Optional, defaults to 1. |
Example 1:=rfind("ab ab ab", "ab")
=>7
Example 2:=rfind("abc xyz abc", "abc", 5)
=>9
Example 3:=rfind("abc xyz", "abc", 5)
=> (null)
Formula
=len(<input>)
Description
Returns the length of a given input.
Arguments
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | Input to find the length of |
Examples
Example 1:=len("tacocat")
=>7
Example 2:=len("")
=>0
Formula
=replace(<input>, <searchTerm>, <replacement>, [instances])
=substitute(<input>, <searchTerm>, <replacement>, [instances])
Description
Replaces any found occurrences of the search term with the replacement string. If instances are specified, only those instances will be replaced. If instances are not specified, all instances will be replaced.
Arguments
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | The string to search and replace within |
searchTerm | Y | Substring to search for |
replacement | Y | Substring to replace occurrences of the search term with |
instances | N | An optional list of instances to replace, starting at 1 |
Examples
Example 1:=replace("tacocat", "taco", "burrito")
=>"burritocat"
Example 2:=replace("tacocat", "taco", "")
=>"cat"
Example 3:=replace("tacocat", "cat", "dog")
=>"tacodog"
Example 4:=replace("tacocat", "dog", "horse")
=>"tacocat"
Example 5:=replace("aaaaaa", "a", "b", 1, 2, 4)
=>"bbabaa"
=substring(<input>, <start>, <count>)
=mid(<input>, <start>, <count>)
Returns a substring of the given input starting at the given start index and continuing for the given count of characters.
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | The string to search within |
start | Y | The index at which to begin the substring, starting at 1 |
count | Y | The number of characters to take |
Example 1:=substring("tacocat", 1, 4)
=>"taco"
=mid("tacocat", 1, 4)
=>"taco"
Example 2:=substring("tacocat", 5, 3)
=>"cat"
=skip()
Skips the given row.
Argument | Required (Y/N) | Description |
N/A | N/A | N/A |
Example 1:=if(equals($"Cost", 0), skip(), $"Cost")
= [skips row OR lists cost]
Skipping a row means the row will not be included in the output.
=tocamelcase(<input>)
Converts the input to camel case.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to camel case. |
Example 1:=tocamelcase("First Name")
=>"firstName"
Example 2:=tocamelcase("Product Identifier")
=>"productIdentifier"
=toclasscase(<input>)
Converts the input to class case.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to class case |
Example 1:=toclasscase("first name")
=>"FirstName"
Example 2:=toclasscase("product identifier")
=>"ProductIdentifier"
=tokebabcase(<input>)
Converts the input to kebab case, replacing spaces between words with a "-" and converts all text to lower case.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to kebab case |
Example 1:=tokebabcase("First Name")
=>"first-name"
Example 2:=tokebabcase("product description")
=>"product-description"
Example 3:=tokebabcase("Product ID")
=>"product-id"
=tolowercase(<input>)
Converts the text input to lower case.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to lower case |
Example 1:=tolowercase("First Name")
=>"first name"
Example 2:=tolowercase("Product Identifier")
=>"product identifier"
=toscreamingsnakecase(<input>)
Converts the text input to screaming snake case by replacing all lowercase with uppercase and replacing spaces with underscores.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to screaming snake case |
Example 1:=toscreamingsnakecase("First Name")
=>"FIRST_NAME"
Example 2:=toscreamingsnakecase("Product identifier")
=>"PRODUCT_IDENTIFIER"
=tosentencecase(<input>)
Converts the text input to sentence case by replacing the first letter of the input text with an uppercase letter and replacing dashes or underscores with spaces.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to sentence case |
Example 1:=tosentencecase("first Name")
=>"First name"
Example 2:=tosentencecase("PRODUCT_IDENTIFIER")
=>"Product identifier"
=tosnakecase(<input>)
Converts the text input to snake case by replacing all uppercase with lowercase and replacing spaces with underscores.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to snake case |
Example 1:=tosnakecase("First NAME")
=>"first_name"
Example 2:=tosnakecase("Product-ID")
=>"product_id"
=totitlecase(<input>)
Converts the text input to title case by replacing all first letters of words with uppercase and replacing any underscores and dashes with spaces.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to title case |
Example 1:=totitlecase(currentdatetime(, "the day of the week is %a")
=>"The Day Of The Week Is Fri"
Example 2:=totitlecase("product_identifier")
=>"Product Identifier"
=totraincase(<input>)
Converts the text input to train case by replacing all first letters of words with uppercase and replacing any underscores and spaces with dashes.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to train case |
Example 1:=totraincase("First name")
=>"First-Name"
Example 2:=totraincase("Product_identifier")
=>"Product-Identifier"
=touppercase(<input>)
Converts the text input to upper case.
Argument | Required (Y/N) | Description |
Input | Y | Text input to be converted to upper case |
Example 1:=touppercase("First Name")
=>"FIRST NAME"
Example 2:=touppercase("Product-identifier")
=>"PRODUCT-IDENTIFIER"
=topropercase(<input>)
=toProper(<input>)
Makes the first character of the input and any other characters that follow a non-letter character uppercase, and the rest of the characters lowercase.
Argument | Required (Y/N) | Description |
---|---|---|
Input | Y | The input to be converted to proper case |
Example 1:=topropercase("first NAmE")
=>"First Name"
Example 2:=topropercase(" 8Days U9il NN-L. ")
=>"8Days U9Il Nn-L."
Formula
=trim(<input>)
Description
Trims whitespace around a string. Does not trim whitespace in between characters.
Arguments
Argument | Required (Y/N) | Description |
---|---|---|
input | Y | String to remove surrounding whitespace from |
Examples
Example 1:=trim(" taco ")
=>"taco"
Example 2:=trim(" taco cat ")
=>"taco cat"
Example 3:=trim("taco cat")
=>"taco cat"
=truncate(<input>, <number>)
=left(<input>, <number>)
Truncates text input to a specific length cutting off excess characters from the end.
Left is used the same as truncate but more recognizable to Excel users
Argument | Required (Y/N) | Description |
Input | Y | Text input to be truncated |
Number | Y | The number of digits from the end to truncate the Input to |
Example 1:=truncate("tacocat",4)
=>"taco"
=left("tacocat",4)
=>"taco"
Example 2:=truncate("Wed Mar 07 2018 19:57:53 GMT-0500 (Eastern Standard Time)", 33)
=>"Wed Mar 07 2018 19:57:53 GMT-0500"
=rtruncate(<input>, <number>)
=right(<input>, <number>)
Truncates a given input to a specific length, cutting off excess characters from the beginning.
Right is used the same as truncate but more recognizable to Excel users
Argument | Required (Y/N) | Description |
Input | Y | Text input to be truncated |
Number | Y | The number of digits from the beginning to truncate the Input to |
Example 1:=rtruncate("tacocat", 4)
=>"ocat"
=right("tacocat", 4)
=>"ocat"
Example 2:=rtruncate($"Date", 4)
=delimit(<input>, <delimiter>, <position>)
Splits a string into an array of strings using the given delimiter. Returns the string at the given position in the array, starting at one. If the position is out of bounds, returns null.
Argument | Required (Y/N) | Description |
---|---|---|
Input | Y | Text input to be split |
Delimiter | Y | The character or string to split by |
Position | Y | The index of the split output to take, starting at 1 |
Example 1:=delimit("a,b,c", ",", 1)
=>"a"
Example 2:=delimit("a,,,,b", ",", 2)
=>""
Example 3:=delimit("a,b,c", ",", 5)
=>(null)
Last modified 1mo ago