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
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| INDEX | INDEX 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 |
| MATCH | MATCH 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 |
| VLOOKUP | VLOOKUP 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 |
| XLOOKUP | XLOOKUP 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
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| AND | AND checks several conditions at once and returns TRUE only when every one of them is TRUE. | All versions | Yes |
| IF | IF checks a condition and returns one value when it's true and another when it's false. | All versions | Yes |
| IFERROR | IFERROR returns a value when it's fine and a fallback of your choice when it's any error. | All versions | Yes |
| IFS | IFS tests conditions in order and returns the result of the first one that's TRUE: a flat alternative to nested IFs. | 2019 | Yes |
| ISBLANK | ISBLANK checks whether a cell is truly empty and returns TRUE or FALSE. | All versions | Yes |
| ISNUMBER | ISNUMBER returns TRUE when a value is a real number and FALSE for text, blanks, errors and logical values. | All versions | Yes |
| LAMBDA | LAMBDA defines your own function from named inputs and a calculation, which you call with values or save under a name. | 2024 / 365 | Yes |
| LET | LET gives names to parts of a formula, so each part is calculated once and the formula reads clearly. | 2021 | Yes |
| OR | In Google Sheets and Excel, the OR function checks several conditions and returns TRUE when at least one of them is TRUE. | All versions | Yes |
| SWITCH | SWITCH 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
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| AVERAGEIFS | AVERAGEIFS averages the numbers in one range for the rows that meet one or more conditions. | All versions | Yes |
| COUNTBLANK | COUNTBLANK counts the empty cells in a range, including cells whose formula returns empty text. | All versions | Yes |
| COUNTIF | COUNTIF counts the cells in a range that meet one condition. | All versions | Yes |
| COUNTIFS | COUNTIFS counts the rows that meet every one of several conditions, each tested on its own range. | All versions | Yes |
| MAXIFS | MAXIFS returns the largest number in a range on the rows that meet every condition. | 2019 | Yes |
| SUMIF | SUMIF adds the numbers in a range that meet one condition, such as every order in the Plants category. | All versions | Yes |
| SUMIFS | SUMIFS adds the numbers in a range on the rows that meet every condition you give it. | All versions | Yes |
Text
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| CHAR | CHAR 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 |
| CLEAN | CLEAN removes line breaks and other non-printing characters, and CHAR returns the character for a code number. | All versions | Yes |
| FIND | FIND returns the position of one piece of text inside another, counting from 1. It's case-sensitive. | All versions | Yes |
| LEFT | LEFT returns the first characters of a text and RIGHT returns the last ones; you choose how many. | All versions | Yes |
| LEN | LEN counts the characters in a text, including spaces, punctuation and digits. | All versions | Yes |
| MID | MID returns characters from the middle of a text: you say where to start and how many to take. | All versions | Yes |
| PROPER | PROPER capitalises the first letter of every word and makes the other letters lower case. | All versions | Yes |
| RIGHT | RIGHT 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 |
| SUBSTITUTE | SUBSTITUTE replaces one piece of text with another inside a cell: every occurrence, or just the one you pick. | All versions | Yes |
| TEXT | TEXT 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 |
| TEXTAFTER | TEXTAFTER returns the part of a text that comes after a delimiter, such as everything after the first space. | 2024 / 365 | No |
| TEXTJOIN | TEXTJOIN joins text from several cells or ranges into one, with a separator you choose, and can skip empty cells. | 2019 | Yes |
| TRIM | TRIM removes spaces from the start and end of text and shrinks runs of spaces between words to one. | All versions | Yes |
| VALUE | VALUE converts text that looks like a number, date or time into a real number you can add up. | All versions | Yes |
Dates
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| DATE | DATE builds a real date from three numbers: a year, a month and a day. | All versions | Yes |
| DATEDIF | DATEDIF counts the complete years, months or days between two dates. | All versions | Yes |
| EDATE | EDATE moves a date forward or back by a number of whole months, keeping the day of the month. | All versions | Yes |
| EOMONTH | EOMONTH returns the last day of a month, a given number of months before or after a date. | All versions | Yes |
| ISOWEEKNUM | ISOWEEKNUM returns the ISO 8601 week number of a date: weeks start on Monday and week 1 holds the year's first Thursday. | 2013 | Yes |
| MONTH | MONTH returns the month of a date as a number from 1 (January) to 12 (December). | All versions | Yes |
| NETWORKDAYS | NETWORKDAYS counts the working days (Monday to Friday) between two dates, both included, minus any holidays. | All versions | Yes |
| NETWORKDAYS.INTL | NETWORKDAYS.INTL counts the working days between two dates, with the weekend days and holidays you choose. | 2010 | Yes |
| WEEKDAY | WEEKDAY turns a date into the number of its day of the week, numbered the way you choose. | All versions | Yes |
| WORKDAY | WORKDAY returns the date a number of working days before or after a date, skipping weekends and holidays. | All versions | Yes |
| YEARFRAC | YEARFRAC 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
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| BYROW | BYROW 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 |
| FILTER | FILTER returns every row of a range that meets a condition, spilled into the cells below. | 2021 | Yes |
| MAP | MAP runs a LAMBDA on every value of one or more ranges and spills one result per value, in the same shape. | 2024 / 365 | Yes |
| ROWS | ROWS returns how many rows a range, array or formula result has, whether the cells are full or empty. | All versions | Yes |
| SCAN | SCAN walks through a range carrying a running value and spills every step, which makes running totals one formula. | 2024 / 365 | Yes |
| SEQUENCE | SEQUENCE returns a list or grid of numbers: 1 to 12, every second number, or numbers starting where you choose. | 2021 | Yes |
| SORT | SORT returns a range sorted by one of its columns, ascending or descending, as a list that spills and updates by itself. | 2021 | Yes |
| SORTBY | SORTBY sorts a range by the values in another range, so you can sort names by sales without moving columns. | 2021 | No |
| TAKE | TAKE returns the first (or last) rows or columns of a range or array. | 2024 / 365 | No |
| UNIQUE | UNIQUE returns each distinct value of a range once, spilled into the cells below. | 2021 | Yes |
Maths
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| AVERAGE | AVERAGE returns the arithmetic mean of numbers: their total divided by how many numbers there are. | All versions | Yes |
| COUNT | COUNT counts the cells that hold numbers, and COUNTA counts every cell that isn't empty. | All versions | Yes |
| COUNTA | COUNTA counts every cell that isn't empty: text, numbers, dates, TRUE or FALSE, errors and formulas that return empty text. | All versions | Yes |
| MAX | MAX returns the largest number in a range or list, and MIN returns the smallest. | All versions | Yes |
| MIN | MIN is MAX's opposite: the smallest number in a range or list, such as the lowest quantity or the earliest date. | All versions | Yes |
| MOD | MOD returns the remainder after dividing one number by another, with the same sign as the divisor. | All versions | Yes |
| ROUND | ROUND rounds a number to the decimal places you choose, or to tens, hundreds or thousands with a negative count. | All versions | Yes |
| SUM | SUM adds numbers: a range, single cells or several ranges at once, skipping text and empty cells. | All versions | Yes |
| SUMPRODUCT | SUMPRODUCT multiplies ranges item by item and adds up the products. | All versions | Yes |
Statistics
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| CORREL | CORREL measures how closely two sets of numbers move together, from -1 (opposite) through 0 (no link) to 1 (together). | All versions | Yes |
| LARGE | LARGE returns the k-th largest value in a range and SMALL the k-th smallest, for top and bottom lists. | All versions | Yes |
| MEDIAN | MEDIAN 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.SNGL | MODE.SNGL returns the number that appears most often in a set of numbers: the most common value. | 2010 | Yes |
| PERCENTILE.INC | PERCENTILE.INC returns the value below which a given share of the data falls, such as the 90th percentile of scores. | 2010 | Yes |
| QUARTILE.INC | QUARTILE.INC returns a quartile of a data set: the minimum, the 25th percentile, the median, the 75th percentile or the maximum. | 2010 | Yes |
| RANK.EQ | RANK.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 |
| SMALL | SMALL returns the k-th smallest value in a range: k = 1 is the minimum, 2 the next one up. | All versions | Yes |
| STDEV.S | STDEV.S estimates the standard deviation of a sample: how far the values typically sit from their average. | 2010 | Yes |
Finance
| Function | What it does | Excel since | Google Sheets |
|---|---|---|---|
| FV | FV returns the future value of an investment: what a deposit or regular savings grow to at a fixed interest rate. | All versions | Yes |
| IPMT | IPMT returns the interest part of one loan payment and PPMT the principal part; together they make the full payment. | All versions | Yes |
| IRR | IRR returns the internal rate of return of a series of cash flows: the discount rate at which their NPV is zero. | All versions | Yes |
| NPER | NPER returns the number of payments needed to repay a loan or reach a savings goal with a fixed payment and rate. | All versions | Yes |
| NPV | NPV returns the net present value of future cash flows: what they're worth today at a given discount rate. | All versions | Yes |
| PMT | PMT 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 |
| PPMT | PPMT 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.