Performs operations on values and inserts the result in a new column.
The content for the column may be a numeric or string constant, the
NULL value, an empty string, a row value, or an operation
consisting of constants, column references, functions, and operators. Non-string
column values are converted to strings in a concatenation. Dates are converted to
string values based on the current locale and format of the execution
environment.
-
Step name: Defines the name for a step. Provide a
meaningful name so that anyone who edits steps in a pipeline will be able to
identify the purpose of a step. For example,
"Add Address column". -
Constructor: Accepts a formula in Excel format. The
formula may include any or all of the following:
- Constant: A value that is not calculated and,
therefore, does not change. For example, the number
210and the text"Quarterly Earnings"are constants. - Reference: A column reference. This consists of the
column name enclosed in brackets, such as
[Street]or[City]. - Operator: A sign or symbol that specifies the type of calculation to perform within an expression. There are mathematical, comparison, logical, and reference operators.
- Function: An Excel function such as
SUMandCONCATthat accepts and returns values. These consist of the function name and arguments enclosed in parentheses. Arguments may include numbers, text, column references, and functions. For example:CONCAT([Street], ", ", [City], ", ", [PostalCode])
- Constant: A value that is not calculated and,
therefore, does not change. For example, the number
- Output column: Specifies the name of the output column.
- Output Column Datatype: Choose from one of the possible column data types: String, Integer, Long, Float, Double, Boolean, Bigdecimal, Date, Datetime, and Time. Numeric values are converted to strings for a string type, and strings are converted to numeric values for the numeric types.
-
Transformation Preview: The Transformation
Preview table shows the output column and any columns referenced
by the formula in the Constructor box. The table shows an
error or is blank when there are errors in the formula or for unsupported
conversions to an output data type (such as for the
Integerdata type when there are alpha characters"onetwothree"instead of numeric characters"123"in a string value).
Execute Formula expression operators
There are four different types of expression operators: arithmetic, comparison, text concatenation, and reference.
Arithmetic operators
To perform basic mathematical operations on numeric values, such as addition, subtraction, or multiplication; combine numbers; and produce numeric results, use the following arithmetic operators.
| Arithmetic operator | Meaning | Example |
|---|---|---|
+ (plus sign) |
Addition |
3+3
|
- (minus sign) |
Subtraction |
|
* (asterisk) |
Multiplication |
3*3
|
/ (forward slash) |
Division |
3/3
|
% (percent sign) |
Percent |
20%
|
^ (caret) |
Exponentiation |
3^2
|
Comparison operators
You can compare values with the following operators. When two values are compared by using these operators, the result is either 1 (True) or 0 (False).
| Comparison operator | Meaning | Example |
|---|---|---|
= (equal sign) |
Equal to |
[Col1]=[Col2]
|
> (greater than sign) |
Greater than |
[Col1]>[Col2]
|
< (less than sign) |
Less than |
[Col1]<[Col2]
|
>= (greater than or equal to sign) |
Division |
[Col1]>=[Col2]
|
<= (less than or equal to sign) |
Less than or equal to |
[Col1]<=[Col2]
|
<> (not equal to sign) |
Not equal to |
[Col1]<>[Col2]
|
Text concatenation operator
Use the ampersand (&) to join, or concatenate, one or more text strings to produce a single piece of text.
| Reference operator | Meaning | Example |
|---|---|---|
& (ampersand) |
Connects, or concatenates, two values to produce one continuous text value. |
IF ([n1] > 2, [n1] & " is bigger than 2", [n1] & " is
less than or equal to 2")
|
Reference operators
Use the following operators to combine column values in a row in fuction arguments.
| Reference operator | Meaning | Example |
|---|---|---|
: (colon) |
Range operator, which combines multiple references as one argument. You must reference every column that you want to include in a range. Columns do not have to be in a particular order unless a function requires an ordered range. Note: Unlike contiguous cells in an Excel table, intervening dataset
fields are not included in a range.
|
LARGE([Col1]:[Col2]:[Col3]:[Col4],1)
LARGE([Col4]:[Col3]:[Col2]:[Col1],1)
|
, (comma) |
Union operator, which combines multiple references as separate arguments. |
SUM([Col1],[Col5],[Col7],[Col9])
|
(space) |
Intersection operator, which produces a reference to columns common to the two references. |
LARGE([Col1]:[Col2]:[Col3]:[Col5]
[Col3]:[Col4]:[Col5]:[Col6]:[Col7],1)
|
#
|
The # symbol is used as part of an error name. |
#NULL!
|
Execute Formula order of operations
The order in which a calculation is performed can affect the return value of a formula, so it is important to understand how the order is determined and how you can change the order to obtain desired results.
Calculation order
Formulas calculate values in a specific order. A formula is entered directly into the Constructor box as elements to be calculated (the operands), which are combined by expression operators. The step calculates the formula from left to right, according to a specific order for each operator in the formula.
Operator precedence
If you combine several operators in a single formula, the step performs the operations in a specific order. If a formula contains operators with the same precedence—for example, if a formula contains both a multiplication and division operator—the step evaluates the operators from left to right. To change the order of evaluation, enclose in parentheses the part of the formula to be calculated first.
The Order of Operations in a formula is as follows:
| Precedence | Operator | Meaning |
|---|---|---|
| 1 | ( ) | Expressions in parentheses are calculated first. |
| 2 |
: (colon) |
Reference operators |
| 3 | % | Percent |
| 4 | ^ | Exponentiation |
| 5 |
* and / |
Multiplication and Division |
| 6 |
+ and — |
Addition and Subtraction |
| 7 |
& |
Connects two strings of text (concatenation) |
| 8 |
= |
Comparison |
Execute Formula functions (by category)
List of functions available in the Execute Formula pipeline step.
Date-Time functions
| Function Name | Description |
|---|---|
| DATE function | Returns the sequential serial number that represents a particular date. |
| DATEVALUE function | Converts a date in the form of text to a serial number. |
| DAY function | Converts a serial number to a day of the month. |
| DAYS360 function | Calculates the number of days between two dates based on a 360-day year. |
| HOUR function | Converts a serial number to an hour. |
| MINUTE function | Converts a serial number to a minute. |
| MONTH function | Converts a serial number to a month. |
| NOW function | Returns the serial number of the current date and time. |
| SECOND function | Converts a serial number to a second. |
| TIME function | Returns the serial number of a particular time. |
| TIMEVALUE function | Converts a time in the form of text to a serial number. |
| TODAY function | Returns the serial number of today's date. |
| WEEKDAY function | Converts a serial number to a day of the week. The day is
given as an integer, ranging from 1
(Sunday) to 7 (Saturday). |
| YEAR function | Returns the year corresponding to a date. The year is
returned as an integer in the range
1900-9999. |
Financial functions
| Function Name | Description |
|---|---|
| FV function | Returns the future value of an investment based on a constant interest rate. |
| IPMT function | Returns the interest payment for an investment for a given period. |
| MIRR function | Returns the internal rate of return where positive and negative cash flows are financed at different rates. |
| NPER function | Returns the number of periods for an investment. |
| NPV function | Returns the net present value of an investment based on a series of periodic cash flows and a discount rate. |
| PMT function | Returns the periodic payment for an annuity. |
| PPMT function | Returns the payment on the principal for an investment for a given period. |
| PV function | Returns the present value of an investment. |
| RATE function | Returns the interest rate per period of an annuity. |
Financial functions key
| Key | Description |
|---|---|
fv
|
The future value, or a cash balance you want to attain
after the last payment is made. If fv is
omitted, it is assumed to be 0 (the future
value of a loan, for example, is 0). |
Nper
|
The total number of payment periods in an annuity. |
per
|
The period for which you want to find the interest and
must be in the range 1 to
Nper. |
pmt
|
The payment made each period. It cannot change over the
life of the annuity. Typically, pmt
contains principal and interest but no other fees or taxes.
If pmt is omitted, you must include the
pv argument. |
pv
|
The present value, or the lump-sum amount that a series
of future payments is worth right now. The default is
0. If pv is omitted,
you must include the pmt argument. |
rate
|
The interest rate per period. |
type
|
Optional. The number 0 or
1 and indicates when payments are due.
The default is 0. |
Logical functions
| Function Name | Description |
|---|---|
| AND function | Returns Boolean TRUE if all of its
arguments are TRUE. |
| FALSE function | Returns the logical value FALSE.
|
| IF function | Specifies a value returned if an expression is true or false. |
| NOT function | Reverses the logic of its argument. |
| OR function | Returns TRUE if any argument is
TRUE. |
| TRUE function | Returns the logical value TRUE.
|
Informational functions
| Function Name | Description |
|---|---|
| ERROR.TYPE function | Returns a number corresponding to an error type. |
| ISBLANK function | Returns TRUE if the value is
blank. |
| ISERROR function | Returns TRUE if the value is any error
value. |
| ISLOGICAL function | Returns TRUE if the value is a logical
value. |
| ISNA function | Returns TRUE if the value is the
#N/A error value. |
| ISNONTEXT function | Returns TRUE if the value is not
text. |
| ISNUMBER function | Returns TRUE if the value is a
number. |
| ISTEXT function | Returns TRUE if the value is
text. |
| NA function | Returns the error value #N/A. |
Math and Trig functions
| Function Name | Description |
|---|---|
| ABS function | Returns the absolute value of a number. |
| ACOS function | Returns the arccosine, or inverse cosine, of a number.
The arccosine is the angle whose cosine is the number. The
returned angle is given in radians in the range
0 (zero) to π. |
| ACOSH function | Returns the inverse hyperbolic cosine of a number. |
| ASIN function | Returns the arcsine, or inverse sine, of a number. |
| ASINH function | Returns the inverse hyperbolic sine of a number. |
| ATAN function | Returns the arctangent, or inverse tangent, of a number. |
| ATAN2 function | Returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. |
| ATANH function | Returns the inverse hyperbolic tangent of a number. |
| CEILING function | Rounds a number to the nearest integer or to the nearest multiple of significance. |
| COMBIN function | Returns the number of combinations for a given number of objects. |
| COS function | Returns the cosine of a number. |
| COSH function | Returns the hyperbolic cosine of a number. |
| DEGREES function | Converts radians to degrees. |
| EVEN function | Rounds a number up to the nearest even integer. |
| EXP function | Returns the mathematical constant e
raised to the power of a given number. The
constant e is approximately equal to
2.71828182845904, the base of the natural logarithms. It is
also the limit of (1 + 1/n)n as
n approaches infinity. |
| FACT function | Returns the factorial of a number. The factorial of a
number is equal to
1*2*3*...*number. |
| FLOOR function | Rounds a number down, toward zero. |
| LN function | Returns the natural logarithm of a number. |
| LOG function | Returns the logarithm of a number to a specified base
(default is 10). |
| LOG10 function | Returns the base-10 logarithm of a number. |
| MAX function | Returns the maximum value in a set of values. |
| MAXA function | Returns the maximum value in a list of arguments, including numbers, text, and logical values. |
| MEDIAN function | Returns the median of the given numbers. |
| MDETERM function | Returns the matrix determinant of an array. |
| MIN function | Returns the minimum value in a list of arguments. |
| MINA function | Returns the smallest value in a list of arguments, including numbers, text, and logical values. |
| MINVERSE function | Returns the matrix inverse of an array. |
| MMULT function | Returns the matrix product of two arrays. |
| MOD function | Returns the remainder from division. |
| MODE function | Returns the most frequently occurring number in a numeric data set. |
| ODD function | Rounds a number up to the nearest odd integer. |
| PI function | Returns the value of π (pi). |
| POWER function | Returns the result of a number raised to a power. |
| PRODUCT function | Multiplies the arguments. |
| RADIANS function | Converts degrees to radians. |
| RAND function | Returns a random number between 0 and
1. |
| ROMAN function | Converts an Arabic numeral to Roman, as text. |
| ROUND function | Rounds a number to a specified number of digits. |
| ROUNDDOWN function | Rounds a number down, toward zero. |
| ROUNDUP function | Rounds a number up, away from zero. |
| SIGN function | Returns the sign of a number. |
| SIN function | Returns the sine of the given angle. |
| SINH function | Returns the hyperbolic sine of a number. |
| SQRT function | Returns a positive square root. |
| SUBTOTAL function | Returns a subtotal of a list. |
| SUM function | Sums its arguments. |
| SUMIF function | Adds the cells specified by a given criterion. |
| SUMPRODUCT function | Returns the sum of the products of corresponding array components. |
| SUMSQ function | Returns the sum of the squares of the arguments. |
| SUMX2MY2 function | Returns the sum of the difference of squares of corresponding values in two arrays. |
| SUMX2PY2 function | Returns the sum of the sum of squares of corresponding values in two arrays. |
| SUMXMY2 function | Returns the sum of squares of differences of corresponding values in two arrays. |
| TAN function | Returns the tangent of a number. |
| TANH function | Returns the hyperbolic tangent of a number. |
| TRUNC function | Truncates a number to an integer. |
Statistical functions
| Function Name | Description |
|---|---|
| AVEDEV function | Returns the average of the absolute deviations of data points from their mean. |
| AVERAGE function | Returns the average of its arguments. |
| COUNT function | Counts how many numbers are in the list of arguments. |
| COUNTA function | Counts how many fields are not empty. |
| COUNTBLANK function | Counts the number of blank fields. |
| DEVSQ function | Returns the sum of squares of deviations from a sample mean. |
| GEOMEAN function | Returns the geometric mean of a range of positive data. |
| LARGE function | Returns the k-th largest value in a data
set. |
| POISSON function | Returns the Poisson distribution. |
| SMALL function | Returns the k-th smallest value in a
data set. |
| STDEV function | Estimates standard deviation based on a sample. |
| TDIST function | Returns the Percentage Points (probability) for the
Student t-distribution where a numeric value
(x) is a calculated value of t for
which the Percentage Points are to be computed. |
| VARP function | Calculates variance based on the entire population. |
Text functions
| Function Name | Description |
|---|---|
| CHAR function | Returns the character specified by a number. |
| CLEAN function | Removes all unprintable characters from text. |
| CODE function | Returns a numeric code for the first character in a text string. |
| CONCAT function | Joins several text items into one text item. |
| CONCATENATE function | Joins several text items into one text item. |
| EXACT function | Checks to see if two text values are identical. |
| FIND function | Finds one text value within another (case-sensitive). |
| FIXED function | Formats a number as text with a fixed number of decimals. |
| LOWER function | Converts text to lowercase. |
| MID function | Returns a specific number of characters from a text string starting at the position you specify. |
| PROPER function | Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter, such as a space. Converts all other letters to lowercase. |
| REPLACE function | Replaces characters in text. |
| REPT function | Repeats text a given number of times. |
| RIGHT function | Returns the rightmost characters from a text value. |
| SEARCH function | Finds one text value within another (not case-sensitive). |
| SUBSTITUTE function | Substitutes new text for old text in a text string. |
| T function | Returns the text referred to by value. |
| TEXT function | Formats a number and converts it to text. |
| TRIM function | Removes all blank, unnecessary spaces at the start and end of a string, including extra spaces, tabs, and other characters that do not print. |
| UPPER function | Converts all text in a string to upper case. |
| VALUE function | Converts a text argument to a number. |
Execute Formula functions (alphabetical)
List of functions available in the Execute Formula pipeline step.
Press Ctrl+F to search for a function by entering the first
few letters of its name or a related keyword. To browse functions by
category, see Execute Formula functions (by category). For details about operators used in expressions and function arguments,
refer to Execute Formula expression operators.
A functions
| Function Name | Type and Description |
|---|---|
| ABS function | Math and trigonometry: Returns the absolute value of a number. |
| ACOS function | Math and trigonometry: Returns the arccosine, or inverse cosine, of a number. The arccosine is the angle whose cosine is number. The returned angle is given in radians in the range 0 (zero) to π |
| ACOSH function | Math and trigonometry: Returns the inverse hyperbolic cosine of a number. |
| AND function | Logical: Returns Boolean true if all of its arguments are TRUE. |
| ASIN function | Math and trigonometry: Returns the arcsine, or inverse sine, of a number. |
| ASINH function | Math and trigonometry: Returns the inverse hyperbolic sine of a number. |
| ATAN function | Math and trigonometry: Returns the arctangent, or inverse tangent, of a number. |
| ATAN2 function | Math and trigonometry: Returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. |
| ATANH function | Math and trigonometry: Returns the inverse hyperbolic tangent of a number. |
| AVEDEV function | Statistical: Returns the average of the absolute deviations of data points from their mean. |
| AVERAGE function | Statistical: Returns the average of the its arguments. |
C functions
| Function Name | Type and Description |
|---|---|
| CEILING function | Math and trigonometry: Rounds a number to the nearest integer or to the nearest multiple of significance. |
| CHAR function | String: Returns the character specified by a number. |
| CLEAN function | String: Removes all unprintable characters from text. |
| CODE function | String: Returns a numeric code for the first character in a text string. |
| COMBIN function | Math and trigonometry: Returns the number of combinations for a given number of objects. |
| CONCAT function | String: Joins several text items into one text item. |
| CONCATENATE function | String: Joins several text items into one text item. |
| COS function | Math and trigonometry: Returns the cosine of a number. |
| COSH function | Math and trigonometry: Returns the hyperbolic cosine of a number. |
| COUNT function | Statistical: Counts how many numbers are in the list of arguments. |
| COUNTA function | Statistical: Counts how many fields are not empty. |
| COUNTBLANK function | Statistical: Counts the number of blank fields. |
D functions
| Function Name | Type and Description |
|---|---|
| DATE function | Returns the sequential serial number that represents a particular date. |
| DATEVALUE function | Converts a date in the form of text to a serial number. |
| DAY function | Converts a serial number to a day of the month. |
| DAYS360 function | Calculates the number of days between two dates based on a 360-day year. |
| DEGREES function | Converts radians to degrees. |
| DEVSQ function | Returns the sum of squares of deviations from a sample mean. |
E functions
| Function Name | Type and Description |
|---|---|
| ERROR.TYPE function | Informational: Returns a number corresponding to an error type. |
| EVEN function | Math and trigonometry: Rounds a number up to the nearest even integer. |
| EXACT function | String: Checks to see if two text values are identical. |
| EXP function |
Math and trigonometry:
Returns the mathematical constant e raised to the power of a given number. The constant e is approximately equal to 2.71828182845904, the base of the natural logarithms. It is also the limit of (1 + 1/n)n as n approaches infinity.
|
F functions
| Function Name | Type and Description |
|---|---|
| FACT function |
Math and trigonometry:
Returns the factorial of a number. The factorial of a number is equal to 1*2*3*...*number
|
| FALSE function | Logical: Returns the logical value FALSE. |
| FIND function | String: Finds one text value within another (case-sensitive). |
| FIXED function | String: Formats a number as text with a fixed number of decimals. |
| FLOOR function | Math and trigonometry: Rounds a number down, toward zero. |
| FV function | Financial: Returns the future value of an investment based on a constant interest rate. |
G functions
| Function Name | Type and Description |
|---|---|
| GEOMEAN function | Statistical: Returns the geometric mean of a range of positive data. |
H functions
| Function Name | Type and Description |
|---|---|
| HOUR function | Date and time: Converts a serial number to an hour. |
I functions
| Function Name | Type and Description |
|---|---|
| IF function | Logical functions Specifies a value returned if an expression is true or false. |
| IPMT function | Financial functions Returns the interest payment for an investment for a given period. |
| ISBLANK function | Informational functions Returns TRUE if the value is blank. |
| ISERROR function | Informational functions Returns TRUE if the value is any error value. |
| ISLOGICAL function | Informational functions Returns TRUE if the value is a logical value. |
| ISNA function | Informational functions Returns TRUE if the value is the #N/A error value. |
| ISNONTEXT function | Informational functions Returns true if the value is not text. |
| ISNUMBER function | Informational functions Returns TRUE if the value is a number. |
| ISTEXT function | Informational functions Returns TRUE if the value is text. |
L functions
| Function Name | Type and Description |
|---|---|
| LARGE function | Statistical: Returns the k-th largest value in a data set. |
| LN function | Math and trigonometry: Returns the natural logarithm of a number. |
| LOG function | Math and trigonometry: Returns the logarithm of a number to a specified base (default is 10). |
| LOG10 function | Math and trigonometry: Returns the base-10 logarithm of a number. |
| LOWER function | String: Converts text to lowercase. |
M functions
| Function Name | Type and Description |
|---|---|
| MAX function | Math and trigonometry: Returns the maximum value in a set of values. |
| MAXA function | Math and trigonometry: Returns the maximum value in a list of arguments, including numbers, text, and logical values. |
| MDETERM function | Math and trigonometry: Returns the matrix determinant of an array. |
| MEDIAN function | Math and trigonometry: Returns the median of the given numbers. |
| MID function | String: Returns a specific number of characters from a text string starting at the position you specify. |
| MIN function | Math and trigonometry: Returns the minimum value in a list of arguments. |
| MINA function | Math and trigonometry: Returns the smallest value in a list of arguments, including numbers, text, and logical values. |
| MINUTE function | Date and time: Converts a serial number to a minute. |
| MINVERSE function | Math and trigonometry: Returns the matrix inverse of an array. |
| MIRR function | Financial: Returns the internal rate of return where positive and negative cash flows are financed at different rates. |
| MMULT function | Math and trigonometry: Returns the matrix product of two arrays. |
| MOD function | Math and trigonometry: Returns the remainder from division. |
| MODE function | Math and trigonometry: Returns the most frequently occurring number in a numeric data set. |
| MONTH function | Date and time: Converts a serial number to a month. |
N functions
| Function Name | Type and Description |
|---|---|
| NA function | Informational: Returns the error value #N/A. |
| NOT function | Logical: Reverses the logic of its argument. |
| NOW function | Date and time: Returns the serial number of the current date and time. |
| NPER function | Financial: Returns the number of periods for an investment. |
| NPV function | Financial: Returns the net present value of an investment based on a series of periodic cash flows and a discount rate. |
O functions
| Function Name | Type and Description |
|---|---|
| ODD function | Math and trigonometry: Rounds a number up to the nearest odd integer. |
| OR function | Logical: Returns TRUE if any argument is TRUE. |
P functions
| Function Name | Type and Description |
|---|---|
| PI function | Math and trigonometry: Returns the value of π (or pi). |
| PMT function | Financial: Returns the periodic payment for an annuity. |
| POISSON function | Statistical: Returns the Poisson distribution. |
| POWER function | Math and trigonometry: Returns the result of a number raised to a power. |
| PPMT function | Financial: Returns the payment on the principal for an investment for a given period. |
| PRODUCT function | Math and trigonometry: Multiplies the arguments. |
| PROPER function | String: Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter, such as a space. Converts all other letters to lowercase. |
| PV function | Financial: Returns the present value of an investment.Returns the present value of an investment. |
R functions
| Function Name | Type and Description |
|---|---|
| RADIANS function | Math and trigonometry: Converts degrees to radians. |
| RAND function | Math and trigonometry: Returns a random number between 0 and 1. |
| RATE function | Financial: Returns the interest rate per period of an annuity. |
| REPLACE function | String: Replaces characters in text. |
| REPT function | String: Repeats text a given number of times. |
| RIGHT function | String: Returns the rightmost characters from a text value. |
| ROMAN function | Math and trigonometry: Converts an Arabic numeral to Roman, as text. |
| ROUND function | Math and trigonometry: Rounds a number to a specified number of digits. |
| ROUNDDOWN function | Math and trigonometry: Rounds a number down, toward zero. |
| ROUNDUP function | Math and trigonometry: Rounds a number up, away from zero. |
S functions
| Function Name | Type and Description |
|---|---|
| SEARCH function | String: Finds one text value within another (not case-sensitive). |
| SECOND function | Date and time: Converts a serial number to a second. |
| SIGN function | Math and trigonometry: Returns the sign of a number. |
| SIN function | Math and trigonometry: Returns the sine of the given angle. |
| SINH function | Math and trigonometry: Returns the hyperbolic sine of a number. |
| SMALL function | Statistical: Returns the k-th smallest value in a data set. |
| SQRT function | Math and trigonometry: Returns a positive square root. |
| STDEV function | Statistical: Estimates standard deviation based on a sample. |
| SUBSTITUTE function | String: Substitutes new text for old text in a text string. |
| SUBTOTAL function | Math and trigonometry: Returns a subtotal of a list. |
| SUM function | Math and trigonometry: Sums its arguments. |
| SUMIF function | Math and trigonometry: Adds the cells specified by a given criteria. |
| SUMPRODUCT function | Math and trigonometry: Returns the sum of the products of corresponding array components. |
| SUMSQ function | Math and trigonometry: Returns the sum of the squares of the arguments. |
| SUMX2MY2 function | Math and trigonometry: Returns the sum of the difference of squares of corresponding values in two arrays. |
| SUMX2PY2 function | Math and trigonometry: Returns the sum of the sum of squares of corresponding values in two arrays. |
| SUMXMY2 function | Math and trigonometry: Returns the sum of squares of differences of corresponding values in two arrays. |
T functions
| Function Name | Type and Description |
|---|---|
| T function | String: Returns the text referred to by value. |
| TAN function | Math and trigonometry: Returns the tangent of a number. |
| TANH function | Math and trigonometry: Returns the hyperbolic tangent of a number. |
| TDIST function | Statistical: Returns the Percentage Points (probability) for the Student t-distribution where a numeric value (x) is a calculated value of t for which the Percentage Points are to be computed. |
| TEXT function | String: Formats a number and converts it to text. |
| TIME function | Date and time: Returns the serial number of a particular time. |
| TIMEVALUE function | Date and time: Converts a time in the form of text to a serial number. |
| TODAY function | Date and time: Returns the serial number of today's date. |
| TRIM function | String: Removes all blank, unnecessary spaces at the start and end of a string including extra spaces, tabs, and other characters that do not print. |
| TRUE function | Logical: Returns the logical value TRUE. |
| TRUNC function | Math and trigonometry: Truncates a number to an integer. |
U functions
| Function Name | Type and Description |
|---|---|
| UPPER function | String: Converts all text in a string to upper case. |
V functions
| Function Name | Type and Description |
|---|---|
| VALUE function | String: Converts a text argument to a number. |
| VARP function | Statistical: Calculates variance based on the entire population. |
W functions
| Function Name | Type and Description |
|---|---|
| WEEKDAY function | Date and time: Converts a serial number to a day of the week. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday). |
Y functions
| Function Name | Type and Description |
|---|---|
| YEAR function | Date and time: Returns the year corresponding to a date. The year is returned as an integer in the range 1900-9999. |
Functions Reference
ABS function
Math and trigonometry
This topic describes the formula syntax and usage of the ABS function in the Execute Formula step.
Description
Returns the absolute value of a number.
Syntax
ABS(number)
The ABS function syntax has the following arguments.
- number Required. The real number of which you want the absolute value.
Example
| Formula | Description | Result |
|---|---|---|
ABS([Negatives])
|
Absolute value of -4 | 4 |
ABS([Negatives] * 2)
|
Absolute value of -8 | 8 |
ACOS function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ABS function in the Execute Formula step.
Description
Returns the arccosine, or inverse cosine, of a number. The arccosine is the angle whose cosine is number. The returned angle is given in radians in the range 0 (zero) to π
180/PI() or use the DEGREES function.Syntax
ACOS(number)
The ACOS function syntax has the following argument.
- number Required. The cosine of the angle you want. The value must be from -1 to 1.
Example
| Formula | Description | Result |
|---|---|---|
ACOS([Cosines])
|
Arccosine of -0.5 in radians | 2.094395102 |
ACOS([Cosines])*180/PI()
|
Arccosine of -0.5 in degrees | 120 |
DEGREES(ACOS([Cosines]))
|
Arccosine of -0.5 in degrees | 120 |
ACOSH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ACOSH function in the Execute Formula step.
Description
Returns the inverse hyperbolic cosine of a number. The number must be greater than or equal to 1. The inverse hyperbolic cosine is the value whose hyperbolic cosine is number, so ACOSH(COSH(number)) equals number.
Syntax
ACOSH(number)
The ACOSH function syntax has the following argument:
- number Required. Any real number equal to or greater than 1.
Example
PositiveReals field.| Formula | Description | Result |
|---|---|---|
ACOSH([PositiveReals])
|
Inverse hyperbolic cosine of 1 | 0 |
ACOSH([PositiveReals])
|
Inverse hyperbolic cosine of 10 | 2.9932228 |
AND function
Type: Logical
This topic describes the formula syntax and usage of the AND function in the Execute Formula step.
Description
Returns Boolean true if all of its arguments are TRUE.
Syntax
AND(logical_expression1,logical_expression2,...)
The AND function syntax has the following arguments:
logical_expression1,logical_expression2,... Series of logical expressions that evaluate to TRUE or FALSE.
Example
| Formula | Description | Result |
|---|---|---|
|
Both expressions TRUE | true |
|
First expression TRUE, second expression FALSE | false |
|
Three TRUE expressions | true |
ASIN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ASINH function in the Execute Formula step.
Description
Returns the arcsine, or inverse sine, of a number. The arcsine is the angle whose sine is number. The returned angle is given in radians in the range -π/2 to π/2.
180/PI() or use the DEGREES function.Syntax
ASIN(number)
The ASIN function syntax has the following argument:
- number Required. The sine of the angle. Must be from -1 to 1.
Example
| Formula | Description | Result |
|---|---|---|
ASIN([Sines])
|
Arcsine of -0.5 in radians, -Ï€/6 | -0.523598776 |
ASIN([Sines])*180/PI()
|
Arcsine of -0.5 in degrees | -30 |
DEGREES(ASIN([Sines]))
|
Arcsine of -0.5 in degrees | -30 |
ASINH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ASINH function in the Execute Formula step.
Description
Returns the inverse hyperbolic sine of a number. The inverse hyperbolic sine is the value whose hyperbolic sine is number, so ASINH(SINH(number)) equals number.
Syntax
ASINH(number)
The ASINH function syntax has the following arguments:
-
numberRequired. Any real number.
Example
| Formula | Description | Result |
|---|---|---|
ASINH([Reals])
|
Inverse hyperbolic cosine of -2.5 | -1.647231146 |
ASINH([Reals])
|
Inverse hyperbolic cosine of 10 | 2.99822295 |
ATAN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ATAN function in the Execute Formula step.
Description
Returns the arctangent, or inverse tangent, of a number. The arctangent is the angle whose tangent is number. The returned angle is given in radians in the range -π/2 to π/2.
180/PI() or use the DEGREES function.Syntax
ATAN(number)
The ATAN function syntax has the following arguments:
-
numberRequired. The tangent of an angle.
Example
| Formula | Description | Result |
|---|---|---|
ATAN([Tangent])
|
Arctangent of 1 in radians, π/4 | 2.094395102 |
ATAN([Tangent])*180/PI()
|
Arctangent of 1 in degrees | 120 |
DEGREES(ATAN(ATAN([Tangent]))
|
Arctangent of 1 in degrees | 120 |
ATAN2 function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ATAN2 function in the Execute Formula step.
Description
Returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (x_num, y_num). The angle is given in radians between -π and π, excluding -π.
180/PI() or use the DEGREES function.Syntax
ATAN2(x_num, y_num)
The ATAN2 function syntax has the following arguments:
-
x_numRequired. The x-coordinate of the point. -
y_numRequired. The y-coordinate of the point.
Comments
- A positive result represents a counterclockwise angle from the x-axis. A negative result represents a clockwise angle.
-
ATAN2(ab) = ATAN(b/a), except that the ratio on the right side is undefined when a = 0.
Example
| Formula | Description | Result |
|---|---|---|
ATAN2([X_COORDINATE],[Y_COORDINATE])
|
Arctangent of the point 1,1, in radians, π/4 | 0.785398163 |
DEGREES(ATAN2([X_COORDINATE],[Y_COORDINATE]))
|
Arctangent of the point 1,1 in degrees | -135 |
| Formula | Description | Result |
|---|---|---|
ATAN2([X_COORDINATE],[Y_COORDINATE])
|
Arctangent of the point 1,1, in radians,-3*Ï€/4 | -2.35619449 |
ATAN2([X_COORDINATE],[Y_COORDINATE])*180/PI()
|
Arctangent of the point 1,1, in degrees | -135 |
ATANH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ATANH function in the Data Quality Execute Formula step.
Description
Returns the inverse hyperbolic tangent of a number. The number must be between -1 and 1 (excluding -1 and 1). The inverse hyperbolic tangent is the value whose hyperbolic tangent is number, so ATANH(TANH(number)) equals number.
Syntax
ATANH(number)
The ATANH function syntax has the following argument:
-
number Required. Any real number between 1 and -1.
Example
| Formula | Description | Result |
|---|---|---|
ATANH([RealNumber])
|
Inverse hyperbolic tangent of 0.76159416 | 1.00000001 |
ATANH([RealNumber])
|
Inverse hyperbolic tangent of -0.1 | -0.100335348 |
AVEDEV function
Type: Statistical
This topic describes the formula syntax and usage of the AVEDEV function in the Data Quality Execute Formula step.
Description
Returns the average of the absolute deviations of data points from their mean. AVEDEV is a measure of the variability in a data set. Arguments are numeric columns in the data.
The equation for average deviation is:
(1/n)Σ|x-m|
Where n is the number of data points, x is a column value, and m is the mean of the values.
Syntax
AVEDEV(number1,number2,...)
The AVEDEV function syntax has the following arguments:
-
number1,number2,...number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want the average of the absolute deviations.Nonnumeric columns and empty fields are ignored. Fields containing the 0 value are included..
Example
Y1=4, Y2=5, Y3=6, Y4=7, Y5=5, Y6=3
, Y7=0
| Formula | Result |
|---|---|
AVEDEV([Y1],[Y2],[Y3],[Y4],[Y5])
|
0.880000 |
AVEDEV([Y1],[Y2],[Y3])
|
0.666667 |
AVEDEV([Y1]:[Y2]:[Y3],[Y4],[Y5],[Y6],[Y7])
|
1.673469 |
AVERAGE function
Type: Statistical
This topic describes the formula syntax and usage of the AVERAGE function in the Data Quality Execute Formula step.
Description
Returns the average of the its arguments. Returns the average (arithmetic mean) of the arguments. For example, if the range of temperatures for a location, day 1 through day 4, contains temperatures, the formula AVERAGE([Day1],[Day2],[Day3],[Day4]) returns the average temperature for the four days.
Syntax
AVERAGE(number1,number2,...)
- number1 Required. The number, column reference, or column range to average.
- number2,... Optional. The number, column reference, or column range to average.
- Arguments that are error values or text that cannot be translated into numbers cause errors.
Notes
- If a field referenced by an argument contains text, logical values, or empty cells, those values are ignored. Cells with the value zero are included.
- A range specifies multiple fields in a single argument. The order does not have
to match the order that columns appear in the sample data table. For example,
this range specifies four columns (1, 3, 5, and 7):
.AVERAGE([column1]:[column5]:[column3]:[column7])
Example
Y1=4, Y2=5, Y3=6, Y4=7, Y5=5, Y6=3
| Formula | Result |
|---|---|
AVERAGE([Y1],[Y2],[Y3],[Y4],[Y5],[Y6])
|
5 |
AVERAGE([Y1]:[Y2]:[Y3],[Y4],5,3)
|
5 |
CEILING function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the CEILING function in the Data Quality Execute Formula step.
Description
Rounds a number to the nearest integer or to the nearest multiple of significance. For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula CEILING(4.42,0.05) to round prices up to the nearest nickel.
Syntax
CEILING(number, significance)
The CEILING function syntax has the following arguments:
- number Required. The value you want to round.
- significance Required. The multiple to which you want to round.
Notes
- If number is nonnumeric, an error occurs.
- Regardless of the sign of number, a value is rounded up when adjusted away from zero. If number is an exact multiple of significance, no rounding occurs
- If number is negative, and significance is negative, the value is rounded down, away from zero.
- If number is negative, and significance is positive, the value is rounded up towards zero.
Example
| Formula | Description | Result |
|---|---|---|
CEILING([Number],1)
|
Rounds 2.5 up to nearest multiple of 1 | 3 |
CEILING([Number],-2)
|
Rounds -2.5 up to nearest multiple of -2 | -4 |
CEILING([Number],-2)
|
Rounds -2.5 up to nearest multiple of 2 | -2 |
CEILING([Number],0.1)
|
>Rounds 1.5 up to nearest multiple of 0.1 | 1.5 |
CEILING([Number],0.01)
|
Rounds 0.234 up to the nearest multiple of 0.01 | 0.24 |
CHAR function
Type: Text
This topic describes the formula syntax and usage of the CHAR function in the Execute Formula step.
Description
Returns the character specified by a number. Use CHAR to translate code page numbers you might get from files or data sources on other types of computers into characters.
Syntax
CHAR(number)
The CHAR syntax has the following argument:
- number Required. A number between 1 and 255 specifying a character. The character is from the character set used by Data Integrity Suite.
Example
| Formula | Description | Result |
|---|---|---|
CHAR([CharCode])
|
Character represented by 70. | F |
CHAR([CharCode])
|
Character represented by 87. | W |
CHAR([CharCode])
|
Character represented by 68. | D |
CLEAN function
Type: Text
This topic describes the formula syntax and usage of the CLEAN function in the Execute Formula step.
Description
Removes all unprintable characters from text. Use CLEAN on text from other data sources that contains the first 32 nonprinting characters in 7-bit ASCII code (values 0 through 31).
Syntax
CLEAN(text)
The CLEAN function syntax has the following argument:
-
TextRequired. Any field information from which you want to remove nonprinting characters.
Example
1600 Pennsylvania Avenue| Formula | Description | Result |
|---|---|---|
| CLEAN([Address]) | Removes nonprintable characters from the Address field in a dataset. |
1600 Pennsylvania Avenue
|
CODE function
Type: Text
This topic describes the formula syntax and usage of the CODE function in the Execute Formula step.
Description
Returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by Data Integrity Suite.
Syntax
CODE(text)
The CODE syntax has the following argument:
- text Required. The text for from which to code the first character.
Example
| Formula | Description | Result |
|---|---|---|
CODE([City])
|
Numeric code for first character in "Florence". | 70 |
CODE([City])
|
Numeric code for first character in "Willamina". | 87 |
CODE([City])
|
Numeric code for first character in "Decatur". | 68 |
COMBIN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the COMBIN function in the Data Quality Execute Formula step.
Description
Returns the number of combinations for a given number of objects. Use COMBIN to determine the total possible number of groups for a given number of items.
Syntax
COMBIN(number,number_chosen)
The COMBIN function syntax has the following arguments:
- number Required. The number of items. This value cannot be less than zero. It must be greater or cannot be less than number_chosen.
- number_chosen Required. The number of items in each combination. This value cannot be less than zero and cannot be greater than number.
Notes
- Numeric arguments are truncated to integers (for example, 6.8 truncates to 6).
- An error occurs if either argument is nonnumeric.
- An error occurs if either argument is less than 0 or if number is less than number_chosen.
- Unlike a permutation, a combination is any set or subset of items, regardless of their internal order.
- The number of combinations is as follows, where number = n and number_chosen = k.
Example
Calculate number of possible teams that may be created from a set of Candidates.
| Formula | Description | Result |
|---|---|---|
COMBIN([Candidates],2)
|
Possible two-person teams formed from 10 candidates | 45 |
COMBIN([Candidates],3)
|
Possible three-person teams formed from 10 candidates | 120 |
COMBIN([Candidates],5)
|
Possible five-person teams formed from 10 candidates | 252 |
CONCAT function
Type: Text
This topic describes the formula syntax and usage of the CONCAT function in the Execute Formula step.
Description
Joins several text items into one text item.
Syntax
CONCAT(text1,text2,...)
The CONCAT function syntax has the following arguments:
-
text1Required. A field identifier, literal string number, or formula. Numeric values are converted to text. -
text2,...Optional. A field identifier, literal string number, or formula.
Notes
- Enclose literal strings between quotation marks. Numbers do not require quotation marks
- To insert a space in a string, use double quotation marks with a space between them (" ").
- Use "" to insert a double quotation mark within a literal string.
- This function does not ignore empty elements.
Example
Use the following formula to assemble the full name from its parts:
CONCAT([First]," ",[Middle]," ",[Last1]," ",[Last2])
| First | Middle | Last1 | Last2 | Result |
|---|---|---|---|---|
Victoria
|
Luisa
|
Pineda
|
Romero
|
Victoria Luisa Pineda Romero
|
Marco
|
Antonio
|
Manzanares
|
Solis
|
Marco Antonio Manzanares Solis
|
Maria
|
Lourdes
|
Seren
|
Vasquez
|
Maria Lourdes Seren Vasquez
|
Typically, the middle name is optional and the second last name is either omitted or not used in a region, so we can use a formula to omit the space before missing values:
=CONCAT([First],IF(ISBLANK([Middle]),," "),[Middle]," ",[Last1],IF(ISBLANK([Last2]),," "),[Last2])
| First | Middle | Last1 | Last1 | Result |
|---|---|---|---|---|
Victoria
|
Luisa
|
Pineda
|
Victoria Luisa Pineda
|
|
Marco
|
Antonio
|
Manzanares
|
Solis
|
Marco Antonio Manzanares Solis
|
Maria
|
Seren
|
Vasquez
|
Maria Seren Vasquez
|
CONCATENATE function
Type: Text
This topic describes the formula syntax and usage of the CONCATENATE function in the Execute Formula step.
Description
Joins several text items into one text item.
Syntax
CONCATENATE(text1,[text2],...)
The CONCATENATE function syntax has the following arguments:
-
text1Required. A field identifier, literal string number, or formula. Numeric values are converted to text. -
text2,...Optional. A field identifier, literal string number, or formula.
Example
Use the following formula to assemble the full name from its parts:
CONCATENATE([First]," ",[Middle]," ",[Last1]," ",[Last2])
| First | Middle | Last1 | Last2 | Result |
|---|---|---|---|---|
Victoria
|
Luisa
|
Pineda
|
Romero
|
Victoria Luisa Pineda Romero
|
Marco
|
Antonio
|
Manzanares
|
Solis
|
Marco Antonio Manzanares Solis
|
Maria
|
Cruz
|
Seren
|
Vasquez
|
Maria Cruz Seren Vasquez
|
Typically, the middle name is optional and the second last name is either omitted or not used in a region, so we can use a formula to omit the space before missing values:
=CONCATENATE([First],IF(ISBLANK([Middle]),," "),[Middle]," ",[Last1],IF(ISBLANK([Last2]),," "),[Last2])
| First | Middle | Last1 | Last2 | Result |
|---|---|---|---|---|
Victoria
|
Luisa
|
Pineda
|
Victoria Luisa Pineda
|
|
Marco
|
Antonio
|
Manzanares
|
Solis
|
Marco Antonio Manzanares Solis
|
Maria
|
Seren
|
Vasquez
|
Maria Seren Vasquez
|
COS function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the COS function in the Data Quality Execute Formula step.
Description
Returns the cosine of a number.
Syntax
COS(number)
The COS function syntax has the following arguments:
-
numberRequired. The angle in radians for which you want the cosine.
Note
- If the angle is in degrees, either multiply the angle by
PI()/180or use theRADIANSfunction to convert the angle to radians.
Example
| Angle field value | Formula | Description | Cosine |
|---|---|---|---|
| 1.22173 radians |
COS(Angle)
|
Cosine of 1.22173 radians | 0.34202 |
| 70 degrees |
COS(Angle*PI()/180
|
Cosine of 70 degrees | 0.34202 |
| 70 degrees |
COS(RADIANS(Angle))
|
Cosine of 70 degrees | 0.34202 |
COSH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the COSH function in the Execute Formula step.
Description
Returns the hyperbolic cosine of a number.
Syntax
COSH(number)
The COSH function syntax has the following arguments:
-
NumberRequired. Any real number for which you want to find the hyperbolic cosine.
Note
The hyperbolic cosine is the even part of the exponential function:
Example
| Data field | Formula | Description | Result |
|---|---|---|---|
4
|
COS(Data)
|
Hyperbolic cosine of 4 | 27.308233 |
2.718282
|
COS(Data)
|
Hyperbolic cosine of the base of the natural logarithm: |
7.6101251 |
COUNT function
Type: Statistical
This topic describes the formula syntax and usage of the COUNT function in the Execute Formula step.
Description
COUNT([Column1],[Column2],[Column3],[Column4])Syntax
COUNT(value1,value2, ...)
The COUNT function syntax has the following arguments:
-
value1Required. Reference to a field. -
value2, ...Optional. Additional references to fields.
Example
| Id | First_Name | Last_Name | House_Number | Street | City | Postal_Code |
|---|---|---|---|---|---|---|
| 27 | Samuel | Lemon | 433 | Chester Road | London | W64 5HY |
| Formula | Description | Result |
|---|---|---|
COUNT([Id],[First_Name],[Last_Name])
|
Numbers in three separate fields in record. | 1 |
COUNTA function
Type: Statistical
This topic describes the formula syntax and usage of the COUNTA function in the Execute Formula step.
Description
Counts how many fields are not empty.
Syntax
COUNTA(value1,value2, ...)
The COUNTA function syntax has the following arguments:
-
value1Required. Reference to a field. -
value2, ...Optional. Additional references to fields.
Notes
- The COUNTA function counts cells containing any type of information, including error values and empty text (""). For example, if referenced fields contain a formula that returns an empty string, the COUNTA function counts that value. The COUNTA function does not count empty fields.
- If you do not need to count logical values, text, or error values (in other words, if you want to count only fields that contain numbers), use the COUNT function.
- If you want to count only fields that meet certain criteria, use the COUNTIF function.
Example
| Id | First_Name | Last_Name | House_Number | Street | City | Postal_Code |
|---|---|---|---|---|---|---|
| 27 | Lemon | Chester Road | London | W64 5HY |
| Formula | Description | Result |
|---|---|---|
COUNTA([Id],[First_Name],[Last_Name])
|
Non-empty fields in among 3 fields in record. | 2 |
COUNTBLANK function
Type: Statistical
This topic describes the formula syntax and usage of the COUNTBLANK function in the Execute Formula step.
Description
Counts the number of blank fields.
Syntax
COUNTBLANK(range)
The COUNTBLANK function syntax has the following argument:
-
rangeRequired. Range of one or more fields in which to count the blank fields. Every field in a range must be specified.
Note
- A range specifies multiple fields in a single argument. The order does not have to match the
order that columns appear in the sample data table. For example, this range
specifies four columns (1, 3, 5, and 7):
.COUNTBLANK([column7]:[column5]:[column3]:[column1])
Example
| Id | First_Name | Last_Name | House_Number | Street | City | Postal_Code |
|---|---|---|---|---|---|---|
| 27 | Lemon | Chester Road | London | W64 5HY |
| Formula | Description | Result |
|---|---|---|
COUNTBLANK([Id]:[First_Name]:[Last_Name]:[House_Number]:[Street])
|
Blank fields in the first five fields in record. | 3 |
COUNTBLANK([House_Number]:[Street]:[City]:[Postal_Code])
|
Non-empty fields in last four fields in record. | 3 |
DATE function
Type: Date and time
This topic describes the formula syntax and usage of the DATE function in the Execute Formula step.
Description
Returns the sequential serial number that represents a particular date.
Syntax
DATE(year,month,day)
The DATE function syntax has the following arguments:
-
yearRequired. The value of the year argument can include one to four digits. Data Integrity Suite interprets the year argument according to the date system your computer is using. By default, this is the 1900 date system, which means the first date is January 1, 1900.- If
yearis between 0 and 1899 (inclusive), the value is added to 1900 to calculate the year. For example,DATE(108,1,2)returns January 2, 2008 (1900+108). - An error is generated if
yearis less than 0 or is 10000 or greater.
Tip: Use four digits for the year argument to prevent unwanted results. For example, "07" could mean "1907" or "2007." Four digit years are explicit. - If
-
monthRequired. A positive or negative integer representing the month of the year from 1 to 12 (January to December).- If
monthis greater than 12, that number of months is added to the first month in the specifiedyear. - If
monthis less than one, that number of months plus 1 is subtracted from the first month in the specifiedyear. For exampleDATE(2008,-3,2)returns the serial number representing September 2, 2007.
- If
-
dayRequired. A positive or negative integer representing the day of the month from 1 to 31.- If day is greater than the number of days in the month specified, day adds that number of days to the first day in the month. For example,
DATE(2008,1,35)returns the serial number representing February 4, 2008. - If day is less than 1, day subtracts the magnitude that number of days, plus one, from the first day of the month specified. For example, DATE(2008,1,-15) returns the serial number representing December 16, 2007.
- If day is greater than the number of days in the month specified, day adds that number of days to the first day in the month. For example,
Note
- Dates are stored as sequential serial numbers so that they can be used in calculations. January 1, 1900 is serial number 1, and July 16, 1969 is serial number 25400 because it is 25,400 days after January 1, 1900. The number format must be set to Date in output column to display a proper date. An output column set to Integer will show the sequential serial number.
Example
DATE([Year],[Month],[Day])
| Year | Month | Day | Result (date) | Result (integer) |
|---|---|---|---|---|
| 1994 | 1 | 1 | 1994-01-01 | 34335 |
| 1994 | 4 | 14 | 1994-04-14 | 34438 |
| 1994 | 12 | 6 | 1994-12-06 | 34674 |
DATEVALUE function
Type: Date and time
This topic describes the formula syntax and usage of the DATEVALUE function in the Execute Formula step.
Description
Converts a date in the form of text to a serial number. This function is useful to convert dates to a format that can be sorted, formatted, or used in date calculations.
To view a date serial number as a date, you must apply the date format to the output column.
Syntax
DATEVALUE(date_text)
The DATEVALUE function syntax has the following argument:
-
date_textRequired Reference to a column that contains dates in date format.
DAY function
Type: Date and time
This topic describes the formula syntax and usage of the DAY function in the Execute Formula step.
Description
Converts a serial number to a day of the month.
Syntax
DAY(serial_number)
Example
Day([Date])
| Date (date field) | Serial number (integer) | Result |
|---|---|---|
| 2021-08-15 | 44423 | 15 |
| 1954-02-03 | 34733 | 3 |
| 2022-06-05 | 44717 | 5 |
DAYS360 function
Type: Date and time
This topic describes the formula syntax and usage of the DAYS360 function in the Execute Formula step.
Description
Calculates the number of days between two dates based on a 360-day year. The 360-day year is used in some accounting calculations based on twelve 30-day months.
Syntax
DAYS360(start_date,end_date,[method])
The DAYS360 function syntax has the following arguments:
-
Start_date, end_dateRequired. The two dates between which you want to know the number of days. Ifstart_dateoccurs afterend_date, the DAYS360 function returns a negative number. Dates should be entered by using the DATE function, or derived from the results of other formulas or functions. For example, useDATE(2008,5,23)to return the 23rd day of May, 2008. Problems can occur if dates are entered as text. -
MethodOptional. A logical value that specifies whether to use the U.S. or European method in the calculation.Method Defined FALSE or omitted U.S. (NASD) method. If the starting date is the last day of a month, it becomes equal to the 30th day of the same month. If the ending date is the last day of a month and the starting date is earlier than the 30th day of a month, the ending date becomes equal to the 1st day of the next month; otherwise the ending date becomes equal to the 30th day of the same month. TRUE European method. Starting dates and ending dates that occur on the 31st day of a month become equal to the 30th day of the same month.
Example
DAYS360([Start_Date],[End_Date])
| Start_Date | End_Date | Description | Result |
|---|---|---|---|
1-Feb-21
|
31-Dec-21
|
Number of days between 1/2/2021 and 12/31/2021. |
358
|
30-Jan-21
|
31-Dec-21
|
Number of days between 1/30/2021 and 12/31/2021 |
330
|
20-Mar-21
|
31-Dec-21
|
Number of days between 1/30/2021 and 12/31/2021 |
280
|
DEGREES function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the DEGREES function in the Execute Formula step.
Description
Converts radians to degrees.
Syntax
DEGREES(angle)
The DEGREES function syntax has the following argument:
-
angleRequired. The angle in radians to convert to degrees.
Example
3.1415927 in the Angle field (Ï€ rounded to 7 decimal digits).| Formula | Description | Result |
|---|---|---|
| DEGREES([Angle]) | Convert π-radians to degrees. |
180
|
DEVSQ function
Type: Statistical
This topic describes the formula syntax and usage of the DEVSQ function in the Execute Formula step.
Description
Returns the sum of squares of deviations from a sample mean.
Syntax
DEVSQ(number1, [number2], ...)
The DEVSQ function syntax has the following arguments:
-
number1, number2, ...The first argument is required. Subsequent numbers are optional. Arguments for which to calculate the sum of squared deviations.
Notes
- Each argument can reference a single column or a range of columns. A range must specify all columns to include in any order.
- Referenced fields that contain text, logical values, or are empty cells, are ignored.
- Referenced field that contain the value zero are included.
- Error values or text that cannot be translated into numbers cause errors.
- The equation for the sum of squared deviations is:DEVSQ = Σ(x – x)2
Example
| Col1 | Col2 | Col3 | Col4 | Col5 | Col6 | Col7 |
|---|---|---|---|---|---|---|
55
|
62
|
35
|
32
|
50
|
57
|
54
|
| Formula | Description | Result |
|---|---|---|
DEVSQ([Col1]:[Col2]:[Col3]:[Col4]:[Col5]:[Col6]:[Col7])
|
Sum of squares for range of fields in one argument, |
779.4286
|
DEVSQ([Col1],[Col2],[Col3],[Col4],[Col5],[Col6],[Col7])
|
Sum of squares for series of fields in multiple arguments. |
779.4286
|
ERROR.TYPE function
Type: Informational
This topic describes the formula syntax and usage of the ERROR.TYPE function in the Execute Formula step.
Description
Returns a number corresponding to an error type.
Syntax
ERROR.TYPE(error_val)
Example
EVEN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the EVEN function in the Execute Formula step.
Description
Rounds a number up to the nearest even integer.
Syntax
EVEN(number)
The EVEN function syntax has the following argument:
-
numberRequired. The value to round.
Notes
- If a
numberis nonnumeric, EVEN returns an error. - Number is rounded up from zero regardless of the sign of the number.
Example
| Data | Formula | Description | Result |
|---|---|---|---|
| 3 | Even([Data]) | Rounds 3 up to nearest even integer | 4 |
| -3 | Even([Data]) | Rounds -3 up to nearest even integer | -4 |
| 1.5 | Even([Data]) | Rounds 1.5 up to nearest even integer | 2 |
| 2 | Even([Data]) | Rounds 2 up to nearest even integer | 2 |
| 3.5 | Even([Data]) | Rounds 3.5 up to nearest even integer | 4 |
EXACT function
Type: Text
This topic describes the formula syntax and usage of the EXACT function in the Execute Formula step.
Description
Checks to see if two text values are identical. Returns TRUE if they are exactly the same, FALSE otherwise. EXACT is case-sensitive.
Syntax
EXACT(text1,text2)
The EXACT function syntax has the following arguments:
- text1 Required. The first text string.
- text2 Required. The second text string.
Example
| First_String | Second_String | Formula | Description | Result |
|---|---|---|---|---|
| Apples | Apples |
EXACT([First_String],[Second_String])
|
Checks whether two identical strings match. |
TRUE
|
| Apples | apples |
EXACT([First_String],[Second_String])
|
Checks whether same string with different capitalization matches. | FALSE |
| Apples | Oranges |
EXACT([First_String],[Second_String])
|
Checks whether two different strings match. | FALSE |
EXP function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the EXP function in the Execute Formula step.
Description
Returns the mathematical constant e raised to the power of a given number. The constant e is approximately equal to 2.71828182845904, the base of the natural logarithms. It is also the limit of (1 + 1/n)n as n approaches infinity.
Syntax
EXP(number)
The EXP function syntax has the following argument:
-
number Required. The exponent applied to the base e.
Notes
- To calculate powers of other bases, use the exponentiation operator (
^). - EXP is the inverse of LN, the natural logarithm of
number.
Example
| Data | Formula | Description | Result |
|---|---|---|---|
| 1 |
EXP(Data)
|
Approximate value of e. |
2.71828183
|
| 2 |
EXP(Data)
|
Base of the natural logarithm e raised to the power of two. |
7.3890561
|
FACT function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the FACT function in the Execute Formula step.
Description
Returns the factorial of a number. The factorial of a number is equal to 1*2*3*...*number
Syntax
FACT(number)
The FACT function syntax has the following argument:
-
numberRequired. A nonnegative number for which to calculate the factorial. If number is not an integer, it is truncated.
Example
| Formula | Description | Result |
|---|---|---|
FACT([Number1])
|
Factorial of 5, or 1*2*3*4*5 |
120
|
FACT([Number2])
|
Factorial of 2.8 (truncates to 2) |
2
|
FACT([Number3])
|
Factorial of 0 is always 1 |
1
|
FACT([Number4])
|
Factorial of a negative number returns an error. |
|
FACT([Number5])
|
Factorial of 1 |
1
|
FALSE function
Type: Logical
This topic describes the formula syntax and usage of the FALSE function in the Execute Formula step.
Description
Returns the logical value FALSE.
Note
- You can also type the word FALSE directly into the formula, which Data Integrity Suite interprets as the logical value FALSE.
Syntax
FALSE()
The FALSE function syntax has no arguments.
Example
| Formula | Description | Result |
|---|---|---|
FALSE()
|
False function returns FALSE. | FALSE |
FALSE
|
FALSE is interpreted as FALSE. | FALSE |
FIND function
Type: Text
This topic describes the formula syntax and usage of the FIND function in the Execute Formula step.
Description
Finds one text value within another (case-sensitive). The function returns the number of the starting position of the first text string from the first character of the second text string.
Syntax
FIND(find_text, within_text, [start_number])
-
find_textRequired. The text to be found. -
within_textRequired. The text to be search. -
start_numberOptional. Specifies the character position at which to start the search, starting with 1. The default if omitted is 1.
Notes
- This function may not be available for all languages.
- FIND is intended for use with languages that use the single-byte character set (SBCS).
- FIND always counts each character, whether single-byte or double-byte, as 1, no matter what the default language setting is.
Examples
Adromeda Galaxy in the Astronomy field.| Formula | Description | Result |
|---|---|---|
FIND("A",[Astronomy])
|
Position of first "A" in the Astronomy field | 1 |
FIND("a",[Astronomy])
|
Position of first "a" in the Astronomy field | 8 |
FIND("A",[Astronomy],9)
|
Position of second "a" in the Astronomy field | 11 |
FIXED function
Type: Text
This topic describes the formula syntax and usage of the FIXED function in the Execute Formula step.
Description
Formats a number as text with a fixed number of decimals.
Syntax
FIXED(number, [decimals], [no_commas])
The FIXED function syntax has the following arguments:
-
numberRequired. The number you want to round and convert to text. -
decimalsOptional. The number of digits to the right of the decimal point. If you omit this argument, the default is 2. -
no_commasOptional. A logical value that, if TRUE, prevents FIXED from including commas in the returned text.
Notes
- Numbers can never have more than 15 significant digits, but decimals can be as large as 127.
- If
decimalsis negative,numberis rounded to the left of the decimal point. - If
no_commasis FALSE or omitted, then the returned text includes commas.
Example
| Number1 | Number2 | Number3 |
|---|---|---|
| 1543.456 | -1543.456 | 88.442 |
| Formula | Description | Result |
|---|---|---|
FIXED([Number1],1]
|
Rounds the number in field Number1 to one digit to the right of the decimal point. |
1,543.5
|
FIXED([Number1],-1]
|
Rounds the number in field Number1 to one digit to the left of the decimal point. |
1,540.
|
FIXED([Number2],-1,TRUE]
|
Rounds the number in Number2 one digit to the left of the decimal point, without commas. |
-1540.
|
FIXED([Number3]]
|
Rounds the number in field Number3 to two digits to the right of the decimal point. |
88.44
|
FLOOR function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the FLOOR function in the Execute Formula step.
Description
Rounds a number down, toward zero.
Syntax
FLOOR(number,significance)
The FLOOR function syntax has the following arguments:
-
number Required. The numeric value you want to round. -
significance Required. The multiple to which you want to round.
Notes
- If either argument is nonnumeric, FLOOR returns an error.
- If number is positive and significance is negative, FLOOR returns an error.
- If the sign of number is positive, a value is rounded down and adjusted toward zero. If the sign of number is negative, a value is rounded down and adjusted away from zero. If number is an exact multiple of significance, no rounding occurs.
Example
| Number1 | Number2 | Number3 | Number4 | Number5 |
|---|---|---|---|---|
3.7
|
-2.5
|
2.5
|
1.58
|
0.234
|
| Formula | Description | Result |
|---|---|---|
FLOOR([Number1],2)
|
Rounds 3.7 down to nearest multiple of 2. |
2
|
FLOOR([Number2],-2)
|
Rounds -2.5 down to nearest multiple of -2. |
-2
|
FLOOR([Number3],-2)
|
Returns an error, because 2.5 and -2 have different signs. | |
FLOOR([Number4],0.1)
|
Rounds 1.58 down to the nearest multiple of 0.1. |
1.5
|
FLOOR([Number5],0.01)
|
Rounds 0.234 down to the nearest multiple of 0.01. |
0.23
|
FV function
Type: Financial
This topic describes the formula syntax and usage of the FV function in the Execute Formula step.
Description
Returns the future value of an investment based on a constant interest rate. You can use FV with either periodic, constant payments, or a single lump sum payment.
Syntax
FV(rate,nper,pmt,[pv],[type])
The FV function syntax has the following arguments:
-
rateRequired. The interest rate per period. -
nperRequired. The total number of payment periods in an annuity -
pmtRequired. The payment made each period; it cannot change over the life of the annuity. Typically,pmtcontains principal and interest but no other fees or taxes. Ifpmtis omitted, you must include thepvargument. -
pvOptional. The present value, or the lump-sum amount that a series of future payments is worth right now. Ifpvis omitted, it is assumed to be 0 (zero), and you must include thepmtargument. -
typeOptional. The number 0 or 1 and indicates when payments are due. Set this to 0 if at the beginning of the period. Set this to 1 if at the end of the period. If type is omitted, it is assumed to be 0.
GEOMEAN function
Type: Statistical
This topic describes the formula syntax and usage of the GEOMEAN function in the Execute Formula step.
Description
Returns the geometric mean of a range of positive data. For example, you can use GEOMEAN to calculate average growth rate given compound interest with variable rates.
Syntax
GEOMEAN(number1, [number2], ...)
The GEOMEAN function syntax has the following arguments:
-
number1,number2, ... The first argumentnumber1is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate the mean. You can use a range of columns in place of any argument.
Notes
- If an array or reference argument contains text, logical values, or empty fields, those values are ignored; however, fields with the value zero are included.
- Arguments that are error values or text that cannot be translated into numbers cause errors.
- If any data point
≤ 0, GEOMEAN generates an error. - The equation for the geometric mean is.
- A range specifies multiple fields separated by colons in a single argument in any order.
Example
HOUR function
Type: Date and time
This topic describes the formula syntax and usage of the HOUR function in the Execute Formula step.
Description
Converts a serial number to an hour. The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Syntax
HOUR(serial_number)
The HOUR function syntax has the following argument:
-
Serial_numberRequired. The time that contains the hour you want to find. Times may be entered as text strings within quotation marks (for example,"6:45 PM"), as decimal numbers (for example,0.78125, which represents 6:45 PM), or as results of other formulas or functions (for example,TIMEVALUE("6:45 PM")).
Note
- Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented as
0.5because it is half of a day).
Example
IF function
Type: Logical
This topic describes the formula syntax and usage of the IF function in the Execute Formula step.
Description
Specifies a value returned if an expression is true or false.
Syntax
IF(logical_expression,value_if_true,value_if_false)
-
logical_expressionThe logical expression to be evaluated by the IF statement. -
value_if_trueThe value, reference, or expression if True. -
value_if_falseThe value, reference, or expression if False.
Example
The following returns "Solvent" if the value in the AccountBalance field is greater than or equal to zero or "Insolvent" if the value is less than zero.
IF([AccountBalance]>=0,"Solvent","Insolvent")
IPMT function
Type: Financial
This topic describes the formula syntax and usage of the IPMT function in the Execute Formula step.
Description
Returns the interest payment for an investment for a given period. This is based on periodic, constant payments and a constant interest rate.
Syntax
IPMT(rate, per, nper, pv, [fv], [type])
The IPMT function syntax has the following arguments:
-
rateRequired. The interest rate per period. -
perRequired. The period to find the interest. This must be in the range 1 to nper. -
nperRequired. The total number of payment periods in an annuity. -
pvRequired. The present value, or the lump-sum amount that a series of future payments is worth right now. -
fvOptional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0). -
typeOptional. The number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.- 0 — Payments are due at the end of the period.
- 1 — Payments are due at the beginning of the period.
Notes
-
Make sure to use consistent units to specify rate and nper. For monthly payments on a four-year loan at 12 percent annual interest, use
.12/12for rate and4*12for nper. For annual payments on the same loan, use.12for rate and4for nper. -
For all the arguments, cash paid out is represented by negative numbers; cash received is represented by positive numbers.
Example
| Rate | Period | Nper | PV |
|---|---|---|---|
| .10 | 1 | 3 | 8000 |
| Formula | Description | Result |
|---|---|---|
IPMT([Rate]/12,[Period],[Nper],[PV])
|
Interest due in the first month for a loan with the terms in shown in the preceding table | -66.666664 |
IPMT([Rate],3,[Nper],[PV])
|
Interest due in the last year for a loan with the same terms, where payments are made yearly. | -292.44714 |
ISBLANK function
Type: Informational
This topic describes the formula syntax and usage of the ISBLANK function in the Execute Formula step.
Description
Returns TRUE if the value is blank.
Syntax
ISBLANK(value)
The ISBLANK function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Note
- This function returns 1 for true or 0 for false. These show as
trueorfalsein a Boolean field. - The ISBLANK function is useful to test the contents of a field or the outcome of a calculation.
Example
| Formula | OpenDate | Result (Boolean field) | Result (Integer field) | |
|---|---|---|---|---|
ISBLANK([OpenDate])
|
2020-06-06 | OpenDate field has content. | false | 0 |
ISBLANK([OpenDate])
|
OpenDate field is empty. | true | 1 |
ISERR function
Type: Informational
This topic describes the formula syntax and usage of the ISERR function in the Execute Formula step.
Description
Returns TRUE if the value is any error value except #N/A.
Syntax
ISERR(value)
The ISERR function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Note
- This function returns 1 for true or 0 for false. These show as
trueorfalsein a Boolean field.
Example
| N1 | N2 |
|---|---|
| 5 | 4 |
| 5 | 0 |
| Formula | Description | Result (Boolean field) | Result (Integer field) |
|---|---|---|---|
ISERR([N1]/[N2])
|
Normal division. | false | 0 |
ISERR([N1]/[N2])
|
Divide by zero error. | true | 1 |
ISERROR function
Type: Informational
This topic describes the formula syntax and usage of the ISERROR function in the Execute Formula step.
Description
Returns TRUE if the value is any error value.
Syntax
ISERROR(value)
The ISERROR function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Note
- This function returns 1 for true or 0 for false. These show as
trueorfalsein a Boolean field.
Example
| N1 | N2 |
|---|---|
| 5 | 4 |
| 5 | 0 |
| Formula | Description | Result (Boolean field) | Result (Integer field) |
|---|---|---|---|
ISERROR([N1]/[N2])
|
Normal division. | false | 0 |
ISERROR([N1]/[N2])
|
Divide by zero error. | true | 1 |
ISLOGICAL function
Type: Informational
This topic describes the formula syntax and usage of the ISLOGICAL function in the Execute Formula step.
Description
Returns TRUE if the value is a logical value.
Syntax
ISLOGICAL(value)
The ISLOGICAL function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a column reference or formula.
Example
ISNA function
Type: Informational
This topic describes the formula syntax and usage of the ISNA function in the Execute Formula step.
Description
Returns TRUE if the value is the #N/A error value.
Syntax
ISNA(value)
The ISNA function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Example
ISNONTEXT function
Type: Informational
This topic describes the formula syntax and usage of the ISNONTEXT function in the Execute Formula step.
Description
Returns true if the value is not text. This his function returns true for values in a non-String. Note that it returns true for empty cells.
Syntax
ISNONTEXT(value)
The ISNONTEXT function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a column reference or formula.
ISNUMBER function
Type: Informational
This topic describes the formula syntax and usage of the ISNUMBER function in the Execute Formula step.
Description
Returns TRUE if the value is a number.
Syntax
ISNUMBER(value)
The ISNUMBER function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Example
ISTEXT function
Type: Informational
This topic describes the formula syntax and usage of the ISTEXT function in the Execute Formula step.
Description
Returns TRUE if the value is text.
Syntax
ISTEXT(value)
The ISTEXT function syntax has the following argument:
-
valueRequired. The value that you want tested. The value argument can be a blank (empty field), error, logical value, text, number, or reference value, or a column reference referring to any of these.
Example
LARGE function
Type: Statistical
This topic describes the formula syntax and usage of the LARGE function in the Execute Formula step.
Description
Returns the k-th largest value in a data set. If n is the number of columns in a range, LARGE(range,1) returns the largest value and LARGE(range,n) returns the smallest value in a row.
Syntax
LARGE(range,k)
The LARGE function has the following arguments.
-
rangeRequired. Range of columns in the format[column1]:[column2] ... :[columnN]. -
kRequired. The position (from the largest) in the array or cell range of data to return.
Notes
- All columns to include in the calculation must be specified in a range. Columns can be in any order.
- If range is empty, LARGE returns the #NUM! error value 6.
- If
k ≤ 0or ifkis greater than the number of data points in a range, then large returns the #NUM! error value 6.
Example
| c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 | c10 |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 100 | 90 | 80 | 70 | 60 | 50 | 40 | 30 | 20 | 10 |
| Formula | Description | Result |
|---|---|---|
LARGE([c1]:[c2]:[c3]:[c4]:[c5]:[c6]:[c7]:[c8]:[c9]:[c10],3)
|
Third largest value among 10 columns. |
8 and 80 |
LARGE([c1]:[c2]:[c3]:[c4]:[c5]:[c6]:[c7]:[c8]:[c9]:[c10],7)
|
Seventh largest value among 10 columns. |
4 and 40 |
LN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the LN function in the Execute Formula step.
Description
Returns the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
Syntax
LN(number)
The LN function syntax has the following argument:
-
numberRequired. The positive real number for the natural logarithm.
Notes
- LN is the inverse of the EXP function.
- The argument
number ≤ 0returns the #NUM! error value 6. The natural logarithm is only defined for positive values.
Example
LN([Value])
| Value | Description | Result |
|---|---|---|
86
|
Natural logarithm of 86. |
4.4543473
|
2.7182818
|
Natural logarithm of e. |
1
|
20.0855369231877
|
Natural logarithm of 20.0855369231877 (e raised to the power of 3). |
3
|
LOG function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the LOG function in the Execute Formula step.
Description
Returns the logarithm of a number to a specified base (default is 10).
Syntax
LOG(number,[base])
The LOG function syntax has the following arguments:
-
NumberRequired. The positive real number for which you want the logarithm. -
BaseOptional. The base of the logarithm. If base is omitted, it is assumed to be 10.
Example
| Value | Formula | Description | Result |
|---|---|---|---|
10
|
LOG([Value])
|
Logarithm of 10. The base is equal to 10 when it is omitted. |
1
|
8
|
LOG([Value],2)
|
Logarithm of 8 with base 2. The result is the power to which the base must be raised to equal 8. |
3
|
86
|
LOG([Value],2.7182818)
|
Logarithm of 86 with base e (approximately 2.718). The result is the power to which the base must be raised to equal 86. |
4.4543473
|
LOG10 function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the LOG10 function in the Execute Formula step.
Description
Returns the base-10 logarithm of a number.
Syntax
LOG10(number)
The LOG10 function syntax has the following argument:
-
NumberRequired. The positive real number for which to find the base-10 logarithm.
Example
| Value | Formula | Description | Result |
|---|---|---|---|
| 86 |
LOG10(Value)
|
Base 10 logarithm of 86. The power to raise 10 to 86. | 1.9345 |
| 10 |
LOG10(Value)
|
Base 10 logarithm of 10. The power to raise 10 to 10. | 1 |
| 100 |
LOG10(Value)
|
Base 10 logarithm of 100. The power to raise 10 to 100. | 10 |
| 1 |
LOG10(Value)
|
Base 10 logarithm of 1. | 0 |
LOWER function
Type: Text
This topic describes the formula syntax and usage of the LOWER function in the Execute Formula step.
Description
Converts text to lowercase. For example,
LOWER([LastName])
Syntax
LOWER(text)
Example
MAX function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MAX function in the Execute Formula step.
Description
Returns the maximum value in a set of values.
Syntax
MAX(number1, [number2], ...)
The MAX function has the following arguments
-
number1Required. Value, column, or field to be evaluated. -
number2, ...Optional. Subsequent values, columns, or ranges to be evaluated.
Notes
- Arguments can be numbers, column references or ranges of columns. A range specifies multiple fields in any order.
- If an argument is an array or field, only numbers in that array or field are used. Empty cells, logical values, or text in the array or field are ignored.
- If the arguments contain no numbers, MAX returns 0 (zero).
- Arguments that are error values or text that cannot be translated into numbers cause errors.
- If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the MAXA function.
Example
| Col1 | Col2 | Col3 | Col4 | Col5 |
|---|---|---|---|---|
| 77 | 23 | 20 | 7 | 2 |
| Formula | Description | Result |
|---|---|---|
MAX([Col1]:[Col2]:[Col3]:[Col4]:[Col5])
|
The maximum of values in range of five columns. |
77
|
MAX([Col2]:[Col3],[Col5])
|
The maximum of values in range and a single column. |
23
|
MAX([Col1]:[Col2]:[Col3]:[Col3]:[Col5],100)
|
The maximum of values in range of five columns and a single value. |
100
|
MAXA function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MAXA function in the Execute Formula step.
Description
Returns the maximum value in a list of arguments, including numbers, text, and logical values.
Syntax
MAXA(value1,[value2],...)
The MAXA function has the following arguments
-
value1Required. Value, column, or range to be evaluated. -
value2, ...Optional. Subsequent values, columns, or ranges to be evaluated.
Notes
- Arguments can be the following: numbers; column names, ranges. Values in referenced fields can be numbers, text representations of numbers, or logical values.
- A range specifies multiple fields separated by colons in a single argument.
Every field to be included must be specified. For example,
[column1]:[column3]:[column4]specifies three columns. - Logical values and text representations of numbers in the list of arguments are counted.
- If an argument is an range or a single field, only values in that range or field are used. Empty fields and text values are ignored.
- Arguments that cannot be translated into numbers cause errors.
- Boolean arguments that contain true evaluate as 1. Boolean arguments that contain false evaluate as 0.
- If the arguments contain no values, MAXA returns 0 (zero).
- If you do not want to include logical values and text representations of numbers in a reference as part of the calculation, use the MAX function.
Example
| Col1 | Col2 | Col3 | Col4 | Col5 |
|---|---|---|---|---|
0
|
0.2
|
0.3
|
0.4
|
true
|
| Formula | Description | Result |
|---|---|---|
MAXA([Col1]:[Col2]:[Col3]:[Col4]:[Col5])
|
The largest value in the range. Because the Boolean value true calculates to 1, it is the largest. |
1
|
MDETERM function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MDETERM function in the Execute Formula step.
Description
Returns the matrix determinant of an array.
Syntax
MDETERM(array)
Example
MEDIAN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MEDIAN function in the Execute Formula step.
Description
Returns the median of the given numbers. This function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution.
Syntax
MEDIAN(number1, [number2], ...)
The MEDIAN function has the following arguments
-
number1Required. The first number for the median. -
number2,...Optional. Subsequent numbers for the median.
Notes
- If there is an even number of numbers in the set, then MEDIAN calculates the average of the two numbers in the middle. See the second formula in the example.
- Arguments can be numbers, or fields or ranges of fields that contain numbers. A range specifies multiple fields separated by colons on a single argument.
- Logical values and text representations of numbers in the list of arguments are counted.
- If a range or field reference in an argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
- Arguments that cannot be translated into numbers cause errors.
Example
| Column1 | Column2 | Column3 | Column4 | Column5 | Column6 |
|---|---|---|---|---|---|
1
|
2
|
3
|
4
|
5
|
6
|
| Formula | Description | Result |
|---|---|---|
MEDIAN([Column1]:[Column2]:[Column3]:[Column4]:[Column5]
|
There are five numbers in this range. The third number is the median |
3
|
MEDIAN([Column1]:[Column2]:[Column3]:[Column4]:[Column5]:[Column6]
|
There are six numbers in this range. The median is the midway point between the third and fourth numbers. |
3.5
|
MEDIAN([Column1],[Column2],[Column3],[Column4],[Column5],[Column6]
|
There are six numbers in six fields. The median is the midway point between the third and fourth numbers. |
3.5
|
MID function
Type: Text
This topic describes the formula syntax and usage of the MID function in the Execute Formula step.
Description
Returns a specific number of characters from a text string starting at the position you specify.
Syntax
MID(text, start_num, num_chars)
Example
MIN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MIN function in the Execute Formula step.
Description
Returns the minimum value in a list of arguments.
Syntax
MIN(number1, [number2], ...)
Example
MINA function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MINA function in the Execute Formula step.
Description
Returns the smallest value in a list of arguments, including numbers, text, and logical values.
Syntax
MINA(value1,[value2],...)
Example
MINUTE function
Type: Date and time
This topic describes the formula syntax and usage of the MINUTE function in the Execute Formula step.
Description
Converts a serial number to a minute.
Syntax
MINUTE(serial_number)
Example
MINVERSE function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MINVERSE function in the Execute Formula step.
Description
Returns the matrix inverse of an array.
Syntax
MINVERSE(array)
Example
MIRR function
Type: Financial
This topic describes the formula syntax and usage of the MIRR function in the Execute Formula step.
Description
Returns the internal rate of return where positive and negative cash flows are financed at different rates.
Syntax
MIRR(values, finance_rate, reinvest_rate)
Example
MMULT function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MMULT function in the Execute Formula step.
Description
Returns the matrix product of two arrays.
Syntax
MMULT(array1,array2)
Example
MOD function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MOD function in the Execute Formula step.
Description
Returns the remainder from division.
Syntax
MOD(number,divisor)
Example
MODE function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the MODE function in the Execute Formula step.
Description
Returns the most frequently occurring number in a numeric data set.
Syntax
MODE(number1,[number2],...)
Example
MONTH function
Type: Date and time
This topic describes the formula syntax and usage of the MONTH function in the Execute Formula step.
Description
Converts a serial number to a month.
Syntax
MONTH(serial_number)
Example
NA function
Type: Informational
This topic describes the formula syntax and usage of the NA function in the Execute Formula step.
Description
Returns the error value #N/A.
Syntax
NA()
Example
NOT function
Type: Logical
This topic describes the formula syntax and usage of the NOT function in the Execute Formula step.
Description
Reverses the logic of its argument.
Syntax
NOT(logical_expression1)
Example
NOW function
Type: Date and time
This topic describes the formula syntax and usage of the NOW function in the Execute Formula step.
Description
Returns the serial number of the current date and time.
Syntax
NOW()
Example
NPER function
Type: Financial
This topic describes the formula syntax and usage of the NPER function in the Execute Formula step.
Description
Returns the number of periods for an investment.
Syntax
NPER(rate,pmt,pv,[fv],[type])
Example
NPV function
Type: Financial
This topic describes the formula syntax and usage of the NPV function in the Execute Formula step.
Description
Returns the net present value of an investment based on a series of periodic cash flows and a discount rate.
Syntax
NPV(rate,value1,[value2],...)
Example
ODD function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ODD function in the Execute Formula step.
Description
Rounds a number up to the nearest odd integer.
Syntax
ODD(number)
Example
OR function
Type: Logical
This topic describes the formula syntax and usage of the OR function in the Execute Formula step.
Description
Returns TRUE if any argument is TRUE.
Syntax
OR(logical_expression1,logical_expression2,...)
Example
PI function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the PI function in the Execute Formula step.
Description
Returns the value of π (or pi).
Syntax
PI()
Example
PMT function
Type: Financial
This topic describes the formula syntax and usage of the PMT function in the Execute Formula step.
Description
Returns the periodic payment for an annuity.
Syntax
PMT(rate, nper, pv, [fv], [type])
Example
POISSON function
Type: Statistical
This topic describes the formula syntax and usage of the POISSON function in the Execute Formula step.
Description
Returns the Poisson distribution.
Syntax
POISSON(x,mean,cumulative)
Example
POWER function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the POWER function in the Execute Formula step.
Description
Returns the result of a number raised to a power.
Syntax
POWER(number,power)
Example
PPMT function
Type: Financial
This topic describes the formula syntax and usage of the PPMT function in the Execute Formula step.
Description
Returns the payment on the principal for an investment for a given period.
Syntax
PPMT(rate, per, nper, pv, [fv], [type])
Example
PRODUCT function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the PRODUCT function in the Execute Formula step.
Description
Multiplies the arguments.
Syntax
PRODUCT(number1,[number2],...)
Example
PROPER function
Type: Text
This topic describes the formula syntax and usage of the PROPER function in the Execute Formula step.
Description
Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter, such as a space. Converts all other letters to lowercase.
The following expression capitalizes the first letter of each name in a concatenated full name.
PROPER([FirstName]&" "&[MiddleName]&" "&[LastName])
Syntax
PROPER(text)
Example
PV function
Type: Financial
This topic describes the formula syntax and usage of the PV function in the Execute Formula step.
Description
Returns the present value of an investment.Returns the present value of an investment.
Syntax
PV(rate, nper, pmt, [fv], [type])
Example
RADIANS function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the RADIANS function in the Execute Formula step.
Description
Converts degrees to radians.
Syntax
RADIANS(angle)
Example
RAND function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the RAND function in the Execute Formula step.
Description
Returns a random number between 0 and 1.
Syntax
RAND()
Example
RATE function
Type: Financial
This topic describes the formula syntax and usage of the RATE function in the Execute Formula step.
Description
Returns the interest rate per period of an annuity.
Syntax
RATE(nper, pmt, pv, [fv], [type], [guess])
Example
REPLACE function
Type: Text
This topic describes the formula syntax and usage of the REPLACE function in the Execute Formula step.
Description
Replaces characters in text.
Syntax
REPLACE(old_text, start_num, num_chars, new_text)
Example
REPT function
Type: Text
This topic describes the formula syntax and usage of the REPT function in the Execute Formula step.
Description
Repeats text a given number of times.
Syntax
REPT(text,number_times)
Example
RIGHT function
Type: Text
This topic describes the formula syntax and usage of the RIGHT function in the Execute Formula step.
Description
Returns the rightmost characters from a text value.
Syntax
RIGHT(text,[num_chars])
Example
ROMAN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ROMAN function in the Execute Formula step.
Description
Converts an Arabic numeral to Roman, as text.
Syntax
ROMAN(number, [form])
Example
ROUND function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ROUND function in the Execute Formula step.
Description
Rounds a number to a specified number of digits. This should not be confused with formatting to a specified decimal places. For example, ROUND([AngularVelocity],3).
Syntax
ROUND(number, number_digits)
The ROUND function syntax has the following arguments:
- number Required. The number to round.
- number_digits Required. The number of digits to which you want to round the number argument.
Notes
- If number_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places.
- If number_digits is 0, the number is rounded to the nearest integer.
- If number_digits is less than 0, the number is rounded to the left of the decimal point.
- To always round up (away from zero), use the ROUNDUP function.
- To always round down (toward zero), use the ROUNDDOWN. function.
Examples
The following examples show various results for values in the Number field.
| Formula | Description | Result |
|---|---|---|
ROUND([Number], 3)
|
Rounds 2.2861 to three decimal places. | 2.286 |
ROUND([Number], 2)
|
Rounds 2.2861 to two decimal places. | 2.29 |
ROUND([Number], 1)
|
Rounds 33.5 to one decimal left of the decimal point. | 30 |
ROUND([Number], -3)
|
Rounds 721.4 to the nearest multiple of 1000. | 1000 |
ROUND([Number], -2)
|
Rounds -50.55 to the nearest multiple of 100. | -100 |
ROUNDDOWN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ROUNDDOWN function in the Execute Formula step.
Description
Rounds a number down, toward zero. ROUNDDOWN behaves like ROUND, except that it always rounds a number down.
Syntax
ROUNDDOWN(number, number_digits)
The ROUNDDOWN function syntax has the following arguments:
- number Required. A real number to round down.
- number_digits Required. The number of digits to which to round the number.
Notes
- If number_digits is greater than 0 (zero), then number is rounded down to the specified number of decimal places.
- If number_digits is 0, then number is rounded down to the nearest integer.
- If number_digits is less than 0, then number is rounded down to the left of the decimal point.
Examples
The following examples show various results for values in the Number field.
| Formula | Description | Result |
|---|---|---|
ROUNDDOWN([Number], 0)
|
Rounds 4.3 to zero places. | 4 |
ROUNDDOWN([Number], 0)
|
Rounds 77.9 down to zero decimal places. | 77 |
ROUNDDOWN([Number], 2)
|
Rounds 2.71828 down to two decimal places. | 2.71 |
ROUNDDOWN([Number], 2)
|
Rounds -2.71828 down to one decimal place. | -2.7 |
ROUNDDOWN([Number], 1)
|
Rounds 2.71828 down to one decimal place. | 2.7 |
ROUNDDOWN([Number], -2)
|
Rounds 6391.9320 down to 2 decimal places to the left of the decimal point | 6300 |
ROUNDUP function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the ROUNDUP function in the Execute Formula step.
Description
Rounds a number up, away from zero. ROUNDUP behaves like ROUND, except that it always rounds a number up.
Syntax
ROUNDUP(number, number_digits)
The ROUNDUP function syntax has the following arguments:
- number Required. A real number to round up.
- number_digits Required. The number of digits to which to round the number.
Notes
- If number_digits is greater than 0 (zero), then number is rounded up to the specified number of decimal places.
- If number_digits is 0, then number is rounded up to the nearest integer.
- If number_digits is less than 0, then number is rounded up to the left of the decimal point.
Examples
The following examples show various results for values in the Number field.
| Formula | Description | Result |
|---|---|---|
ROUNDUP([Number], 0)
|
Rounds 4.3 to zero places. | 5 |
ROUNDUP([Number], 0)
|
Rounds 77.9 up to zero decimal places. | 78 |
ROUNDUP([Number], 2)
|
Rounds 2.71828 up to two decimal places. | 2.72 |
ROUNDUP([Number], 2)
|
Rounds -2.71828 up to one decimal place. | -2.8 |
ROUNDUP([Number], 1)
|
Rounds 2.71828 up to one decimal place. | 2.8 |
ROUNDUP([Number], -2)
|
Rounds 6391.9320 up to 2 decimal places to the left of the decimal point | 6400 |
SEARCH function
Type: Text
This topic describes the formula syntax and usage of the SEARCH function in the Execute Formula step.
Description
Finds one text value within another (not case-sensitive).
Syntax
SEARCH(find_text,within_text,[start_num])
Example
SECOND function
Type: Date and time
This topic describes the formula syntax and usage of the SECOND function in the Execute Formula step.
Description
Converts a serial number to a second.
Syntax
SECOND(serial_number)
Example
SIGN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SIGN function in the Execute Formula step.
Description
Returns the sign of a number.
Syntax
SIGN(number)
Example
SIN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SIN function in the Execute Formula step.
Description
Returns the sine of the given angle.
Syntax
SIN(angle)
Example
SINH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SINH function in the Execute Formula step.
Description
Returns the hyperbolic sine of a number.
Syntax
SINH(number)
Example
SMALL function
Type: Statistical
This topic describes the formula syntax and usage of the SMALL function in the Execute Formula step.
Description
Returns the k-th smallest value in a data set.
Syntax
SMALL(array, k)
Example
SQRT function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SQRT function in the Execute Formula step.
Description
Returns a positive square root.
Syntax
SQRT(number)
Example
STDEV function
Type: Statistical
This topic describes the formula syntax and usage of the STDEV function in the Execute Formula step.
Description
Estimates standard deviation based on a sample.
Syntax
STDEV(number1,[number2],...)
Example
SUBSTITUTE function
Type: Text
This topic describes the formula syntax and usage of the SUBSTITUTE function in the Execute Formula step.
Description
Substitutes new text for old text in a text string.
Syntax
SUBSTITUTE(text, old_text, new_text, [instance_num])
Example
SUBTOTAL function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUBTOTAL function in the Execute Formula step.
Description
Returns a subtotal of a list.
Syntax
SUBTOTAL(function_num,ref1,[ref2],...)
Example
SUM function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUM function in the Execute Formula step.
Description
Sums its arguments.
SUM([column1],[column2],[column4])
The following sums the same range of columns specified in a single argument:
SUM([column1]:[column2]:[column3]:[column4])
Syntax
SUM(number1,number2,...)
Example
The following sums three fields in three separate arguments:
SUM([column1],[column2],[column4])
The following uses the range operator to sum the same three fields in a single argument:
SUM([column1]:[column2]:[column4])
SUMIF function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMIF function in the Execute Formula step.
Description
Adds the cells specified by a given criteria.
Syntax
SUMIF(range, criteria, [sum_range])
Example
SUMPRODUCT function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMPRODUCT function in the Execute Formula step
Description
Returns the sum of the products of corresponding array components.
Syntax
SUMPRODUCT(array1, [array2], [array3], ...)
Example
SUMSQ function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMSQ function in the Execute Formula step
Description
Returns the sum of the squares of the arguments.
Syntax
SUMSQ(number1, [number2], ...)
Example
SUMX2MY2 function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMX2MY2 function in the Execute Formula step.
Description
Returns the sum of the difference of squares of corresponding values in two arrays.
Syntax
SUMX2MY2(array_x, array_y)
Example
SUMX2PY2 function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMX2PY2 function in the Execute Formula step.
Description
Returns the sum of the sum of squares of corresponding values in two arrays.
Syntax
SUMX2PY2(array_x, array_y)
Example
SUMXMY2 function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the SUMXMY2 function in the Execute Formula step.
Description
Returns the sum of squares of differences of corresponding values in two arrays.
Syntax
SUMXMY2(array_x, array_y)
Example
T function
Type: Text
This topic describes the formula syntax and usage of the T function in the Execute Formula step.
Description
Returns the text referred to by value.
Syntax
T(value)
Example
TAN function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the TAN function in the Execute Formula step.
Description
Returns the tangent of a number.
Syntax
TAN(number)
Example
TANH function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the TANH function in the Execute Formula step.
Description
Returns the hyperbolic tangent of a number.
Syntax
TANH(number)
Example
TDIST function
Type: Statistical
This topic describes the formula syntax and usage of the TDIST function in the Execute Formula step.
Description
Returns the Percentage Points (probability) for the Student t-distribution where a numeric value (x) is a calculated value of t for which the Percentage Points are to be computed.
Syntax
TDIST(x,deg_freedom,tails)
Example
TEXT function
Type: Text
This topic describes the formula syntax and usage of the TEXT function in the Execute Formula step.
Description
Formats a number and converts it to text.
Syntax
TEXT(value)
Example
TIME function
Type: Date and time
This topic describes the formula syntax and usage of the TIME function in the Execute Formula step.
Description
Returns the serial number of a particular time.
Syntax
TIME(hour, minute, second)
Example
TIMEVALUE function
Type: Date and time
This topic describes the formula syntax and usage of the TIMEVALUE function in the Execute Formula step.
Description
Converts a time in the form of text to a serial number.
Syntax
TIMEVALUE(time_text)
Example
TODAY function
Type: Date and time
This topic describes the formula syntax and usage of the TODAY function in the Execute Formula step.
Description
Returns the serial number of today's date.
Syntax
TODAY()
Example
TRIM function
Type: Text
This topic describes the formula syntax and usage of the TRIM function in the Execute Formula step.
Description
Removes all blank, unnecessary spaces at the start and end of a string including extra spaces, tabs, and other characters that do not print.
Syntax
TRIM(text)
Example
TRUE function
Type: Logical
This topic describes the formula syntax and usage of the TRUE function in the Execute Formula step.
Description
Returns the logical value TRUE.
Syntax
TRUE()
Example
TRUNC function
Type: Math and trigonometry
This topic describes the formula syntax and usage of the TRUNC function in the Execute Formula step.
Description
Truncates a number to an integer.
Syntax
TRUNC(number)
Example
UPPER function
Type: Text
This topic describes the formula syntax and usage of the UPPER function in the Execute Formula step.
Description
Converts all text in a string to upper case.
Syntax
UPPER(text)
Example
VALUE function
Type: Text
This topic describes the formula syntax and usage of the VALUE function in the Execute Formula step.
Description
Converts a text argument to a number.
Syntax
VALUE(text)
Example
VARP function
Type: Statistical
This topic describes the formula syntax and usage of the VARP function in the Data Quality Execute Formula step.
Description
Calculates variance based on the entire population.
Syntax
VARP(number1,[number2],...)
Example
WEEKDAY function
Type: Date and time
This topic describes the formula syntax and usage of the WEEKDAY function in the Data Quality Execute Formula step.
Description
Converts a serial number to a day of the week. The day is given as an integer, ranging from 1 (Sunday) to 7 (Saturday).
Syntax
WEEKDAY(serial_number,return_type)
The WEEKDAY function syntax has the following arguments:
-
Serial_numberRequired. The date of the year you want to find. Dates should be entered by using the DATE or DATEVALUE function, or as results of other formulas or functions. For example, useDATE(2022,5,23)orDATEVALUE("5/23/2022")for the 23rd day of May, 2022. Problems can occur if dates are entered as text. -
return_typeOptional. Optional. A number that determines the type of return value. The default if omitted is 1.
return_type
|
Number returned |
|---|---|
| 1 or omitted |
Numbers 1 (Sunday) through 7 (Saturday). |
| 2 |
Numbers 1 (Monday) through 7 (Sunday). |
| 3 |
Numbers 0 (Monday) through 6 (Sunday). |
| 11 |
Numbers 1 (Monday) through 7 (Sunday). |
| 12 |
Numbers 1 (Tuesday) through 7 (Monday). |
| 13 |
Numbers 1 (Wednesday) through 7 (Tuesday). |
| 14 |
Numbers 1 (Thursday) through 7 (Wednesday). |
| 15 |
Numbers 1 (Friday) through 7 (Thursday). |
| 16 |
Numbers 1 (Saturday) through 7 (Friday). |
| 17 |
Numbers 1 (Sunday) through 7 (Saturday). |
Notes
- By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.
- If
serial_numberis out of range for the current date base value, a #NUM! error is returned. - If
return_typeis out of the range specified in the table above, a #NUM! error is returned.
Example
DATE column value: 5/23/2022
| Formula | ||
|---|---|---|
| Description (Result) |
YEAR function
Type: Date and time
This topic describes the formula syntax and usage of the YEAR function in the Execute Formula step.
Description
Returns the year corresponding to a date. The year is returned as an integer in the range 1900-9999.
Syntax
YEAR(serial_number)
The YEAR function syntax has the following arguments:
-
serial_numberRequired. The date of the year you want to find. Dates should be entered by using the DATE or DATEVALUE function, or as results of other formulas or functions. For example, useDATE(2008,5,23)orDATEVALUE(5/23/2008)for the 23rd day of May, 2008. Problems can occur if dates are entered as text.
Notes
- Values returned by the
YEAR,MONTHandDAYfunctions will be Gregorian values regardless of the display format for the supplied date value.
Example
5/28/1965 in the
DateOfBirth field.| Formula | Description | Result |
|---|---|---|
YEAR(DATEVALUE([DateOfBirth]))
|
Reference to string in date column | 1965 |
YEAR(DATE(1965,5,28))
|
Date as separate values | 1965 |