How to Create a Numeric Formula Field in Zoho CRM

Permission Required
Users with the Field-level Access permission in profile can access this feature.

Create Numeric Formula Field

The following table helps you to understand the type of arguments required for numeric functions along with the type of syntax that needs to be formed.

Function
Description
Usage
Examples
AbsReturns the absolute value of the Number.Abs(number)Abs(-42) returns 42; Abs(+33) returns 33
CeilReturns the smallest digit greater than or equal to the input number.Ceil(number)Ceil(3.4) returns 4; Ceil(-3.4) returns -3
FloorReturns the largest digit less than or equal to the input number.Floor(number)Floor(3.8) returns 3; Floor(-3.4) returns -4
NaturallogReturns the natural logarithm of a numberNaturallog(number)Naturallog(1) returns 0.69
Base10logReturns the base 10 logarithm of the input numberBase10log(number)Base10log(10) returns 1.0
MaxReturns the maximum value from the specified list of compatible data types.Max(value1, value2,...)Max(3,1,5,2) returns 5; Max(0,-4,-3,2) returns 2
MinReturns the minimum value from the specified list of compatible data types.Min(value1, value2,...)Min(5,-3,0,1) returns -3; Min(5,0,.01,0.5) returns 0.0
SqrtReturns the square root of the input number.Sqrt(number)Sqrt(4) returns 2; Sqrt(9) returns 3
FromTimestampCreates date time from timestampFromTimestamp(number)FromTimestamp(1581066895) gives result as Feb 7, 2020 02:44 PM

Note: The above example is for the IST timezone. The values will changed based on the timezone of the user.

IsPositiveChecks if the number is positiveIsPositive(number)IsPositive(-345) gives result as false
IsNegativeChecks if the number is negativeIsNegative(number)IsNegative(-345) gives result as true
RoundRounds the number to the nearest value based on the specified precision.Round(number); Round(number,number)Round(3.8) gives result as 4 ; Round(-3.5) gives result as -3 ; Round(3.417,2) gives result as 3.42

To create numeric type formula fields

  1. Log in to Zoho CRM with Administrator privileges.
  2. Go to Setup > Customization > Modules and Fields.
    Module refers to the Leads, Accounts, Contacts, etc. tabs.
  3. Click the required module.
    The Layout Editor opens.
  4. Drag and drop the Formula field from the New Fields tray to the required module section on the right.
  5. In the Formula Properties window, do the following:
    • Enter id in the Field Label field..
    • Select Number/Currency as the Formula Return Type from the drop-down list.
      In the case of Number and Currency Return Type fields, enter a value for Decimal places.

Constructing Formulas

  1. Under Select Functions, select Numeric Functions from the drop-down list.
  2. From the list of Numeric Functions, choose a function and click Insert.
    (Alternatively, you can double-click on a function to insert)
  3. In the Formula expression, click between the parenthesis to insert an argument.
  4. Under Select Field column, choose a field and click Insert.
    (Alternatively, you can double-click on a field to insert)
  5. Under Select Operator column, choose an operator and click Insert.
  6. Click Check Syntax to check the construction of the formula.
  7. Click Save.