All Functions
Complete reference for 228 Excel & Google Sheets functions
Financial Functions
55ACCRINT
Calculates accrued interest for a security that pays periodic interest.
ACCRINTM
Calculates accrued interest for a security that pays interest at maturity.
AMORDEGRC
Calculates depreciation for a specific period using the French declining balance method.
AMORLINC
Calculates depreciation for a specific period using the French straight-line method.
COUPDAYBS
Calculates the number of days from the beginning of the coupon period to the settlement date.
COUPDAYS
Calculates the number of days in the coupon period that contains the settlement date.
COUPDAYSNC
Calculates the number of days from the settlement date to the next coupon date.
COUPNCD
Calculates the next coupon date after the settlement date.
COUPNUM
Calculates the number of coupons payable between the settlement date and maturity date.
COUPPCD
Calculates the previous coupon date before the settlement date.
CUMIPMT
Calculates the cumulative interest paid on a loan between two periods.
CUMPRINC
Calculates the cumulative principal paid on a loan between two periods.
DB
Calculates declining balance depreciation for a specified period.
DDB
Calculates double-declining balance depreciation for a specified period.
DISC
Calculates the discount rate for a security.
DOLLARDE
Converts a dollar price expressed as a fraction into a decimal number.
DOLLARFR
Converts a decimal dollar price into a fractional dollar price.
DURATION
Calculates the Macaulay duration of a bond.
EFFECT
Calculates the effective annual interest rate from a nominal rate.
FV
Calculates the future value of a series of equal payments and/or a lump sum.
FVSCHEDULE
Calculates the future value of a principal after applying a series of compound interest rates.
INTRATE
Calculates the interest rate for a fully invested security.
IPMT
Finds the interest portion of a loan payment in a given period.
IRR
IRR tells you the annual return rate of an investment given its cash flows (initial cost + periodic returns). If IRR exceeds your required return, the investment is worthwhile.
ISPMT
Calculates the interest paid during a specific period of a loan with equal principal payments.
MDURATION
Calculates the modified duration of a bond.
MIRR
Calculates the modified internal rate of return for a series of cash flows.
NOMINAL
Calculates the nominal annual interest rate from an effective rate.
NPER
Calculates the number of periods for a loan or investment.
NPV
Finds the present value of future cash flows minus the initial investment.
ODDFPRICE
Calculates the price of a security with an odd first coupon period.
ODDFYIELD
Calculates the yield of a security with an odd first coupon period.
ODDLPRICE
Calculates the price of a security with an odd last coupon period.
ODDLYIELD
Calculates the yield of a security with an odd last coupon period.
PDURATION
Calculates the number of periods required for an investment to reach a specified value.
PMT
PMT tells you how much each payment will be on a fixed-rate loan. Give it the interest rate, number of payments, and loan amount â it returns the payment per period (monthly, yearly, etc.).
PPMT
Finds the principal portion of a loan payment in a given period.
PRICE
Calculates the price of a security that pays periodic interest.
PRICEDISC
Calculates the price of a discounted security.
PRICEMAT
Calculates the price of a security that pays interest at maturity.
PV
Calculates the present value of a series of future payments or a future lump sum.
RATE
Calculates the interest rate per period of a loan or investment.
RECEIVED
Calculates the amount received at maturity for a fully invested security.
RRI
Calculates the equivalent compound interest rate for an investment.
SLN
Calculates straight-line depreciation of an asset for one period.
SYD
Calculates sum-of-years-digits depreciation for a specified period.
TBILLEQ
Calculates the bond-equivalent yield for a Treasury bill.
TBILLPRICE
Calculates the price of a Treasury bill per $100 face value.
TBILLYIELD
Calculates the yield for a Treasury bill.
VDB
Calculates variable declining balance depreciation for any period you specify.
XIRR
Calculates the internal rate of return for a schedule of cash flows that is not necessarily periodic.
XNPV
Calculates the net present value for a schedule of cash flows that is not necessarily periodic.
YIELD
Calculates the yield to maturity of a security that pays periodic interest.
YIELDDISC
Calculates the annual yield of a discounted security.
YIELDMAT
Calculates the annual yield of a security that pays interest at maturity.
Statistical Functions
41AVERAGE
Calculates the mean of the provided numbers.
AVERAGEIF
Averages values that satisfy one condition.
AVERAGEIFS
Averages values that meet all of the specified conditions.
CORREL
Pearson correlation coefficient between two arrays.
COUNT
COUNT returns the count of cells containing numbers in a range.
COUNTA
COUNTA returns the count of all non-empty cells in a range, including text, numbers, and logical values.
COUNTBLANK
COUNTBLANK returns the count of completely blank cells in a range.
COUNTIF
COUNTIF counts cells that match a condition. Give it a range and a criterion (like '>100' or 'East') and it tells you how many cells pass the test.
COUNTIFS
Counts cells that meet all of the specified conditions.
FORECAST.LINEAR
Predicts a y-value from a linear regression at a given x (Excel 2016+).
FORECAST
Predicts a y-value from a linear regression at a given x.
GROWTH
Fits an exponential curve and returns predicted y-values (array).
LINEST
Returns regression statistics (slope, intercept, and more) as an array.
MAX
MAX finds the highest value in a range.
MAXIFS
Finds the largest value where multiple conditions are all true.
MEDIAN
Finds the central (50th percentile) value of a dataset.
MIN
MIN finds the lowest value in a range.
MINIFS
Finds the smallest value where multiple conditions are all true.
MODE.MULT
Returns every value tied for the highest frequency as an array.
MODE.SNGL
Returns the single most frequent value, choosing the lowest on a tie.
MODE
Returns the single most frequently occurring value in a set of numbers.
PEARSON
Pearson correlation coefficient between two arrays (same as CORREL).
PERCENTILE.EXC
Returns the value at percentile k (0 < k < 1) using the exclusive method.
PERCENTILE.INC
Returns the value at percentile k (0 <= k <= 1) using the inclusive method.
PERCENTILE
Returns the value at a given percentile (k from 0 to 1, inclusive).
QUARTILE.EXC
Returns quartile 1, 2, or 3 using the exclusive method (endpoints excluded).
QUARTILE.INC
Returns the chosen quartile (0=min to 4=max) using the inclusive method.
QUARTILE
Returns the specified quartile (0=min, 1, 2=median, 3, 4=max) of a dataset.
RANK.AVG
Ranks a value; ties receive the average of the ranks they occupy.
RANK.EQ
Ranks a value in a list; ties share a rank and the next rank is skipped.
RANK
Gives the rank of a value in a dataset, with ties sharing a rank.
STDEV
Sample standard deviation (n-1) of a set of numbers.
STDEVA
Sample standard deviation that also counts text and logicals as numbers.
STDEVP
Population standard deviation (n) of a set of numbers.
STDEVPA
Population standard deviation that also counts text and logicals as numbers.
SUM
SUM calculates the sum of numeric values in a range.
TREND
Fits a linear trend and returns predicted y-values (array).
VAR
Sample variance (n-1) of a set of numbers.
VARA
Sample variance that also counts text and logicals as numbers.
VARP
Population variance (n) of a set of numbers.
VARPA
Population variance that also counts text and logicals as numbers.
Math & Trigonometry Functions
33ABS
ABS converts negative numbers to positive, leaving positive numbers unchanged.
ACOS
Returns the angle (in radians) whose cosine is the supplied number.
ASIN
Returns the angle (in radians) whose sine is the supplied number.
ATAN
Returns the angle (in radians) whose tangent is the supplied number.
ATAN2
Returns the angle in radians to a point given by its x and y coordinates.
CEILING.MATH
Rounds up to a multiple of significance, with a mode for negative numbers.
CEILING
Rounds a number up to the nearest multiple of significance.
COS
Returns the cosine of an angle given in radians.
DEGREES
Converts radians to degrees.
EXP
Returns e raised to a power.
FLOOR.MATH
Rounds down to a multiple of significance, with a mode for negative numbers.
FLOOR
Rounds a number down to the nearest multiple of significance.
INT
Rounds a number down to the nearest integer.
LN
Returns the natural (base-e) logarithm of a number.
LOG
Returns the logarithm of a number to a given base (default 10).
LOG10
Returns the base-10 logarithm of a number.
MOD
Returns the remainder after division, with the sign of the divisor.
MROUND
Rounds a number to the nearest multiple of a given value.
PI
Returns the constant Ī (about 3.14159).
POWER
POWER calculates number^power, raising a base number to an exponent.
PRODUCT
Multiplies together all supplied numbers.
RADIANS
Converts degrees to radians.
ROUND
ROUND rounds numbers to a given number of decimal places, following standard rounding rules.
ROUNDDOWN
ROUNDDOWN always rounds numbers down, never up, to the specified decimal places.
ROUNDUP
ROUNDUP always rounds numbers up, never down, to the specified decimal places.
SIGN
Returns 1, 0, or -1 indicating a number's sign.
SIN
Returns the sine of an angle given in radians.
SQRT
SQRT calculates the square root of a number.
SUMIF
SUMIF adds values that match a condition. Give it a range to check, a condition to test, and a range of numbers to sum â it only adds the ones that pass the test.
SUMIFS
Adds numbers that meet all of the specified conditions.
SUMPRODUCT
Sums the products of corresponding array elements; great for conditional calculations.
TAN
Returns the tangent of an angle given in radians.
TRUNC
Truncates a number to an integer or set number of digits (no rounding).
Text Functions
20CLEAN
Strips non-printable control characters from text.
CONCAT
CONCAT combines multiple text strings into a single string.
CONCATENATE
Joins text values together (legacy function).
FIND
Finds the position of text within another text string, case-sensitive.
LEFT
LEFT extracts a specified number of characters from the left side of a text string.
LEN
LEN counts the number of characters in a text string.
LENB
Returns the byte length of text.
LOWER
Makes every letter lowercase.
MID
MID extracts characters from the middle of a text string at a specified starting position.
PROPER
Title-cases each word in a string.
REPLACE
Replaces characters by position.
REPT
Repeats text a given number of times.
RIGHT
RIGHT extracts a specified number of characters from the right side of a text string.
SEARCH
Finds the position of text within another text string, case-insensitive.
SUBSTITUTE
SUBSTITUTE replaces specific text within a string with new text.
TEXT
Formats a number or date as text using a format code.
TEXTJOIN
Joins text with a delimiter, optionally skipping blanks.
TRIM
TRIM cleans up text by removing leading, trailing, and extra spaces between words.
UPPER
Makes every letter uppercase.
VALUE
Turns number-like text into an actual number.
Date & Time Functions
20DATE
Assembles a date from year, month, and day values.
DATEDIF
Returns the difference between two dates in years, months, or days.
DAY
DAY returns the day number (1-31) from a date.
DAYS
Counts the days from start_date to end_date.
EDATE
Shifts a date by a number of months.
EOMONTH
Returns the last day of the month offset by n months.
HOUR
Returns the hour portion (0-23) of a time value.
MINUTE
Returns the minute portion (0-59) of a time value.
MONTH
MONTH returns the month (1-12) from a date.
NETWORKDAYS.INTL
Counts workdays between two dates with a custom weekend.
NETWORKDAYS
Counts workdays between two dates.
NOW
NOW displays the current date and time, updating automatically.
SECOND
Returns the second portion (0-59) of a time value.
TIME
Converts hour, minute, and second into a time fraction of a day.
TODAY
TODAY displays today's date, updating automatically when the workbook opens or recalculates.
WEEKDAY
Returns the day-of-week number for a date.
WEEKNUM
Returns the week-of-year number for a date.
WORKDAY.INTL
Returns a date n workdays away with a custom weekend.
WORKDAY
Returns a date n workdays from a start date.
YEAR
YEAR returns the year component of a date.
Database Functions
13DATABASE
D-functions calculate on database rows that match a criteria range, using a shared (database, field, criteria) signature.
DAVERAGE
Averages the values in a database column for rows that meet the criteria.
DCOUNT
Counts numeric values in a database column for rows that meet the criteria.
DCOUNTA
Counts non-blank values in a database column for rows that meet the criteria.
DGET
Pulls one value from a database column when exactly one row meets the criteria.
DMAX
Returns the maximum value in a database column for rows that meet the criteria.
DMIN
Returns the minimum value in a database column for rows that meet the criteria.
DPRODUCT
Multiplies the values in a database column for rows that meet the criteria.
DSTDEV
Sample standard deviation of a database column for rows that meet the criteria.
DSTDEVP
Population standard deviation of a database column for rows that meet the criteria.
DSUM
Sums the values in a database column for rows that meet the criteria.
DVAR
Sample variance of a database column for rows that meet the criteria.
DVARP
Population variance of a database column for rows that meet the criteria.
Lookup & Reference Functions
9CHOOSE
Returns the nth value from a list.
HLOOKUP
Looks up a value across rows (horizontal search).
INDEX
INDEX retrieves a value from a specific row and column in a range.
INDIRECT
Turns text that looks like a cell reference into an actual reference.
MATCH
MATCH finds the position of a value in a range.
OFFSET
Returns a range shifted by a given number of rows and columns from a starting point.
TRANSPOSE
Flips rows and columns of an array.
VLOOKUP
VLOOKUP searches for a value in the first column of a table array and returns a matching value from another column in the same row.
XLOOKUP
XLOOKUP is the upgraded VLOOKUP â it can search left or right, doesn't require a column index number, handles missing values with a default result, and supports nested arrays. Available in Excel 365 and Excel 2021+.
Logical Functions
10AND
AND checks if ALL conditions are TRUE.
FALSE
Returns the logical value FALSE.
IF
IF checks a condition and returns different values based on whether it is true or false.
IFERROR
IFERROR catches errors and returns a custom value instead.
IFNA
Replaces #N/A errors with a fallback value.
IFS
A simpler way to write multiple IF statements without nesting.
NOT
NOT flips TRUE to FALSE and FALSE to TRUE.
OR
OR checks if ANY condition is TRUE.
TRUE
Returns the logical value TRUE.
XOR
Returns TRUE when an odd number of arguments are TRUE.
Dynamic Array Functions
7FILTER
FILTER pulls out matching rows from a table based on a condition. Unlike VLOOKUP (which returns one value), FILTER can return entire rows and multiple matches â all in one formula.
RANDARRAY
Generates an array of random numbers.
SEQUENCE
Generates a sequence of numbers in an array.
SORT
Sorts a range or array (spills the result).
SORTBY
Sorts an array using other arrays as keys.
UNIQUE
Returns unique values (spills the result).
XMATCH
Modern lookup that returns a position (MATCH replacement).
Information Functions
9CELL
Returns information about a cell (address, contents, format, etc.).
ERROR.TYPE
Returns a number code for an error type.
ISBLANK
Tests whether a cell is truly empty.
ISERROR
Tests whether a value is any error.
ISNA
Tests specifically for the #N/A error.
ISNUMBER
Tests whether a value is numeric.
ISREF
Tests whether a value is a reference.
ISTEXT
Tests whether a value is text.
TYPE
Returns a number code for a value's type.
Google Sheets Functions
11ARRAYFORMULA
ARRAYFORMULA wraps a formula and applies it to every cell in a range at once, so you don't need to copy formulas down.
DETECTLANGUAGE
DETECTLANGUAGE tells you what language a piece of text is written in.
GOOGLEFINANCE
GOOGLEFINANCE pulls live stock prices, currency rates, and historical market data into your spreadsheet.
GOOGLETRANSLATE
GOOGLETRANSLATE translates text in a cell from a source language to a target language.
IMAGE
IMAGE inserts a picture from a URL into a spreadsheet cell and lets you control its size and cropping.
IMPORTRANGE
IMPORTRANGE imports a range from another Google Sheets file by its spreadsheet URL and a range reference.
QUERY
QUERY lets you run SQL-like commands on your spreadsheet data. Filter, sort, aggregate, pivot â all in one formula. It's the Swiss Army knife of Google Sheets data manipulation.
REGEXEXTRACT
REGEXEXTRACT pulls out the part of a text that matches a regular expression pattern.
REGEXMATCH
REGEXMATCH returns TRUE if the text matches a regular expression pattern, otherwise FALSE.
REGEXREPLACE
REGEXREPLACE searches text for a pattern and replaces matching parts with new text.
SPARKLINE
SPARKLINE draws a tiny chart in a cell from a range of numbers, with options for line, bar, column, and win/loss charts.