Function computation
1. Function introduction
Function computation is another way of assigning default values.
The system provides a variety of function formulas for processing data, and users can automatically calculate the results, just like the function functions in Excel.
2. Supported functions
Currently, the system supports mathematical, date, text, and logical functions.
2.1 Mathematical functions
SUM summation of values
Calculates the sum of numbers
Example: SUM(10,20,30), result: 60
Calculates the sum of 10,20,30
SUM(value1,value2...)
AVERAGE mean value
Computes the mean of the parameters
Example: =AVERAGE(10,20,30) , result: 20
Calculates the average of 10,20,30
AVERAGE(value1,value2...)
PRODUCT multiplied values
Returns the product of multiplying two numbers
Example: =PRODUCT(15,4), Result: 60
Calculates the product of 15 times 4
PRODUCT(value1,value2...)
MOD remainder value
Returns the remainder when dividing two numbers
Example: =MOD(15,4), result: 3
Computes the remainder when dividing 15 by 4
MOD(dividend, divisor)
COUNTA count of non-null values
Calculates the number of non-null values in the parameter
Example: =COUNTA(January,February,March), Result: 2
Calculates the number of completed indicators in the first quarter. Three checkboxes in the form correspond to whether the indicators in January, February, and March are completed. The names are January, February, and March, and February is incomplete.
COUNTA(value1,value2...)
COUNTARRY count of objects
Counts the number of members, departments, multiple selections, subforms, or related forms
Example: =COUNTARRAY(process), result: 7
Calculates the number of subforms named "Process" (actually, there are 7 processes)
COUNTARRAY (array class field)
MIN minimum value
Returns the smallest value in a set of numbers
Example: =MIN(10,20,30) , result: 10
Returns the smallest number among 10,20,30
MIN(value1,value2...)
MAX maximum value
Returns the largest value in a set of numbers
Example: =MAX(10,20,30) , result: 30
Returns the largest number among 10,20,30
MAX(value1,value2...)
ABS absolute value
Calculates the absolute value of a number
Example: =ABS(-7) , result: 7
find the absolute value of -7
ABS (value)
INT integer
Returns the nearest integer that is always less than or equal to the original number
Example: =INT(-3.14159265), result: -4
round -3.14159265
INT (number)
ROUND rounding to the specific decimal places
Rounds a number to a specified number of digits
Example: =ROUND(3.14159265,4) , result: 3.1416
3.14159265 to four decimal places
ROUND(number, number of digits)
ROUNDUP rounding to increase the absolute value
Rounds a number by the specified number of digits in the direction of increasing absolute value
Example: =ROUNDUP(3.14159265,4), result: 3.1416
3.14159265 to four decimal places
ROUNDUP(number, number of digits)
ROUNDDOWNrounding to decrease absolute value
Rounds a number by the specified number of digits in the direction of decreasing absolute value
Example: =ROUNDDOWN(3.14159265,4) , Result: 3.1416
3.14159265 to four decimal places
ROUNDDOWN(number, number of digits)
2.2 Date functions
MINUTE returning the number of minutes
Returns the minutes in Time; the return value range is between 0 - 59
Example: =MINUTE('2023-5-1 11:59') , result: 59
Returns the minute at 2023-5-1 11:59
MINUTE(datetime/time)