Calculated columns are created as a step in the sequential data cleanup stack. Because calculated columns do not contain formulas, they do not recalculate values with each change to the worksheet.
=PARS('Hourly defectives')
The basic syntax information for all the supported functions are given in the following sections. For more information on any of the following functions, go to Calculator functions on the Minitab support site.
Specify a number or column for the number of items and the number to choose. The number of items must be greater than or equal to 1, and the number to choose must be greater than or equal to 0.
The value of number of items must be greater than or equal to 0. You can enter a column or constant. Missing values are not allowed.
For shape, specify the number you want to take the function of. For limit, specify the upper limit of the integral.
The number and divisor must be integers or columns of integers.
Specify a number or column for the number of items and the number to choose. The number of items must be greater than or equal to 1, and the number to choose must be greater than or equal to 0.
For number, specify the number or column of numbers you want to convert.
For number, specify the number or column of numbers. If you enter a negative number, Minitab returns a missing value.
For Count, specify a column or stored constant that contains only nonnegative integers.
Specify the number of Trials and the number of Events; each can be a column or stored constant. Trials must be a positive integer. Events must be an integer between 0 and the number of trials, inclusive.
Specify the column, then the lag value to determine row-by-row differences. This function subtracts from each row the element lag rows above, and stores the differences in a new column. If you don't specify a value for lag, the differences are calculated between consecutive rows (lag = 1). The first lag rows of the new column will contain the missing value symbol *.
Specify the input column, then specify the number of rows the data should move down. By default, if no value is specified for lag, the data is moved down one row (lag = 1). Missing value symbols * are added in the empty rows of the storage column.
In number, specify the column. This function assigns rank scores to the values in the column: 1 to the smallest value, 2 to the next smallest, and so on. Ties are assigned the average rank for that value. Missing values are left as missing. Ranked scores are stored in a column.
Specify the column to sort. Data must be numerical.
For example, to calculate how long a service call has been open, use this expression: ELAPSED(CTIME () – column_name).
For number, enter the column with the end times minus the column with the start times. The columns must be in date/time format. The elapsed time is specified in minutes and seconds (mm:ss) if the maximum value of the output column is less than one hour; the elapsed time is specified in hours, minutes, and seconds (hh:mm:ss) if the maximum of the output column is an hour or more.
When you enter single dates, you also need to use the DATE function. For example, to find out the number of workdays between 1/1/25 and 1/31/25, enter NETWORKDAYS (DATE("1/1/25"), DATE("1/31/25")).
For example, to calculate the number of days since the initial call was received, use this expression: NOW() – column_name).
For example, to calculate how long a bill has been unpaid, use this expression: TODAY() – column_name).
When you enter single dates, you also need to use the DATE function. For example, WDAY(DATE("1/1/25"),4) equals 1/7/2025.
Log base 10 is defined only for positive numbers. When you multiply a number by 10, you increase its log by 1; when you divide a number by 10, you decrease its log by 1.
For example, to identify instances of the value 3 in C1, enter the expression ANY(C1,3). Results are stored in the new column.
C1 | New |
---|---|
6 | 0 |
3 | 1 |
2 | 0 |
3 | 1 |
3 | 1 |
For example, to change a column of 0's and 1's to "pass" and "fail", enter the expression IF(C1=1,"fail","pass"). Results are stored in the new column.
C1 | New |
---|---|
0 | pass |
1 | fail |
0 | pass |
1 | fail |
1 | fail |
For example, to convert the numbers 0-6 to ratings of "low", "medium" and "high", enter the expression IF(C1<=2,"low",C1<=4,"medium","high"). Results are stored in the new column.
C1 | New |
---|---|
0 | low |
1 | low |
6 | high |
3 | medium |
2 | low |
For a set of n numbers, the geometric mean is the nth root of the product of those numbers. For example, the geometric mean of the numbers 2, 3, and 14 equals (2 * 3 * 14)1/3 = (84)1/3 = 4.37952.
For example, calculate the maximum and/or minimum values down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | MAX(C1) | 15 |
C1 contains 6, 3, 15 | MIN(C1) | 3 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RMAX(C1) | 15 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RMIN(C1) | 3 |
For example, calculate the mean down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | MEAN(C1) | 8 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RMEAN(C1,C2,C3) | 8 |
For example, calculate the median down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | MEDIAN(C1) | 6 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RMEDIAN(C1,C2,C3) | 6 |
For example, to determine the 1st quartile (25th percentile) of a column of data, enter the column number and the probability 0.25.
Column | Calculator expression | Result |
---|---|---|
C1 contains 2, 3, 5, and 7 | PERCENTILE (C1,0.25) | 2.25 |
For example, calculate the range down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | RANGE(C1) | 12 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RRANGE(C1,C2,C3) | 12 |
For example, calculate the standard deviation down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | STDEV(C1) | 6.245 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RSTDEV(C1,C2,C3) | 6.245 |
For example, sum down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | SUM(C1) | 24 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RSUM(C1,C2,C3) | 24 |
For example, calculate the sum of squares down a column or across rows.
Column | Calculator expression | Result |
---|---|---|
C1 contains 6, 3, 15 | SSQ(C1) | 270 |
C1 contains 6, C2 contains 3, and C3 contains 15 | RSSQ(C1,C2,C3) | 270 |
You can use an asterisk (*) as a wildcard character that represents a string of one or more characters. The question mark (?) is also a wildcard character, but it represents only one character instead of a string of characters. To reference the "*" or "?" character within a text string, use the tilde (~) before the symbol.
For example, if you have a column of last names and first names separated by a comma, you can extract all characters from the beginning of the text string up to the comma, which are the last names.
Column | Calculator expression | Result |
---|---|---|
C1 contains "defective" | UPPER(C1) | DEFECTIVE |
C1 contains "DEFECTIVE" | LOWER(C1) | defective |
C1 contains "defective" | PROPER(C1) | Defective |
Column | Calculator expression | Result |
---|---|---|
C1 contains "234B75" | SEARCH("b7",C1) | 4 (because B7 begins at the 4th position in the text) |
C1 contains "depreciate" | SEARCH( "c*t",C1) | 6 |
C1 contains "Item# C-222-T" | SEARCH( "c*t",C1) | 7 |
C1 contains "defective" | SEARCH( "c*t",C1) | 5 |
C1 contains "814*231*2682" | SEARCH( "~*",C1) | 4 |
The Word function is similar to the Item function, except that Item extracts the empty text that occurs between consecutive separators (such as the comma and space) while the Word function ignores the empty string and extracts the text that follows the consecutive separators.
For example, the arccosine of 0.5 is π/6 or 0.5230 radians. Arccosine (also called the inverse cosine) can be represented by cos−1 x, arccos x, or acos x.
For example, the arcsine of 0.5 is π/6 or 0.5230 radians. Arcsine is also called the inverse sine and can be represented by sin−1 x, arcsin x, or asin x.
For example, the arctangent of 1 is the angle whose tangent equals 1, or the angle π/4 (0.785398 radians). Arctangent (also called inverse tangent) and can be represented by tan−1 x, arctan x, or atan x.
The syntax details for row statistics of maximum, mean, median, minimum, missing, nonmissing, total, range, standard deviation, sum, and sum of squares are above with the statistics functions.