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.
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 |
CurrentDate
|
This 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
|
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.
Write to us: support@zohoforms.com