Use the Formula field to set up any form calculation. When your respondents fill in the form, calculations will be performed based on their input. The answer will be displayed in the field you have entered your formula in.
Using the Formula field you can,
To add a formula field to your form,
f1= n1+ n2
f2= n3 + f3
f3= f1 + f2
Formula 2 depends on Formula 3's answer (and vice versa) to perform calculations, resulting in an endless loop. Recheck your formula to avoid this type of infinite loop.
Using the math functions we support, you can calculate the differences between time and date fields, and also round off decimal numbers into integers. You will find Functions in the right pane of the Formula field pop-up.
To use a function,
Function |
Role |
Supported Field Types |
DayDiff |
Returns the day difference between two date values |
Date, Date-Time |
MonthDiff |
Returns the month difference between two date values |
Date, Date-Time |
YearDiff |
Returns the year difference between two date values |
Date, Date-Time |
HourDiff |
Returns the hour difference between two time values |
Time, Date-Time |
MinutesDiff |
Returns the minute difference between two time values |
Time, Date-Time |
RoundUp |
Rounds off the decimal number to that next value, away from zero |
Decimal, Currency, Formula |
RoundDown |
Rounds off the decimal number to that of the previous value |
Decimal, Currency, Formula |
Round |
Rounds off a decimal number to that of the next number when the decimal value is .5 or above, and to the previous number when the decimal value is below .5 |
Decimal, Currency, Formula |
Age
|
Returns the age in years from the selected date as of the current date. If the selected Date field is left blank, or if the selected date is a future date relative to the current date, the Age will be taken as 0. When calculating age, the months completed are not returned.For example, if the age calculated is 19 years and 7 months, only 19 years is returned. |
Date, Date-Time
|
SelectionCount | Returns the number of options selected in the supported choice based field types. If a choice field (supported field) in Subform is used within the formula, this function returns the sum of all choices selected | Multiple Choice, Checkbox, Image Choices (not supported in Subform) |
CurrentDate
|
This system field is used to return the difference between the current date and the selected date in the DayDiff, MonthDiff, and YearDiff functions
|
Date, Date-Time
|
AllowedDaysCount | Returns the number days that are available for selection between 2 given dates | Date, Date-Time |
You can add a unit to your formula to show the result more contextually in the live form. A unit can be added once the formula configuration is completed.
To include a unit for the formula calculated value:
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.