Advanced Logic

Calculated Variables

Calculated Variables allow you to perform logic or mathematical operations on form responses. Powered by HyperFormula, the industry-standard spreadsheet logic engine.

Creating a Variable

1

Access from Sidebar

Click the Calculated Variables button in the main sidebar. This tool is available globally for your form.

2

Input Formula

Use HyperFormula syntax to define logic. Example: =IF({{Score}} > 50, "Pass", "Fail")

3

Name Your Variable

Give it a handle like {{Status}} for reference in your email templates.

4

Save & Use

Once saved, this variable appears in the 'Insert Variables' panel in your Email Template editor.

Visual Guide: Creating Formulas

Watch how easily you can define logic within the add-on sidebar.

Calculated Variables Formula Editor Guide
Live Preview

HyperFormula Reference

Smart Form Notifications supports a wide range of spreadsheet-style functions for advanced data manipulation.

Logical

Function IDDescriptionSyntax
ANDReturns TRUE if all arguments are TRUE.AND(Logical_value1, Logical_value2, ...)
IFSpecifies a logical test to be performed.IF(Test, Then_value, Otherwise_value)
IFSEvaluates multiple logical tests and returns a value.IFS(Condition1, Value1, [Condition2, Value2, ...])
NOTComplements (inverts) a logical value.NOT(Logical_value)
ORReturns TRUE if any argument is TRUE.OR(Logical_value1, Logical_value2, ...)
SWITCHEvaluates an expression against a list of values.SWITCH(Expression, Value1, Result1, ...)

Math & Trig

Function IDDescriptionSyntax
SUMAdds its arguments.SUM(Value1, [Value2, ...])
ROUNDRounds a number to a specified number of digits.ROUND(Number, Digits)
ABSReturns the absolute value of a number.ABS(Number)
MODReturns the remainder from division.MOD(Number, Divisor)
POWERReturns the result of a number raised to a power.POWER(Base, Exponent)

Text

Function IDDescriptionSyntax
CONCATConcatenates two or more strings.CONCAT(Text1, [Text2, ...])
LEFTReturns characters from the start of a string.LEFT(Text, [Num_chars])
RIGHTReturns characters from the end of a string.RIGHT(Text, [Num_chars])
MIDReturns characters from the middle of a string.MID(Text, Start_num, Num_chars)
LENReturns the number of characters in a string.LEN(Text)
LOWERConverts text to lowercase.LOWER(Text)
UPPERConverts text to uppercase.UPPER(Text)
TRIMRemoves leading and trailing spaces.TRIM(Text)

Date & Time

Function IDDescriptionSyntax
TODAYReturns the current date.TODAY()
NOWReturns the current date and time.NOW()
DATEReturns a specific date.DATE(Year, Month, Day)
YEARReturns the year of a date.YEAR(Date)
MONTHReturns the month of a date.MONTH(Date)
DAYReturns the day of the month.DAY(Date)

Lookup & Aggregation

Function IDDescriptionSyntax
VLOOKUPLooks for a value in the first column of a range.VLOOKUP(Search_key, Range, Index, [Is_sorted])
MATCHReturns the relative position of an item.MATCH(Search_key, Range, [Search_type])
INDEXReturns a cell from a range.INDEX(Range, [Row], [Column])
SUMIFAdds cells specified by a criteria.SUMIF(Range, Criterion, [Sum_range])
COUNTIFCounts cells that meet a criteria.COUNTIF(Range, Criterion)

Information

Function IDDescriptionSyntax
ISNUMBERReturns TRUE if value is a number.ISNUMBER(Value)
ISTEXTReturns TRUE if value is text.ISTEXT(Value)
ISBLANKReturns TRUE if value is empty.ISBLANK(Value)

Pro Tip: Testing Formulas

When referencing form fields, ensure your merge tags match your question labels exactly. Variables are case-sensitive and should be wrapped in brackets, like {{Total_Cost}}.