Mathematical ATP functions
ATP Function | Description | ATP Syntax | Replacement Formula | Array formula |
---|
DOLLARDE | Converts a dollar price (expressed as a fraction) into a dollar price expressed as a decimal number | =DOLLARDE(fractional_dollar,fraction) | =TRUNC(fractional_dollar)+((fractional_dollar-TRUNC(fractional_dollar))*10)/fraction | No |
DOLLARFR | Converts a dollar price (expressed as a decimal number) into a dollar price expressed as a fraction | =DOLLARFR(decimal_dollar,fraction) | =TRUNC(decimal_dollar)+((decimal_dollar-TRUNC(decimal_dollar))/10)*fraction | No |
ERF | Returns the error function integrated between lower_limit and upper_limit | =ERF(lower_limit,upper_limit) | =GAMMADIST(upper_limit^2,0.5,1,TRUE)-GAMMADIST(lower_limit^2,0.5,1,TRUE) | No |
ERFC | Returns the complementary ERF function integrated between x and infinity | =ERFC(x) | =ChiDist(2*x^2,1) | No |
FACTDOUBLE | Returns the double factorial of a number | =FACTDOUBLE(number) | =PRODUCT(IF(MOD(ROW(INDIRECT("1:"&number)),2)=MOD(number,2),(ROW(INDIRECT("1:"&number))))) | Yes |
GCD | Returns the greatest common divisor of 2 - 29 integers | =GCD(number1,number2,…) | =MAX(IF((MOD(number2,ROW(INDIRECT("1:"&number1)))&MOD(number1,ROW(INDIRECT("1:"&Anumber1))))="00″,ROW(INDIRECT("1:"&number1)))) | Yes |
GESTEP | Tests whether a number is greater than a threshold value | =GESTEP(number,step) | =--(number>=step) | No |
LCM | Returns the least common multiple of 1 - 29 integers | =LCM(number1,number2, …) | =number2*MATCH(0,MOD(number2*ROW(INDIRECT("1:"&number1)),number1),0) | Yes |
MROUND | Returns a number rounded to the desired multiple. Midway points are rounded away from 0 | =MROUND(number,multiple) | =ROUND(number/multiple,0)*multiple | No |
MULTINOMIAL | Returns the ratio of the factorial of a sum of values to the product of factorials | =MULTINOMIAL(number1,number2, …) | =FACT(SUM(number1,number2,…))/PRODUCT(FACT(number1,number2,…)) | Yes |
QUOTIENT | Returns the integer portion of a division | =QUOTIENT(numerator,denominator) | =TRUNC(numerator/denominator) | No |
RANDBETWEEN | Returns a random number between (and inclusive of) two specified numbers | =RANDBETWEEN(bottom,top) | =INT((top - bottom + 1) * RAND() + bottom) | No |
SERIESSUM | Returns the sum of a power series expansion | =SERIESSUM(x,n,m,coefficients) | =SUMPRODUCT(coefficients,x^(n+m*(ROW(INDIRECT("1:"&ROWS(coefficients)))-1))) | No |
SQRTPI | Returns the square root of a number multiplied by pi | =SQRTPI(number) | SQRT(PI()*number) | No |