Spreadsheet Functions

Functions in Row Zero are compatible with Excel and Google Sheets. Most popular spreadsheet functions are supported.

If the function you need isn't listed here, send us a request and we'll explore adding it. You can also use the Python code window to create custom spreadsheet functions.

FunctionDescription
ABSCompute the absolute value of a number
ACCRINTReturns the accrued interest for a security that pays periodic interest
ACCRINTMReturns the accrued interest at maturity for a security that pays interest at maturity
ACOSCompute the arccosine of a number, returning an angle in radians
ACOSHCompute the inverse hyperbolic cosine of a number
ACOTReturns the arccotangent (inverse cotangent) of a number in radians.
ACOTHReturns the inverse hyperbolic cotangent of a number.
ADDAdds two numeric values (x+y)
AMORLINCReturns the depreciation for each accounting period using a linear method
ANDReturns TRUE if all of the values are TRUE, and FALSE otherwise.
ARABICConverts a Roman numeral to an Arabic numeral
ARRAYCreates a range from a datatable
ARRAYFORMULAAllow array formulas to return multiple values
ASINCompute the arcsine of a number, returning an angle in radians
ASINHCompute the inverse hyperbolic sine of a number
ATANCompute the arctangent of a number, returning an angle in radians
ATAN2Compute the arctangent of the given x and y coordinates, returning an angle in radians between PI and -PI, excluding -PI
ATANHCompute the inverse hyperbolic tangent of a number
AVEDEVCalculates the average of the absolute deviations of the given values from their mean
AVERAGECalculates the average (arithmetic mean) of the given values
AVERAGEIFCalculates the average (arithmetic mean) of all values in a range that meet a criterion
AVERAGEIFSCalculates the average (arithmetic mean) of all values that meet multiple criteria
BAHTTEXTConverts a number to Thai text and adds a suffix of "Baht"
BASEConverts a number into a text representation with the given radix (base)
BESSELIReturns the modified Bessel function of the first kind
BESSELJReturns the Bessel function of the first kind
BESSELKReturns the modified Bessel function of the second kind
BESSELYReturns the Bessel function of the second kind
BETA.DISTReturns the beta distribution.
BETA.INVReturns the inverse of the beta cumulative distribution.
BETADISTLegacy compatibility form of BETA.DIST.
BIN2DECConverts a binary number to decimal
BIN2HEXConverts a binary number to hexadecimal
BIN2OCTConverts a binary number to octal
BINOM.DISTReturns the individual term binomial distribution probability
BINOM.DIST.RANGEReturns the probability of a trial result using a binomial distribution
BINOM.INVReturns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value
BITANDReturns a bitwise AND of two numbers
BITLSHIFTReturns a number shifted left by the specified number of bits
BITORReturns a bitwise OR of two numbers
BITRSHIFTReturns a number shifted right by the specified number of bits
BITXORReturns a bitwise XOR of two numbers
BUCKETCOUNTBucketizes data into a specified number of equally-sized buckets. Non-numeric values are ignored.
BUCKETSIZEBucketizes data into a buckets of specified size. Non-numeric values are ignored.
CEILINGRounds a number up to the nearest multiple of a specified factor
CEILING.MATHRounds a number up to the nearest integer or multiple of significance
CEILING.PRECISERounds a number up to the nearest multiple of significance
CHARReturns the character specified by a number
CHISQ.DISTReturns the chi-squared distribution
CHISQ.DIST.RTReturns the right-tailed probability of the chi-squared distribution
CHISQ.INVReturns the inverse of the left-tailed probability of the chi-squared distribution
CHISQ.INV.RTReturns the inverse of the right-tailed probability of the chi-squared distribution
CHOOSEReturns the value at the specified position in a list of values
CLEANRemoves nonprintable characters from text
CODEReturns the numeric code for the first character in the text.
COLUMNReturns the column number of the cell containing the formula. If given a reference, returns the column number of the reference.
COLUMNSCompute the number of columns in a range
COMBINReturns the number of combinations for a given number of items.
COMBINAReturns the number of combinations with repetitions for a given number of items.
CONCATConcatenates a list of values into a single text value
CONFIDENCE.NORMReturns the confidence interval for a population mean using a normal distribution.
CONFIDENCE.TReturns the confidence interval for a population mean using a t distribution.
CONVERTConverts a number from one measurement unit to another
COSCompute the cosine of an angle in radians
COSHReturns the hyperbolic cosine of a number
COTReturns the cotangent of an angle specified in radians.
COTHReturns the hyperbolic cotangent of a number.
COUNTCounts the number of non-empty numeric or temporal values
COUNTACounts the number of non-empty values
COUNTBLANKCounts the number of empty cells in a range
COUNTIFCounts the number of cells within a range that meet a criterion
COUNTIFSCounts the number of cells within a range that meet multiple criteria
COUNTUNIQUECounts the number of unique values in a range
COUNTUNIQUEIFSCounts the number of unique values in a range that meet multiple criteria
COUPDAYSReturns the number of days in the coupon period that contains the settlement date
COUPDAYSNCReturns the number of days from the settlement date to the next coupon date
COUPNCDReturns the next coupon date after the settlement date
COUPNUMReturns the number of coupons payable between the settlement and maturity dates
COUPPCDReturns the previous coupon date before the settlement date
CSCReturns the cosecant of an angle specified in radians.
CSCHReturns the hyperbolic cosecant of a number.
CUMIPMTReturns the cumulative interest paid between two periods
CUMPRINCReturns the cumulative principal paid between two periods
DATATABLECreates a data table
DATECreate a date from its components
DATEDIFReturns the difference between two dates in the requested units
DATEPARTExtract the date part of a datetime
DATEVALUEConverts a date in text format to a date value
DAYReturns the numeric (1-31) day of the month
DAYSReturns the number of days between two dates
DAYS360Returns the number of days between two dates based on a 360-day year (12 30-day months)
DBReturns the depreciation of an asset for a specified period using the fixed-declining balance method
DDBReturns the depreciation of an asset for a specified period using the double-declining balance method
DEC2BINConverts a decimal number to binary
DEC2HEXConverts a decimal number to hexadecimal
DEC2OCTConverts a decimal number to octal
DECIMALConverts a text representation of a number in a given base into a decimal number
DEGREESConvert an angle from radians to degrees
DELTATests whether two values are equal.
DISCReturns the discount rate for a security
DIVIDEDivides the first numeric value by the second (x/y)
DOLLARDEConverts a fractional dollar amount to a decimal dollar amount
DOLLARFRConverts a decimal dollar amount to a fractional dollar amount
EDATEReturns a date some number of months before or after a given date
EFFECTReturns the effective annual interest rate from a nominal rate and compounding periods
EOMONTHReturns the last day of the month a number of months before or after a given date
ERFReturns the error function value
ERF.PRECISEReturns the error function value using a precise algorithm
ERFCReturns the complementary error function value
ERROR.TYPEReturns a number corresponding to an error type
EVENRounds a number up to the nearest even integer
EXACTCompare two strings for exact, case-sensitive equality
EXPCompute e to the power of a number (e^x)
EXPON.DISTReturns the exponential distribution.
EXTRACTCOLUMNNAMEReturns the column name of a column as text
F.DISTReturns the F probability distribution
F.DIST.RTReturns the right-tailed F probability distribution
F.INVReturns the inverse of the F probability distribution
F.INV.RTReturns the inverse of the right-tailed F probability distribution
FACTReturns the factorial of a number
FACTDOUBLEReturns the double factorial of a number
FALSEReturns the logical value FALSE
FILTERFilters a range based on a condition
FINDFinds one text value within another (case-sensitive) and returns the position of the found text (starting at 1)
FISHERReturns the Fisher transformation.
FISHERINVReturns the inverse Fisher transformation.
FIXEDRounds a number and returns it as text with optional commas
FLATTENFlattens the values from one or more ranges in row-major order into a single column
FLOORRounds a number down to the nearest multiple of a specified factor
FLOOR.MATHRounds a number down to the nearest integer or multiple of significance
FLOOR.PRECISERounds a number down to the nearest multiple of significance
FORECASTPredicts a y value at a given x using linear regression on known data points
FREQUENCYCalculates how often values occur within a range of values. Non-numeric values are ignored.
FVReturns the future value of an investment
GAMMAReturns the gamma function value.
GAMMA.DISTReturns the gamma distribution.
GAMMA.INVReturns the inverse gamma cumulative distribution.
GAMMALNReturns the natural log of the gamma function.
GAMMALN.PRECISEReturns the natural log of the gamma function.
GAUSSReturns the probability that a standard normal variable lies between 0 and z.
GCDReturns the greatest common divisor of two or more integers
GESTEPTests whether a number is greater than or equal to a threshold value.
GLUEConcatenates a list of values into a single text value with a delimiter between each value
HEX2BINConverts a hexadecimal number to binary
HEX2DECConverts a hexadecimal number to decimal
HEX2OCTConverts a hexadecimal number to octal
HISTOGRAMCompute the unique values from a specified range and how many times each value appears
HOURReturns the hour (0-23) of a time
HSTACKStacks multiple ranges horizontally
HYPGEOM.DISTReturns the hypergeometric distribution.
HYPGEOMDISTLegacy compatibility form of HYPGEOM.DIST.
IFReturn the first value if the condition is TRUE and the second value if the condition is FALSE
IFERRORReturns the first argument if it is not an error, otherwise returns the second argument
IFNAReturns the first argument if it is not #N/A, otherwise returns the second argument
IFSReturn the first value for which the condition is TRUE
IMPORTRANGEImports data from a range in another workbook
INDEXReturn the value from a range at the given row and column
INTConverts a number to an integer by rounding down, and parses strings into integers
INTRATEReturns the interest rate for a fully invested security
IPMTReturns the interest component of a payment for a specific period
IRRReturns the internal rate of return for a series of cash flows
ISBLANKReturns true if the value is blank, otherwise returns false
ISERRReturns true if the value is an error (excluding #N/A), otherwise returns false
ISERRORReturns true if the value is an error, otherwise returns false
ISEVENReturns TRUE if number is even, or FALSE if number is odd.
ISLOGICALReturns TRUE if the value is a logical value (TRUE or FALSE), or FALSE otherwise.
ISNAReturns true if the value is an #N/A error, otherwise returns false
ISNONTEXTReturns TRUE if the value is not text, or FALSE otherwise.
ISNUMBERReturns TRUE if the value is a number, a date, or a time value. Returns FALSE otherwise.
ISO.CEILINGRounds a number up to the nearest multiple of significance
ISODDReturns TRUE if number is odd, or FALSE if number is even.
ISOWEEKNUMReturns the ISO week number of a date
ISOYEARReturns the ISO week-numbering year for a date
ISPMTReturns the interest payment for a specific period of an investment with even principal payments
ISREFReturns TRUE if the argument is a reference
ISTEXTReturns TRUE if the value is text, or FALSE otherwise.
JSONEXTRACTExtracts a from a JSON object based on a hierarchical field path
KINDReturns the kind of value as text
LARGECompute the nth largest value in a range
LCMReturns the least common multiple of two or more integers
LEFTReturns the first N characters from some text
LENCompute the number of characters in a value
LINESTFits a linear regression and returns coefficients with optional statistics
LNCompute the natural logarithm of a positive number
LOGCompute the logarithm of a number to a specified base
LOG10Returns the base-10 logarithm of a number
LOGNORM.DISTReturns the log-normal cumulative distribution function or probability density function
LOGNORM.INVReturns the inverse of the lognormal cumulative distribution function
LOWERConverts text to lowercase
MAKEERRORCreates an error value
MATCHCompute the row index of a value in a range
MAXCompute the largest numeric or temporal value
MAXIFSReturns the maximum value in a range that meets multiple criteria
MDURATIONReturns the modified Macaulay duration of a security with an assumed par value of 100
MEDIANCompute the median of the given values
MIDReturns the specified number of characters from some text starting at the specified position
MINCompute the smallest numeric or temporal value
MINIFSReturns the minimum value in a range that meets multiple criteria
MINUSSubtracts the second numeric value from the first (x-y)
MINUTEReturns the minute (0-59) of a time
MODReturns the remainder of a division
MODEReturns the most common number in the given values
MONTHReturns the month (1-12) of a date
MROUNDRounds a number to the nearest specified multiple
MULTILOOKUPReturn the first row from the return range where all the keys match the specified values in the key ranges
MULTIPLYMultiplies two numeric values (x*y)
NConverts a value to a number
NAReturns the #N/A error
NEGBINOM.DISTReturns the negative binomial distribution.
NEGBINOMDISTLegacy compatibility form of NEGBINOM.DIST.
NETWORKDAYSReturns the number of whole workdays between two dates
NETWORKDAYS.INTLReturns the number of whole workdays between two dates with custom weekend parameters
NOMINALReturns the nominal annual interest rate from an effective rate and compounding periods
NORM.DISTReturns the normal distribution for the specified mean and standard deviation
NORM.INVReturns the inverse of the normal cumulative distribution for the specified mean and standard deviation
NORM.S.DISTReturns the standard normal distribution (with mean of 0 and standard deviation of 1)
NORM.S.INVReturns the inverse of the standard normal cumulative distribution (with mean of 0 and standard deviation of 1)
NOTReverses the logical value of its argument. Returns TRUE if the argument is FALSE and returns FALSE if the argument is TRUE.
NOWReturns the current date and time in the timezone configured in workbook settings
NPERReturns the number of periods needed for payments to reach a goal
NPVReturns the net present value of an investment
NUMBERVALUEParses text into a number
OBJECTCreates a JSON object
OCT2BINConverts an octal number to binary
OCT2DECConverts an octal number to decimal
OCT2HEXConverts an octal number to hexadecimal
ODDRounds a number up to the nearest odd integer
ODDFPRICEReturns the price per $100 face value of a security with an odd first coupon period
ODDFYIELDReturns the yield of a security with an odd first coupon period
ODDLPRICEReturns the price per $100 face value of a security with an odd last coupon period
ODDLYIELDReturns the yield of a security with an odd last coupon period
ORReturns TRUE if any of the values are TRUE, and FALSE otherwise.
PARSEParses text into a value, as if it were typed into a cell
PDURATIONReturns the number of periods required for an investment to reach a specified future value
PERCENTILECompute the specified percentile of the given values
PERMUTReturns the number of permutations for a given number of objects.
PERMUTATIONAReturns the number of permutations for a given number of objects (with repetition allowed).
PHIReturns the standard normal probability density function.
PIThe constant pi (π)
PMTReturns the payment for an annuity
POISSON.DISTReturns the Poisson distribution.
POWERCompute the result of a number raised to a power (x^y)
PPMTReturns the principal component of a payment for a specific period
PRICEDISCReturns the price per $100 face value of a discounted security
PRICEMATReturns the price per $100 face value of a security that pays interest at maturity
PRODUCTComputes the product of the numeric values
PROPERCapitalizes the first letter in a text and any other letters in text that follow any character other than a letter. Converts all other letters to lowercase letters
PVReturns the present value of an investment
QUARTILEReturns the quartile of a dataset
QUOTIENTReturns the integer portion of a division
RADIANSConvert an angle from degrees to radians
RANDReturns a random number between 0 (inclusive) and 1 (exclusive)
RANDARRAYReturns an array of random numbers between the specified minimum and maximum values
RANDBETWEENReturns a random number between the specified minimum and maximum values
RANKCompute the rank of a number in a range
RANK.EQCompute the rank of a number in a range
RATEReturns the interest rate per period of an annuity
RECEIVEDReturns the amount received at maturity for a fully invested security
REGEXEXTRACTExtracts text based on a supplied regular expression
REGEXREPLACEReplaces text based on a supplied regular expression
REGEXTESTTests if a text matches a regular expression
REPLACEReplaces part of a text with another text
REPTRepeats text a given number of times.
RIGHTReturns the last N characters in some text
ROMANConverts an Arabic numeral to Roman, as text
ROUNDRounds a number to a specified number of digits
ROUNDDOWNRounds a number down towards zero to a specified number of digits
ROUNDUPRounds a number up away from zero to a specified number of digits
ROWReturns the row number of the cell containing the formula, or the row in the data table column. If given a reference, returns the row number of the reference.
ROWSCompute the number of rows in a range
RRIReturns the equivalent interest rate for an investment over a number of periods.
SEARCHFinds one text value within another (case-insensitive) and returns the position of the found text (starting at 1)
SECReturns the secant of an angle specified in radians.
SECHReturns the hyperbolic secant of a number.
SECONDReturns the second (0-59) of a time
SECONDSConverts a number of seconds into a duration value
SELECTCOLUMNSSelects columns from a data table to form a new data table
SEQUENCEReturns an array of sequential numbers
SIGNDetermines the sign of a number: returns 1 if positive, 0 if zero, and -1 if negative
SINCompute the sine of an angle in radians
SINHReturns the hyperbolic sine of a number
SLNReturns the straight-line depreciation of an asset for one period
SLOPEReturns the slope of the linear regression line through known data points
SMALLCompute the nth smallest value in a range
SMARTSAMPLESamples a specified number of (x1, x2, ... xN) tuples from the given columns or ranges, making an effort to retain outliers. This is useful for any visual inspection of large datasets and things like scatter plots.
SORTSorts the contents of a range
SORTBYSorts the contents of a range or array based on values in a corresponding range or array
SQRTCompute the square root of a number
SQRTPIReturns the square root of (number * pi)
STANDARDIZEReturns a normalized value (z-score).
STDEVCompute sample standard deviation of the given values (divides by n-1)
STDEV.PCompute population standard deviation of the given values (divides by n)
STDEV.SCompute sample standard deviation of the given values (divides by n-1)
SUBSTITUTEReplaces occurrences of a specified substring within text with another substring
SUBTOTALComputes a subtotal for a range using a specified function number
SUMComputes a sum of the numeric values
SUMIFSums the values in a range that meet a criterion
SUMIFSSums the values in a range that meet multiple criteria
SUMPRODUCTCompute the sum of the product of corresponding values in the given ranges
SWITCHMatch an expression against a list of values and return the corresponding result
SYDReturns the sum-of-years' digits depreciation of an asset for a specified period
TReturns the value if it is text; otherwise returns empty text
T.DISTReturns the Student's t-distribution
T.DIST.2TReturns the two-tailed Student's t-distribution
T.DIST.RTReturns the right-tailed probability of Student's t-distribution.
T.INVReturns the left-tailed inverse of the Student's t-distribution
T.INV.2TReturns the two-tailed inverse of the Student's t-distribution
T.TESTReturns the probability associated with a Student's t-test
TANCompute the tangent of an angle in radians
TANHReturns the hyperbolic tangent of a number
TBILLEQReturns the bond-equivalent yield for a treasury bill
TBILLPRICEReturns the price per $100 face value for a Treasury bill
TBILLYIELDReturns the yield for a Treasury bill
TDISTLegacy compatibility form of Student's t-distribution probability.
TEXTFormats a value as text according to the format pattern
TEXTAFTERReturns text that occurs after a given delimiter
TEXTBEFOREReturns text that occurs before a given delimiter
TEXTJOINConcatenates a list of values into a single text value, with a specified delimiter
TEXTSPLITSplits text into an array of substrings based on a delimiter
TIMECreate a time value from hour, minute, and second components
TIMEPARTExtract the time part of a datetime
TIMEVALUEConverts a time in text format to a time value
TODAYReturns the current date in the timezone configured in workbook settings
TRANSPOSETransposes a range
TRIMRemoves all spaces from text except for single spaces between words
TRUEReturns the logical value TRUE
TRUNCTruncates a number to an integer by removing the fractional part
TYPEReturns a number that identifies the type of a value.
TYPEDUNIQUECompute a list of unique values from a specified range
UNICHARReturns the Unicode character for the given numeric value.
UNICODEReturns the Unicode number for the first character of the text.
UNIQUECompute a list of unique rows or columns from a specified range
UPPERConverts text to uppercase
VALUEParses text into a number
VARCompute sample variance of the given values (divides by n-1)
VAR.PCompute population variance of the given values (divides by n)
VAR.SCompute sample variance of the given values (divides by n-1)
VDBReturns the depreciation of an asset for a specified period using a declining balance method
VLOOKUPSearches for a value in the first column the given range and returns the value in the same row from the specified column
VSTACKStacks multiple ranges vertically
WEEKDAYReturns the weekday for a date
WEEKNUMReturns the week number of a date
WEIBULL.DISTReturns the Weibull distribution
WILDCARDESCAPETransforms text so the wildcard characters ? and * no long trigger the pattern matcher
WORKDAYReturns a date that is the specified number of working days before or after a date
WORKDAY.INTLReturns a date that is the specified number of working days before or after a date with custom weekend parameters
XIRRReturns the internal rate of return for a schedule of cash flows that are not necessarily periodic.
XLOOKUPSearch for a value in the lookup range and return the corresponding value from the return range
XMATCHCompute the position of a value in a range
XNPVReturns the net present value of an investment based on a specified date
XORReturns TRUE if an odd number of values are TRUE, and FALSE otherwise.
YEARReturns the year of a date value
YEARFRACReturns the fraction of a year between two dates
YIELDMATReturns the annual yield of a security that pays interest at maturity