List of supported formulas

See all of the supported formulas for your Formula Workflow action block.

Read more about how to use the Formula block

Date formulas

Formulas allowing you to manipulate dates and time, such as adding days to a date, calculating a date in the future, or extracting the day of the week from a date.

FormulaDescriptionExampleExpected return
DATECreates a date from the year, month, and day arguments.DATE(2008, 7, 8)Tue Jul 08 2008 00:00:00 GMT-0700 (PDT)
DATEVALUEConverts a date in the form of text to a serial number.DATEVALUE('8/22/2011')Mon Aug 22 2011 00:00:00 GMT-0700 (PDT)
DAYReturns the day of the month, a number from 1 to 31.DAY('15-Apr-11')15
DAYSReturns the number of days between two dates.DAYS('3/15/11', '2/1/11')42
DAYS360Calculates the number of days between two dates based on a 360-day year.DAYS360('1-Jan-11', '31-Dec-11')360
EDATEReturns the date that is the specified number of months before or after the start date.EDATE('1/15/11', -1)Wed Dec 15 2010 00:00:00 GMT-0800 (PST)
EOMONTHReturns the last day of the month before or after a specified number of months.EOMONTH('1/1/11', -3)Sun Oct 31 2010 00:00:00 GMT-0700 (PDT)
HOURReturns the hour of a time value.HOUR('7/18/2011 7:45:00 AM')7
MINUTEReturns the minute of a time value.MINUTE('2/1/2011 12:45:00 PM')45
ISOWEEKNUMReturns the ISO week number of the year for a given date.ISOWEEKNUM('3/9/2012')10
MONTHReturns the month of a date value.MONTH('15-Apr-11')4
NETWORKDAYSReturns the number of whole working days between two dates, excluding weekends and specified holidays.NETWORKDAYS('10/1/2012', '3/1/2013', ['11/22/2012'])109
NOWReturns the current date and time.NOW()Thu Feb 20 2020 23:02:55 GMT+0100 (Central European Standard Time)
SECONDReturns the second of a time value.SECOND('2/1/2011 4:48:18 PM')18
TIMEReturns the decimal number for a particular time.TIME(16, 48, 10)0.7001157407407408
TIMEVALUEConverts a time in the form of text to a serial number.TIMEVALUE('22-Aug-2011 6:35 AM')0.2743055555555556
TODAYReturns the current date.TODAY()Thu Feb 20 2020 23:02:55 GMT+0100 (Central European Standard Time)
WEEKDAYReturns the day of the week as a number (1 for Sunday, 2 for Monday, etc.).WEEKDAY('2/14/2008', 3)3
YEARReturns the year of a date value.YEAR('7/5/2008')2008
WEEKNUMReturns the week number of a date based on the specified return type.WEEKNUM('3/9/2012', 2)11
WORKDAYReturns the date before or after a specified number of workdays, excluding weekends and holidays.WORKDAY('10/1/2008', 151, ['11/26/2008', '12/4/2008'])Mon May 04 2009 00:00:00 GMT-0700 (PDT)
YEARFRACCalculates the fraction of the year represented by the number of whole days between two dates.YEARFRAC('1/1/2012', '7/30/2012', 3)0.5780821917808219

Financial formulas

Financial formulas allow you to calculate financial metrics such as interest, depreciation, and more.

FormulaDescriptionExampleExpected return
ACCRINTReturns the accrued interest for a security that pays periodic interest.ACCRINT('01/01/2011', '02/01/2011', '07/01/2014', 0.1, 1000, 1, 0)350
CUMIPMTReturns the cumulative interest paid on a loan between two periods.CUMIPMT(0.1/12, 30*12, 100000, 13, 24, 0)-9916.77251395708
CUMPRINCReturns the cumulative principal paid on a loan between two periods.CUMPRINC(0.1/12, 30*12, 100000, 13, 24, 0)-614.0863271085149
DBReturns the depreciation of an asset for a specified period using the fixed-declining balance method.DB(1000000, 100000, 6, 1, 6)159500
DDBReturns the depreciation of an asset for a specified period using the double-declining balance method.DDB(1000000, 100000, 6, 1, 1.5)250000
DOLLARDEConverts a dollar price expressed as a fraction into a dollar price expressed as a decimal number.DOLLARDE(1.1, 16)1.625
DOLLARFRConverts a dollar price expressed as a decimal number into a dollar price expressed as a fraction.DOLLARFR(1.625, 16)1.1
EFFECTReturns the effective annual interest rate given the nominal rate and the number of compounding periods per year.EFFECT(0.1, 4)0.10381289062499977
FVReturns the future value of an investment based on periodic, constant payments and a constant interest rate.FV(0.1/12, 10, -100, -1000, 0)2124.874409194097
FVSCHEDULEReturns the future value of an initial principal after applying a series of compound interest rates.FVSCHEDULE(100, [0.09,0.1,0.11])133.08900000000003
IPMTReturns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.IPMT(0.1/12, 6, 2*12, 100000, 1000000, 0)928.8235718400465
IRRReturns the internal rate of return for a series of cash flows.IRR([-75000,12000,15000,18000,21000,24000], 0.075)0.05715142887178447
ISPMTCalculates the interest paid during a specific period of a loan or investment.ISPMT(0.1/12, 6, 2*12, 100000)-625
MIRRReturns the modified internal rate of return for a series of cash flows, considering both cost of investment and interest received on reinvestment.MIRR([-75000,12000,15000,18000,21000,24000], 0.1, 0.12)0.07971710360838036
NOMINALReturns the nominal annual interest rate given the effective rate and number of compounding periods per year.NOMINAL(0.1, 4)0.09645475633778045
NPERReturns the number of periods for an investment based on periodic, constant payments and a constant interest rate.NPER(0.1/12, -100, -1000, 10000, 0)63.39385422740764
NPVCalculates the net present value of an investment based on a discount rate and a series of future payments and income.NPV(0.1, -10000, 2000, 4000, 8000)1031.3503176012546
PDURATIONReturns the number of periods required for an investment to reach a specified value.PDURATION(0.1, 1000, 2000)7.272540897341714
PMTCalculates the payment for a loan based on constant payments and a constant interest rate.PMT(0.1/12, 2*12, 100000, 1000000, 0)-42426.08563793503
PPMTReturns the payment on the principal for a given period for an investment based on periodic, constant payments and a constant interest rate.PPMT(0.1/12, 6, 2*12, 100000, 1000000, 0)-43354.909209775076
PVReturns the present value of an investment: the total amount that a series of future payments is worth now.PV(0.1/12, 2*12, 1000, 10000, 0)-29864.950264779152
RATEReturns the interest rate per period of an annuity.RATE(2*12, -1000, -10000, 100000, 0, 0.1)0.06517891177181533

Engineering formulas

Engineering formulas allow you to calculate engineering metrics such as voltage, current, resistance, and more.

FormulaDescriptionExampleExpected return
BIN2DECConverts a binary number to decimal.BIN2DEC(101010)42
BIN2HEXConverts a binary number to hexadecimal.BIN2HEX(101010)2a
BIN2OCTConverts a binary number to octal.BIN2OCT(101010)52
BITANDReturns a bitwise AND of two numbers.BITAND(42, 24)8
BITLSHIFTReturns a number shifted left by a specified number of bits.BITLSHIFT(42, 24)704643072
BITORReturns a bitwise OR of two numbers.BITOR(42, 24)58
BITRSHIFTReturns a number shifted right by a specified number of bits.BITRSHIFT(42, 2)10
BITXORReturns a bitwise XOR of two numbers.BITXOR(42, 24)50
COMPLEXConverts real and imaginary coefficients into a complex number.COMPLEX(3, 4)3+4i
CONVERTConverts a number from one measurement system to another.CONVERT(64, 'kibyte', 'bit')524288
DEC2BINConverts a decimal number to binary.DEC2BIN(42)101010
DEC2HEXConverts a decimal number to hexadecimal.DEC2HEX(42)2a
DEC2OCTConverts a decimal number to octal.DEC2OCT(42)52
DELTATests whether two numbers are equal.DELTA(42, 42)1
ERFReturns the error function integrated between 0 and a specified value.ERF(1)0.8427007929497149
ERFCReturns the complementary error function integrated between a specified value and infinity.ERFC(1)0.1572992070502851
GESTEPTests whether a number is greater than a specified threshold.GESTEP(42, 24)1
HEX2BINConverts a hexadecimal number to binary.HEX2BIN('2a')101010
HEX2DECConverts a hexadecimal number to decimal.HEX2DEC('2a')42
HEX2OCTConverts a hexadecimal number to octal.HEX2OCT('2a')52
IMABSReturns the absolute value (modulus) of a complex number.IMABS('3+4i')5
IMAGINARYReturns the imaginary coefficient of a complex number.IMAGINARY('3+4i')4
IMARGUMENTReturns the argument theta, an angle expressed in radians.IMARGUMENT('3+4i')0.9272952180016122
IMCONJUGATEReturns the complex conjugate of a complex number.IMCONJUGATE('3+4i')3-4i
IMCOSReturns the cosine of a complex number.IMCOS('1+i')0.8337300251311491-0.9888977057628651i
IMCOSHReturns the hyperbolic cosine of a complex number.IMCOSH('1+i')0.8337300251311491+0.9888977057628651i
IMCOTReturns the cotangent of a complex number.IMCOT('1+i')0.21762156185440265-0.8680141428959249i
IMCSCReturns the cosecant of a complex number.IMCSC('1+i')0.6215180171704283-0.3039310016284264i
IMCSCHReturns the hyperbolic cosecant of a complex number.IMCSCH('1+i')0.3039310016284264-0.6215180171704283i
IMDIVReturns the quotient of two complex numbers.IMDIV('1+2i', '3+4i')0.44+0.08i
IMEXPReturns the exponential of a complex number.IMEXP('1+i')1.4686939399158851+2.2873552871788423i
IMLNReturns the natural logarithm of a complex number.IMLN('1+i')0.3465735902799727+0.7853981633974483i
IMLOG10Returns the base-10 logarithm of a complex number.IMLOG10('1+i')0.1505149978319906+0.3410940884604603i
IMLOG2Returns the base-2 logarithm of a complex number.IMLOG2('1+i')0.5000000000000001+1.1330900354567985i
IMPOWERReturns a complex number raised to an integer power.IMPOWER('1+i', 2)1.2246063538223775e-16+2.0000000000000004i
IMPRODUCTReturns the product of multiple complex numbers.IMPRODUCT('1+2i', '3+4i', '5+6i')-85+20i
IMREALReturns the real coefficient of a complex number.IMREAL('3+4i')3
IMSECReturns the secant of a complex number.IMSEC('1+i')0.4983370305551868+0.591083841721045i
IMSECHReturns the hyperbolic secant of a complex number.IMSECH('1+i')0.4983370305551868-0.591083841721045i
IMSINReturns the sine of a complex number.IMSIN('1+i')1.2984575814159773+0.6349639147847361i
IMSINHReturns the hyperbolic sine of a complex number.IMSINH('1+i')0.6349639147847361+1.2984575814159773i
IMSQRTReturns the square root of a complex number.IMSQRT('1+i')1.0986841134678098+0.45508986056222733i
IMSUBReturns the difference between two complex numbers.IMSUB('3+4i', '1+2i')2+2i
IMSUMReturns the sum of multiple complex numbers.IMSUM('1+2i', '3+4i', '5+6i')9+12i
IMTANReturns the tangent of a complex number.IMTAN('1+i')0.2717525853195117+1.0839233273386946i
OCT2BINConverts an octal number to binary.OCT2BIN('52')101010
OCT2DECConverts an octal number to decimal.OCT2DEC('52')42
OCT2HEXConverts an octal number to hexadecimal.OCT2HEX('52')2a

Logical formulas

Logical formulas allow you to perform logical operations such as AND, OR, and NOT.

FormulasDescriptionExampleExpected return
ANDReturns TRUE if all arguments evaluate to TRUE.AND(true, false, true)false
FALSEReturns the logical value FALSE.FALSE()false
IFReturns one value if a condition is TRUE and another value if it is FALSE.IF(true, 'Hello!', 'Goodbye!')Hello!
NOTReverses the logical value of its argument.NOT(true)false
ORReturns TRUE if any argument evaluates to TRUE.OR(true, false, true)true
SWITCHEvaluates an expression against a list of values and returns the corresponding result for the first match.SWITCH(7, 9, 'Nine', 7, 'Seven')Seven
TRUEReturns the logical value TRUE.TRUE()true
XORReturns TRUE if an odd number of arguments are TRUE, and FALSE otherwise.XOR(true, false, true)false

Math formulas

Perform mathematical operations such as addition, subtraction, multiplication, and more.

FormulasDescriptionExampleExpected return
ABSReturns the absolute value of a number.ABS(-4)4
ACOSReturns the arccosine of a number in radians.ACOS(-0.5)2.0943951023931957
ACOSHReturns the inverse hyperbolic cosine of a number.ACOSH(10)2.993222846126381
ACOTReturns the arccotangent of a number.ACOT(2)0.46364760900080615
ACOTHReturns the inverse hyperbolic cotangent of a number.ACOTH(6)0.16823611831060645
AGGREGATEReturns an aggregate in a list or database.AGGREGATE(9, 4, [-5,15], [32,'Hello World!'])10,32
ARABICConverts a Roman numeral to an Arabic numeral.ARABIC('MCMXII')1912
ASINReturns the arcsine of a number in radians.ASIN(-0.5)-0.5235987755982988
ASINHReturns the inverse hyperbolic sine of a number.ASINH(-2.5)-1.6472311463710965
ATANReturns the arctangent of a number in radians.ATAN(1)0.7853981633974483
ATAN2Returns the arctangent of the quotient of its arguments.ATAN2(-1, -1)-2.356194490192345
ATANHReturns the inverse hyperbolic tangent of a number.ATANH(-0.1)-0.10033534773107562
BASEConverts a number into a text representation with the given radix (base).BASE(15, 2, 10)0000001111
CEILINGRounds a number up to the nearest multiple of significance.CEILING(-5.5, 2, -1)-6
CEILINGMATHRounds a number up, to the nearest integer or to the nearest multiple of significance.CEILINGMATH(-5.5, 2, -1)-6
CEILINGPRECISERounds a number up to the nearest multiple of significance, regardless of sign.CEILINGPRECISE(-4.1, -2)-4
COMBINReturns the number of combinations for a given number of objects.COMBIN(8, 2)28
COMBINAReturns the number of combinations with repetitions for a given number of objects.COMBINA(4, 3)20
COSReturns the cosine of a number.COS(1)0.5403023058681398
COSHReturns the hyperbolic cosine of a number.COSH(1)1.5430806348152437
COTReturns the cotangent of an angle.COT(30)-0.15611995216165922
COTHReturns the hyperbolic cotangent of a number.COTH(2)1.0373147207275482
CSCReturns the cosecant of an angle.CSC(15)1.5377805615408537
CSCHReturns the hyperbolic cosecant of a number.CSCH(1.5)0.46964244059522464
DECIMALConverts a text representation of a number in a given base into a decimal number.DECIMAL('FF', 16)255
ERFReturns the error function integrated between 0 and a specified value.ERF(1)0.8427007929497149
ERFCReturns the complementary error function integrated between a specified value and infinity.ERFC(1)0.1572992070502851
EVENRounds a number up to the nearest even integer.EVEN(-1)-2
EXPReturns e raised to the power of a given number.EXP(1)2.718281828459045
FACTReturns the factorial of a number.FACT(5)120
FACTDOUBLEReturns the double factorial of a number.FACTDOUBLE(7)105
FLOORRounds a number down towards zero, to the nearest multiple of significance.FLOOR(-3.1)-4
GCDReturns the greatest common divisor of two or more integers.GCD(24, 36, 48)12
INTRounds a number down to the nearest integer.INT(-8.9)-9
ISEVENReturns TRUE if the number is even.ISEVEN(-2.5)true
ISODDReturns TRUE if the number is odd.ISODD(-2.5)false
LCMReturns the least common multiple of integers.LCM(24, 36, 48)144
LNReturns the natural logarithm of a number.LN(86)4.454347296253507
LOGReturns the logarithm of a number to a specified base.LOG(8, 2)3
LOG10Returns the base-10 logarithm of a number.LOG10(100000)5
MODReturns the remainder after a number is divided by a divisor.MOD(3, -2)-1
MROUNDRounds a number to the nearest multiple of a specified value.MROUND(-10, -3)-9
MULTINOMIALReturns the multinomial of a set of numbers.MULTINOMIAL(2, 3, 4)1260
ODDRounds a number up to the nearest odd integer.ODD(-1.5)-3
POWERReturns the result of a number raised to a power.POWER(5, 2)25
PRODUCTMultiplies all the numbers given as arguments and returns the product.PRODUCT(5, 15, 30)2250
QUOTIENTReturns the integer portion of a division.QUOTIENT(-10, 3)-3
RADIANSConverts degrees to radians.RADIANS(180)3.141592653589793
RANDReturns a random real number greater than or equal to 0 and less than 1.RAND()[Random real number between 0 and 1]
RANDBETWEENReturns a random integer between the specified numbers.RANDBETWEEN(-1, 1)[Random integer between bottom and top]
ROUNDRounds a number to a specified number of digits.ROUND(626.3, -3)1000
ROUNDDOWNRounds a number down towards zero.ROUNDDOWN(-3.14159, 2)-3.14
ROUNDUPRounds a number up, away from zero.ROUNDUP(-3.14159, 2)-3.15
SECReturns the secant of an angle.SEC(45)1.9035944074044246
SECHReturns the hyperbolic secant of a number.SECH(45)5.725037161098787e-20
SIGNReturns the sign of a number: 1 if positive, -1 if negative, or 0.SIGN(-0.00001)-1
SINReturns the sine of an angle.SIN(1)0.8414709848078965
SINHReturns the hyperbolic sine of a number.SINH(1)1.1752011936438014
SQRTReturns the square root of a number.SQRT(16)4
SQRTPIReturns the square root of (number * pi).SQRTPI(2)2.5066282746310002
SUBTOTALReturns a subtotal in a list or database.SUBTOTAL(9, [-5,15], [32,'Hello World!'])10,32
SUMAdds all the numbers in a range of cells.SUM(-5, 15, 32, 'Hello World!')42
SUMIFAdds the cells specified by a given condition or criteria.SUMIF([2,4,8,16], '>5')24
SUMIFSAdds the cells in a range that meet multiple criteria.SUMIFS([2,4,8,16], [1,2,3,4], '>=2', [1,2,4,8], '<=4')12
SUMPRODUCTReturns the sum of the products of corresponding ranges or arrays.SUMPRODUCT([[1,2],[3,4]], [[1,0],[0,1]])5
SUMSQReturns the sum of the squares of the arguments.SUMSQ(3, 4)25
SUMX2MY2Returns the sum of the difference of squares of corresponding values in two arrays.SUMX2MY2([1,2], [3,4])-20
SUMX2PY2Returns the sum of the sum of squares of corresponding values in two arrays.SUMX2PY2([1,2], [3,4])30
SUMXMY2Returns the sum of squares of differences of corresponding values in two arrays.SUMXMY2([1,2], [3,4])8
TANReturns the tangent of an angle.TAN(1)1.5574077246549023
TANHReturns the hyperbolic tangent of a number.TANH(-2)-0.9640275800758168
TRUNCTruncates a number to an integer by removing the fractional part of the number.TRUNC(-8.9)-8

Statistical formulas

Statistical formulas allow you to calculate statistical metrics such as averages, medians, and more.

FormulaDescriptionExampleExpected return
AVEDEVReturns the average of the absolute deviations of data points from their mean.AVEDEV([2,4], [8,16])4.5
AVERAGEReturns the average of its arguments.AVERAGE([2,4], [8,16])7.5
AVERAGEAReturns the average of its arguments, evaluating text and FALSE as 0, and TRUE as 1.AVERAGEA([2,4], [8,16])7.5
AVERAGEIFReturns the average of all cells that meet a given criteria.AVERAGEIF([2,4,8,16], '>5', [1, 2, 3, 4])3.5
AVERAGEIFSReturns the average of all cells that meet multiple criteria.AVERAGEIFS([2,4,8,16], [1,2,3,4], '>=2', [1,2,4,8], '<=4')6
BETADISTReturns the beta cumulative distribution function.BETADIST(2, 8, 10, true, 1, 3)0.6854705810117458
BETAINVReturns the inverse of the cumulative beta distribution.BETAINV(0.6854705810117458, 8, 10, 1, 3)1.9999999999999998
BINOMDISTReturns the individual term binomial distribution probability.BINOMDIST(6, 10, 0.5, false)0.205078125
CORRELReturns the correlation coefficient between two data sets.CORREL([3,2,4,5,6], [9,7,12,15,17])0.9970544855015815
COUNTCounts the number of cells that contain numbers.COUNT([1,2], [3,4])4
COUNTACounts the number of cells that are not empty.COUNTA([1, null, 3, 'a', '', 'c'])4
COUNTBLANKCounts the number of empty cells in a range.COUNTBLANK([1, null, 3, 'a', '', 'c'])2
COUNTIFCounts the number of cells that meet a condition.COUNTIF(['Caen', 'Melbourne', 'Palo Alto', 'Singapore'], 'a')3
COUNTIFSCounts the number of cells that meet multiple criteria.COUNTIFS([2,4,8,16], [1,2,3,4], '>=2', [1,2,4,8], '<=4')2
COUNTUNIQUECounts the number of unique values in a range.COUNTUNIQUE([1,1,2,2,3,3])3
DEVSQCalculates the sum of squares of deviations of data points from their sample mean.DEVSQ([2,4,8,16])115
EXPONDISTReturns the exponential distribution.EXPONDIST(0.2, 10, true)0.8646647167633873
FDISTReturns the F probability distribution.FDIST(15.2069, 6, 4, false)0.0012237917087831735
FINVReturns the inverse of the F probability distribution.FINV(0.01, 6, 4)0.10930991412457851
FISHERReturns the Fisher transformation at x.FISHER(0.75)0.9729550745276566
FISHERINVReturns the inverse of the Fisher transformation.FISHERINV(0.9729550745276566)0.75
FORECASTCalculates or predicts a future value based on existing values.FORECAST(30, [6,7,9,15,21], [20,28,31,38,40])10.607253086419755
FREQUENCYCalculates how often values occur within a range of values, and returns a vertical array of numbers.FREQUENCY([79,85,78,85,50,81,95,88,97], [70,79,89])1,2,4,2
GAMMAReturns the gamma function value.GAMMA(2.5)1.3293403919101043
GAMMALNReturns the natural logarithm of the gamma function.GAMMALN(10)12.801827480081961
GAUSSReturns the probability that a standard normal variable is less than z.GAUSS(2)0.4772498680518208
GEOMEANReturns the geometric mean of an array or range of positive data.GEOMEAN([2,4], [8,16])5.656854249492381
GROWTHCalculates predicted exponential growth by using existing data.GROWTH([2,4,8,16], [1,2,3,4], [5])32.00000000000003
HARMEANReturns the harmonic mean of a data set.HARMEAN([2,4], [8,16])4.266666666666667
HYPGEOMDISTReturns the hypergeometric distribution.HYPGEOMDIST(1, 4, 8, 20, false)0.3632610939112487
INTERCEPTCalculates the point at which a line will intersect the y-axis by using known x and y values.INTERCEPT([2,3,9,1,8], [6,5,11,7,5])0.04838709677419217
KURTReturns the kurtosis of a data set.KURT([3,4,5,2,3,4,5,6,4,7])-0.15179963720841627
LARGEReturns the k-th largest value in a data set.LARGE([3,5,3,5,4,4,2,4,6,7], 3)5
LINESTReturns the parameters of a linear trend.LINEST([1,9,5,7], [0,4,2,3], true, true)2,1
LOGNORMDISTReturns the cumulative log-normal distribution of x.LOGNORMDIST(4, 3.5, 1.2, true)0.0390835557068005
LOGNORMINVReturns the inverse of the log-normal cumulative distribution.LOGNORMINV(0.0390835557068005, 3.5, 1.2, true)4.000000000000001
MAXReturns the maximum value in a set of values.MAX([0.1,0.2], [0.4,0.8], [true, false])0.8
MAXAReturns the maximum value in a set of values, including text and logical values.MAXA([0.1,0.2], [0.4,0.8], [true, false])1
MEDIANReturns the median of the given numbers.MEDIAN([1,2,3], [4,5,6])3.5
MINReturns the minimum value in a set of values.MIN([0.1,0.2], [0.4,0.8], [true, false])0.1
MINAReturns the minimum value in a set of values, including text and logical values.MINA([0.1,0.2], [0.4,0.8], [true, false])0
MODEMULTReturns a vertical array of the most frequently occurring, or repetitive, values in an array or range of data.MODEMULT([1,2,3,4,3,2,1,2,3])2,3
MODESNGLReturns the most frequently occurring, or repetitive, value in an array or range of data.MODESNGL([1,2,3,4,3,2,1,2,3])2
NORMDISTReturns the normal cumulative distribution for a specified mean and standard deviation.NORMDIST(42, 40, 1.5, true)0.9087887802741321
NORMINVReturns the inverse of the normal cumulative distribution for the specified mean and standard deviation.NORMINV(0.9087887802741321, 40, 1.5)42
NORMSDISTReturns the standard normal cumulative distribution.NORMSDIST(1, true)0.8413447460685429
NORMSINVReturns the inverse of the standard normal cumulative distribution.NORMSINV(0.8413447460685429)1.0000000000000002
PEARSONReturns the Pearson product moment correlation coefficient.PEARSON([9,7,5,3,1], [10,6,1,5,3])0.6993786061802354
PERCENTILEEXCReturns the k-th percentile of values in a range, excluding the endpoints.PERCENTILEEXC([1,2,3,4], 0.3)1.5
PERCENTILEINCReturns the k-th percentile of values in a range, including the endpoints.PERCENTILEINC([1,2,3,4], 0.3)1.9
PERCENTRANKEXCReturns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set.PERCENTRANKEXC([1,2,3,4], 2, 2)0.4
PERCENTRANKINCReturns the rank of a value in a data set as a percentage (0..1, inclusive) of the data set.PERCENTRANKINC([1,2,3,4], 2, 2)0.33
PERMUTReturns the number of permutations for a given number of objects that can be selected from the total objects.PERMUT(100, 3)970200
PERMUTATIONAReturns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.PERMUTATIONA(4, 3)64
PHIReturns the value of the density function for a standard normal distribution.PHI(0.75)0.30113743215480443
POISSONDISTReturns the Poisson distribution.POISSONDIST(2, 5, true)0.12465201948308113
PROBReturns the probability that values in a range are between two limits.PROB([1,2,3,4], [0.1,0.2,0.2,0.1], 2, 3)0.4
QUARTILEEXCReturns the quartile of a data set, based on percentile values (exclusive).QUARTILEEXC([1,2,3,4], 1)1.25
QUARTILEINCReturns the quartile of a data set, based on percentile values (inclusive).QUARTILEINC([1,2,3,4], 1)1.75
RANKAVGReturns the rank of a number in a list of numbers, the rank is the average of ranks for duplicate numbers.RANKAVG(4, [2,4,4,8,8,16], false)4.5
RANKEQReturns the rank of a number in a list of numbers.RANKEQ(4, [2,4,4,8,8,16], false)4
RSQReturns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's.RSQ([9,7,5,3,1], [10,6,1,5,3])0.4891304347826088
SKEWReturns the skewness of a distribution.SKEW([3,4,5,2,3,4,5,6,4,7])0.3595430714067974
SKEWPReturns the skewness of a distribution based on a population.SKEWP([3,4,5,2,3,4,5,6,4,7])0.303193339354144
SLOPEReturns the slope of the linear regression line.SLOPE([1,9,5,7], [0,4,2,3])2
SMALLReturns the k-th smallest value in a data set.SMALL([3,5,3,5,4,4,2,4,6,7], 3)3
STANDARDIZEReturns a normalized value.STANDARDIZE(42, 40, 1.5)1.3333333333333333
STDEVACalculates standard deviation based on a sample, including text and logical values.STDEVA([2,4], [8,16], [true, false])6.013872850889572
STDEVPCalculates standard deviation based on an entire population.STDEVP([2,4], [8,16], [true, false])5.361902647381804
STDEVPACalculates standard deviation based on an entire population, including text and logical values.STDEVPA([2,4], [8,16], [true, false])5.489889697333535
STDEVSCalculates standard deviation based on a sample.STDEVS([2,4], [8,16], [true, false])6.191391873668904
STEYXReturns the standard error of the predicted y-value for each x in the regression.STEYX([2,3,9,1,8,7,5], [6,5,11,7,5,4,4])3.305718950210041
TDISTReturns the Student's t-distribution.TDIST(60, 1, true)0.9946953263673741
TINVReturns the inverse of the Student's t-distribution.TINV(0.9946953263673741, 1)59.99999999996535
TRIMMEANReturns the mean of the interior of a data set.TRIMMEAN([4,5,6,7,2,3,4,5,1,2,3], 0.2)3.7777777777777777
VARACalculates variance based on a sample, including text and logical values.VARA([2,4], [8,16], [true, false])36.16666666666667
VARPCalculates variance based on an entire population.VARP([2,4], [8,16], [true, false])28.75
VARPACalculates variance based on an entire population, including text and logical values.VARPA([2,4], [8,16], [true, false])30.13888888888889
VARSCalculates variance based on a sample.VARS([2,4], [8,16], [true, false])38.333333333333336
WEIBULLDISTReturns the Weibull distribution.WEIBULLDIST(105, 20, 100, true)0.9295813900692769

Text formulas

Perform text operations such as concatenation, or extracting a substring.

FormulasDescriptionExampleExpected return
CHARReturns the character specified by a number.CHAR(65)A
CLEANRemoves all non-printable characters from text.CLEAN('Monthly report')Monthly report
CODEReturns a numeric code for the first character in a text string.CODE('A')65
CONCATENATEJoins several text items into one text item.CONCATENATE('Andreas', ' ', 'Hauser')Andreas Hauser
EXACTChecks whether two text strings are exactly the same, including case.EXACT('Word', 'word')false
FINDFinds one text value within another (case-sensitive).FIND('M', 'Miriam McGovern', 3)8
LEFTReturns the leftmost characters from a text value.LEFT('Sale Price', 4)Sale
LENReturns the number of characters in a text string.LEN('Phoenix, AZ')11
LOWERConverts text to lowercase.LOWER('E. E. Cummings')e. e. cummings
MIDReturns a specific number of characters from a text string starting at the position you specify.MID('Fluid Flow', 7, 20)Flow
PROPERCapitalizes the first letter in each word of a text value.PROPER('this is a TITLE')This Is A Title
REGEXEXTRACTExtracts text that matches a regular expression.REGEXEXTRACT('Palo Alto', 'Alto')Alto
REGEXMATCHChecks whether a text matches a regular expression.REGEXMATCH('Palo Alto', 'Alto')true
REGEXREPLACEReplaces part of a text string that matches a regular expression.REGEXREPLACE('Sutoiku', 'utoiku', 'TOIC')STOIC
REPLACEReplaces part of a text string with a different text string.REPLACE('abcdefghijk', 6, 5, '*')abcde*k
REPTRepeats text a given number of times.REPT('*-', 3)*-*-*-
RIGHTReturns the rightmost characters from a text value.RIGHT('Sale Price', 5)Price
ROMANConverts an Arabic numeral to Roman, as text.ROMAN(499)CDXCIX
SEARCHFinds one text value within another (not case-sensitive).SEARCH('margin', 'Profit Margin')8
SPLITSplits text around a specified delimiter.SPLIT('A,B,C', ',')A,B,C
SUBSTITUTESubstitutes new text for old text in a text string.SUBSTITUTE('Quarter 1, 2011', '1', '2', 3)Quarter 1, 2012
TReturns the text referred to by value.T('Rainfall')Rainfall
TRIMRemoves extra spaces from text.TRIM(' First Quarter Earnings ')First Quarter Earnings
UNICHARReturns the Unicode character that is referenced by the given numeric value.UNICHAR(66)B
UNICODEReturns the number corresponding to the first character of the text.UNICODE('B')66
UPPERConverts text to uppercase.UPPER('total')TOTAL