EXPRESSIONS

How to use expressions to change the behavior of your apps.

Santiago Uribe Montoya avatar Tony Fader avatar Praveen Seshadri (CEO AppSheet) avatar +4
125 articles in this collection
Written by Santiago Uribe Montoya, Tony Fader, Praveen Seshadri (CEO AppSheet) and 4 others
Expression Types

Column Value Expressions

Write an expression to get a value from a specific column and row.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Conditional Expressions

How to use expressions so that behavior depends on a set of conditions.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated this week

Date and Time Expressions

Incorporate dates and times into the behavior of your app.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated this week

Dereference Expressions

Use a dereference expression to retrieve a field value from a referenced record.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Math Expressions

Calculate numeric values from other numeric values.
S
Written by Steve Coile
Updated over a week ago

List Expressions and Aggregates

List expressions use operators that result in a list or numeric value.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Text Expressions

Use text values to create keys, get a user's name or email, and determine the value of other expressions.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Yes/No Expressions

Write expressions where the result is either TRUE or FALSE.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Other Expressions

Expressions to modify text, create unique IDs, and work with location.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago

Backward Compatibility Expressions

Learn about obsolete expressions and what we still support.
Santiago Uribe Montoya avatar
Written by Santiago Uribe Montoya
Updated over a week ago
Functions

ABS()

Arithmetic absolute value
S
Written by Steve Coile
Updated over a week ago

AND()

Are all true?
S
Written by Steve Coile
Updated over a week ago

ANY()

One arbitrary list item
S
Written by Steve Coile
Updated over a week ago

AVERAGE()

Arithmetic average of list items
S
Written by Steve Coile
Updated over a week ago

CEILING()

Nearest higher integer
S
Written by Steve Coile
Updated over a week ago

CONCATENATE()

Merged text from parts
S
Written by Steve Coile
Updated over a week ago

CONTAINS()

Does text contain fragment?
S
Written by Steve Coile
Updated over a week ago

CONTEXT()

Information about the running app.
S
Written by Steve Coile
Updated over a week ago

COUNT()

Number of list items
S
Written by Steve Coile
Updated over a week ago

DATE()

Date from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago

DATETIME()

DateTime from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago

DAY()

Day of month from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago

EOMONTH()

Date of last day of a month from Date or DateTime
S
Written by Steve Coile
Updated over a week ago

ENCODEURL()

Text encoded for use in URL
S
Written by Steve Coile
Updated over a week ago

EXTRACT()

Extract values from text.
S
Written by Steve Coile
Updated over a week ago

EXTRACTCHOICE()

Extract one Yes/No value within textual value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTDATES()

Extract list of dates within textual value
S
Written by Steve Coile
Updated over a week ago

EXTRACTDATETIMES()

Extract list of DateTime values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTDURATIONS()

Extract list of Duration values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTEMAILS()

Extract list of Email values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTHASHTAGS()

Extract list of #hashtags within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTMENTIONS()

Extract list of @mentions within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTNUMBERS()

Extract list of numeric values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTPHONENUMBERS()

Extract list of phone numbers within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTPRICES()

Extract list of Price values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

EXTRACTTIMES()

Extract list of Time values within text value
Jennifer Cadence avatar
Written by Jennifer Cadence
Updated over a week ago

FILTER()

Select rows of table or slice
S
Written by Steve Coile
Updated over a week ago

FIND()

Position of fragment in text
S
Written by Steve Coile
Updated over a week ago

FLOOR()

Nearest lower integer
S
Written by Steve Coile
Updated over a week ago

HERE()

Current location
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

HOUR()

Hour of day from Duration
S
Written by Steve Coile
Updated this week

HYPERLINK()

New hyperlink
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

IF()

Either/or conditional evaluation
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

IFS()

First-match conditional evaluation
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

IN()

Is item in list?
S
Written by Steve Coile
Updated over a week ago

INDEX()

One specific list item
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

INITIALS()

First character of each word
S
Written by Steve Coile
Updated over a week ago

INTERSECT()

Items common to two lists
S
Written by Steve Coile
Updated over a week ago

ISBLANK()

Is value absent?
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

ISNOTBLANK()

Is value present?
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LAT()

Latitude component of location
S
Written by Steve Coile
Updated over a week ago

LATLONG()

LatLong from components
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LEFT()

Left-most characters of text
S
Written by Steve Coile
Updated over a week ago

LEN()

Number of characters in textual value
S
Written by Steve Coile
Updated over a week ago

LINKTEXT()

Text component of hyperlink
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKTOAPP()

Constructed deep link to app
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKTOFILTEREDVIEW()

Constructed deep link to filtered view
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKTOFORM()

Constructed deep link to form
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKTOROW()

Constructed deep link to row
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKTOVIEW()

Constructed deep link to view
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LINKURL()

URL component of hyperlink
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

LIST()

New list
S
Written by Steve Coile
Updated over a week ago

LN()

Natural logarithm of a numeric value
S
Written by Steve Coile
Updated over a week ago

LOG()

Logarithm of a numeric value
S
Written by Steve Coile
Updated over a week ago

LOG2()

Base 2 logarithm of a numeric value
S
Written by Steve Coile
Updated over a week ago

LOG10()

Base 10 logarithm of a numeric value
S
Written by Steve Coile
Updated over a week ago

LONG()

Longitude component of location
S
Written by Steve Coile
Updated over a week ago

LOOKUP()

Get column value from row in table or slice
S
Written by Steve Coile
Updated over a week ago

LOWER()

Convert text to lowercase.
S
Written by Steve Coile
Updated over a week ago

MAX()

Highest item in list
S
Written by Steve Coile
Updated over a week ago

MAXROW()

Row with greatest value in column
S
Written by Steve Coile
Updated over a week ago

MID()

Characters from text
S
Written by Steve Coile
Updated over a week ago

MIN()

Lowest item in list
S
Written by Steve Coile
Updated over a week ago

MINROW()

Row with lowest value in column
S
Written by Steve Coile
Updated over a week ago

MINUTE()

Minute of hour from Duration
S
Written by Steve Coile
Updated this week

MOD()

Arithmetic remainder from integer division
S
Written by Steve Coile
Updated over a week ago

MONTH()

Month of year from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago

NOT()

Is it false?
S
Written by Steve Coile
Updated over a week ago

NOW()

Current date & time
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

OCRTEXT()

Extract all text from an image
Tony Fader avatar
Written by Tony Fader
Updated over a week ago

OR()

Are any true?
S
Written by Steve Coile
Updated over a week ago

ORDERBY()

Sort row references
S
Written by Steve Coile
Updated over a week ago

POWER()

Arithmetic exponentiation
S
Written by Steve Coile
Updated over a week ago

RANDBETWEEN()

Random integer from range
S
Written by Steve Coile
Updated over a week ago

RIGHT()

Rightmost characters of text
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

ROUND()

Nearest integer
S
Written by Steve Coile
Updated over a week ago

SECOND()

Second of minute from Duration
S
Written by Steve Coile
Updated this week

SELECT()

Gather column values from row in table or slice
S
Written by Steve Coile
Updated over a week ago

SNAPSHOT()

Screenshot a view and embed in documents.
J
Written by Joshua Aldrich
Updated over a week ago

SORT()

Sorted list items
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

SPLIT()

List from text
S
Written by Steve Coile
Updated over a week ago

SQRT()

Arithmetic square root
S
Written by Steve Coile
Updated over a week ago

STDEVP()

Arithmetic standard deviation of list items
S
Written by Steve Coile
Updated over a week ago

SUBSTITUTE()

Text with replacements
S
Written by Steve Coile
Updated over a week ago

SUM()

Arithmetic sum of list items
S
Written by Steve Coile
Updated over a week ago

SWITCH()

Chose-one conditional evaluation
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

TEXT()

Format as text
S
Written by Steve Coile
Updated over a week ago

TIME()

Time from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago

TIMENOW()

Current time
S
Written by Steve Coile
Updated over a week ago

TODAY()

Current date
S
Written by Steve Coile
Updated over a week ago

TOP()

Initial list items
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

TOTALHOURS()

Count of hours in Duration
S
Written by Steve Coile
Updated over a week ago

TOTALMINUTES()

Count of minutes in Duration
S
Written by Steve Coile
Updated over a week ago

TOTALSECONDS()

Count of seconds in Duration
S
Written by Steve Coile
Updated over a week ago

UNIQUE()

Unique items in list
S
Written by Steve Coile
Updated over a week ago

UNIQUEID()

Pseudo-unique ID
S
Written by Steve Coile
Updated over a week ago

UPPER()

Convert text to uppercase.
S
Written by Steve Coile
Updated over a week ago

USEREMAIL()

User's email address
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

USERLOCALE()

User's locale
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

USERNAME()

User's name
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

USERROLE()

Get assigned role of approved user
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

USERSETTINGS()

Specified user setting value
Brian Sabino avatar
Written by Brian Sabino
Updated over a week ago

UTCNOW()

Current date & time in UTC
S
Written by Steve Coile
Updated over a week ago

WEEKDAY()

Day of week from Date or DateTime
S
Written by Steve Coile
Updated today

WEEKNUM()

Week of year from Date or DateTime
S
Written by Steve Coile
Updated over a week ago

WORKDAY()

Computed date excluding non-work days
S
Written by Steve Coile
Updated over a week ago

YEAR()

Year from Date, DateTime, or Time
S
Written by Steve Coile
Updated over a week ago