formulastreak

Excel and Google Sheets functions

One page per function: the full syntax, every argument, a worked example on a live sheet you can edit, the mistakes people make, and which Excel versions and whether Google Sheets have it. Versions come from Microsoft's and Google's own function lists. All 81 functions the course teaches; a few mirror-image pairs, such as MAX and MIN or LEFT and RIGHT, share one page.

Lookup

FunctionWhat it doesExcel sinceGoogle Sheets
INDEXINDEX returns the value at a given position in a range: the nth item of a list, or the cell at a row and column of a grid.All versions Yes
MATCHMATCH returns the position of a value in a single row or column: 1 for the first cell, 2 for the second, and so on.All versions Yes
VLOOKUPVLOOKUP searches the first column of a table for a value and returns the value from a column you name, on the same row.All versions Yes
XLOOKUPXLOOKUP finds a value in one range and returns the value in the same position of another range, in any direction.2021 Yes

Logic and errors

FunctionWhat it doesExcel sinceGoogle Sheets
ANDAND checks several conditions at once and returns TRUE only when every one of them is TRUE.All versions Yes
IFIF checks a condition and returns one value when it's true and another when it's false.All versions Yes
IFERRORIFERROR returns a value when it's fine and a fallback of your choice when it's any error.All versions Yes
IFSIFS tests conditions in order and returns the result of the first one that's TRUE: a flat alternative to nested IFs.2019 Yes
ISBLANKISBLANK checks whether a cell is truly empty and returns TRUE or FALSE.All versions Yes
ISNUMBERISNUMBER returns TRUE when a value is a real number and FALSE for text, blanks, errors and logical values.All versions Yes
LAMBDALAMBDA defines your own function from named inputs and a calculation, which you call with values or save under a name.2024 / 365 Yes
LETLET gives names to parts of a formula, so each part is calculated once and the formula reads clearly.2021 Yes
ORIn Google Sheets and Excel, the OR function checks several conditions and returns TRUE when at least one of them is TRUE.All versions Yes
SWITCHSWITCH compares one value with a list of exact matches and returns the result paired with the first match, or a default.2019 Yes

Conditional totals

FunctionWhat it doesExcel sinceGoogle Sheets
AVERAGEIFSAVERAGEIFS averages the numbers in one range for the rows that meet one or more conditions.All versions Yes
COUNTBLANKCOUNTBLANK counts the empty cells in a range, including cells whose formula returns empty text.All versions Yes
COUNTIFCOUNTIF counts the cells in a range that meet one condition.All versions Yes
COUNTIFSCOUNTIFS counts the rows that meet every one of several conditions, each tested on its own range.All versions Yes
MAXIFSMAXIFS returns the largest number in a range on the rows that meet every condition.2019 Yes
SUMIFSUMIF adds the numbers in a range that meet one condition, such as every order in the Plants category.All versions Yes
SUMIFSSUMIFS adds the numbers in a range on the rows that meet every condition you give it.All versions Yes

Text

FunctionWhat it doesExcel sinceGoogle Sheets
CHARCHAR returns the character with a given code number, such as CHAR(10) for a line break or CHAR(160) for a non-breaking space.All versions Yes
CLEANCLEAN removes line breaks and other non-printing characters, and CHAR returns the character for a code number.All versions Yes
FINDFIND returns the position of one piece of text inside another, counting from 1. It's case-sensitive.All versions Yes
LEFTLEFT returns the first characters of a text and RIGHT returns the last ones; you choose how many.All versions Yes
LENLEN counts the characters in a text, including spaces, punctuation and digits.All versions Yes
MIDMID returns characters from the middle of a text: you say where to start and how many to take.All versions Yes
PROPERPROPER capitalises the first letter of every word and makes the other letters lower case.All versions Yes
RIGHTRIGHT returns the last characters of a text, such as the digits at the end of a code or the domain of an email.All versions Yes
SUBSTITUTESUBSTITUTE replaces one piece of text with another inside a cell: every occurrence, or just the one you pick.All versions Yes
TEXTTEXT turns a number or date into text in the format you choose, such as $1,234.50, 25% or Mon 2 Mar.All versions Yes
TEXTAFTERTEXTAFTER returns the part of a text that comes after a delimiter, such as everything after the first space.2024 / 365 No
TEXTJOINTEXTJOIN joins text from several cells or ranges into one, with a separator you choose, and can skip empty cells.2019 Yes
TRIMTRIM removes spaces from the start and end of text and shrinks runs of spaces between words to one.All versions Yes
VALUEVALUE converts text that looks like a number, date or time into a real number you can add up.All versions Yes

Dates

FunctionWhat it doesExcel sinceGoogle Sheets
DATEDATE builds a real date from three numbers: a year, a month and a day.All versions Yes
DATEDIFDATEDIF counts the complete years, months or days between two dates.All versions Yes
EDATEEDATE moves a date forward or back by a number of whole months, keeping the day of the month.All versions Yes
EOMONTHEOMONTH returns the last day of a month, a given number of months before or after a date.All versions Yes
ISOWEEKNUMISOWEEKNUM returns the ISO 8601 week number of a date: weeks start on Monday and week 1 holds the year's first Thursday.2013 Yes
MONTHMONTH returns the month of a date as a number from 1 (January) to 12 (December).All versions Yes
NETWORKDAYSNETWORKDAYS counts the working days (Monday to Friday) between two dates, both included, minus any holidays.All versions Yes
NETWORKDAYS.INTLNETWORKDAYS.INTL counts the working days between two dates, with the weekend days and holidays you choose.2010 Yes
WEEKDAYWEEKDAY turns a date into the number of its day of the week, numbered the way you choose.All versions Yes
WORKDAYWORKDAY returns the date a number of working days before or after a date, skipping weekends and holidays.All versions Yes
YEARFRACYEARFRAC returns the years between two dates as a decimal, such as 7.21, using a day-count rule you choose.All versions Yes

Dynamic arrays

FunctionWhat it doesExcel sinceGoogle Sheets
BYROWBYROW passes each row of a range to a LAMBDA and spills one result per row, such as a total or maximum for every row.2024 / 365 Yes
FILTERFILTER returns every row of a range that meets a condition, spilled into the cells below.2021 Yes
MAPMAP runs a LAMBDA on every value of one or more ranges and spills one result per value, in the same shape.2024 / 365 Yes
ROWSROWS returns how many rows a range, array or formula result has, whether the cells are full or empty.All versions Yes
SCANSCAN walks through a range carrying a running value and spills every step, which makes running totals one formula.2024 / 365 Yes
SEQUENCESEQUENCE returns a list or grid of numbers: 1 to 12, every second number, or numbers starting where you choose.2021 Yes
SORTSORT returns a range sorted by one of its columns, ascending or descending, as a list that spills and updates by itself.2021 Yes
SORTBYSORTBY sorts a range by the values in another range, so you can sort names by sales without moving columns.2021 No
TAKETAKE returns the first (or last) rows or columns of a range or array.2024 / 365 No
UNIQUEUNIQUE returns each distinct value of a range once, spilled into the cells below.2021 Yes

Maths

FunctionWhat it doesExcel sinceGoogle Sheets
AVERAGEAVERAGE returns the arithmetic mean of numbers: their total divided by how many numbers there are.All versions Yes
COUNTCOUNT counts the cells that hold numbers, and COUNTA counts every cell that isn't empty.All versions Yes
COUNTACOUNTA counts every cell that isn't empty: text, numbers, dates, TRUE or FALSE, errors and formulas that return empty text.All versions Yes
MAXMAX returns the largest number in a range or list, and MIN returns the smallest.All versions Yes
MINMIN is MAX's opposite: the smallest number in a range or list, such as the lowest quantity or the earliest date.All versions Yes
MODMOD returns the remainder after dividing one number by another, with the same sign as the divisor.All versions Yes
ROUNDROUND rounds a number to the decimal places you choose, or to tens, hundreds or thousands with a negative count.All versions Yes
SUMSUM adds numbers: a range, single cells or several ranges at once, skipping text and empty cells.All versions Yes
SUMPRODUCTSUMPRODUCT multiplies ranges item by item and adds up the products.All versions Yes

Statistics

FunctionWhat it doesExcel sinceGoogle Sheets
CORRELCORREL measures how closely two sets of numbers move together, from -1 (opposite) through 0 (no link) to 1 (together).All versions Yes
LARGELARGE returns the k-th largest value in a range and SMALL the k-th smallest, for top and bottom lists.All versions Yes
MEDIANMEDIAN returns the middle value of a set of numbers once they're sorted, a typical value that big outliers barely move.All versions Yes
MODE.SNGLMODE.SNGL returns the number that appears most often in a set of numbers: the most common value.2010 Yes
PERCENTILE.INCPERCENTILE.INC returns the value below which a given share of the data falls, such as the 90th percentile of scores.2010 Yes
QUARTILE.INCQUARTILE.INC returns a quartile of a data set: the minimum, the 25th percentile, the median, the 75th percentile or the maximum.2010 Yes
RANK.EQRANK.EQ returns a number's position in a list: 1 for the largest by default, or 1 for the smallest if you ask.2010 Yes
SMALLSMALL returns the k-th smallest value in a range: k = 1 is the minimum, 2 the next one up.All versions Yes
STDEV.SSTDEV.S estimates the standard deviation of a sample: how far the values typically sit from their average.2010 Yes

Finance

FunctionWhat it doesExcel sinceGoogle Sheets
FVFV returns the future value of an investment: what a deposit or regular savings grow to at a fixed interest rate.All versions Yes
IPMTIPMT returns the interest part of one loan payment and PPMT the principal part; together they make the full payment.All versions Yes
IRRIRR returns the internal rate of return of a series of cash flows: the discount rate at which their NPV is zero.All versions Yes
NPERNPER returns the number of payments needed to repay a loan or reach a savings goal with a fixed payment and rate.All versions Yes
NPVNPV returns the net present value of future cash flows: what they're worth today at a given discount rate.All versions Yes
PMTPMT returns the regular payment that repays a loan, or reaches a savings goal, at a fixed rate over a set number of payments.All versions Yes
PPMTPPMT returns the principal part of one loan payment: the amount that actually reduces what you owe.All versions Yes

Want every function on one page? The printable cheat sheet lists all of them with syntax and an example. For the differences between the two apps, see Excel vs Google Sheets formulas.