Excel formulas cheat sheet
The 40 Excel formulas people use most at work, from basic totals to lookups and dynamic arrays. Every example runs on the small table below and shows its result, and each row links to a lesson where you practice it with your answer checked.
Every example uses this table in cells A1:H9. Revenue is a formula, =F2*G2 and so on.
The sample table
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Region | Rep | Product | Units | Price | Revenue |
| 2 | 1001 | 3/2/2026 | West | Ana Ruiz | Kettle | 4 | 35 | 140 |
| 3 | 1002 | 3/3/2026 | East | Ben Cole | Mug | 12 | 8 | 96 |
| 4 | 1003 | 3/5/2026 | West | Ana Ruiz | Teapot | 2 | 42 | 84 |
| 5 | 1004 | 3/9/2026 | North | Chloe Park | Kettle | 3 | 35 | 105 |
| 6 | 1005 | 3/12/2026 | East | Ben Cole | Kettle | 5 | 35 | 175 |
| 7 | 1006 | 3/16/2026 | West | Dev Shah | Mug | 20 | 8 | 160 |
| 8 | 1007 | 3/20/2026 | North | Chloe Park | Teapot | 1 | 42 | 42 |
| 9 | 1008 | 3/27/2026 | East | Dev Shah | Mug | 6 | 8 | 48 |
Totals and counts
| Name | What it does | Example | Practice |
|---|---|---|---|
| SUM | Adds up the numbers in a range. Text and empty cells are skipped. | Result: 850 | SUM and AutoSum |
| AVERAGE | The mean of the numbers in a range. | Result: 6.625 | AVERAGE, MIN and MAX |
| MAX | The largest number in a range. MIN gives the smallest. | Result: 175 | AVERAGE, MIN and MAX |
| COUNT | Counts the cells that hold numbers. | Result: 8 | COUNT, COUNTA and COUNTBLANK |
| COUNTA | Counts the cells that are not empty, text included. | Result: 8 | COUNT, COUNTA and COUNTBLANK |
| ROUND | Rounds a number to the digits you choose. ROUNDUP and ROUNDDOWN always round one way. | Result: 6.6 | ROUND, ROUNDUP and ROUNDDOWN |
Logic and errors
| Name | What it does | Example | Practice |
|---|---|---|---|
| IF | Returns one value when a test is true and another when it is false. | Result: "Large" | IF: choose between two results |
| AND | TRUE only when every test is true. OR is TRUE when any one is. | Result: "Yes" | AND and OR inside IF |
| IFS | Checks tests in order and returns the value of the first one that is true. End with TRUE for a default. | Result: "Medium" | IFS and nested IF |
| IFERROR | Shows your own value instead of an error such as #DIV/0! or #N/A. | Result: 0 | IFERROR, IFNA and fixing lookups that fail |
Lookups
| Name | What it does | Example | Practice |
|---|---|---|---|
| VLOOKUP | Finds a value in the first column of a table and returns the value from another column of the same row. Use FALSE for an exact match. | Result: "Ben Cole" | VLOOKUP: exact match |
| XLOOKUP | Looks up a value in one range and returns the matching item from another. It matches exactly by default, and the result column can sit on either side. | Result: 42 | XLOOKUP |
| INDEX + MATCH | MATCH finds the position of a value and INDEX returns the item at that position. Together they look up in any direction. | Result: "Dev Shah" | INDEX and MATCH |
Totals with conditions
| Name | What it does | Example | Practice |
|---|---|---|---|
| COUNTIF | Counts the cells that meet one condition. | Result: 3 | COUNTIF: count what matches |
| SUMIF | Adds the numbers whose row meets one condition. | Result: 384 | SUMIF: add up what matches |
| SUMIFS | Adds the numbers that meet several conditions at once. The range to add comes first. | Result: 144 | SUMIFS and COUNTIFS: several conditions |
| COUNTIFS | Counts the rows that meet several conditions. Put comparisons in quotes, like ">3". | Result: 2 | SUMIFS and COUNTIFS: several conditions |
| MAXIFS | The largest number among the rows that meet your conditions. MINIFS gives the smallest. | Result: 160 | AVERAGEIF(S), MAXIFS and MINIFS |
| SUMPRODUCT | Multiplies ranges item by item and adds the results, such as units times price. | Result: 850 | SUMPRODUCT |
Text
| Name | What it does | Example | Practice |
|---|---|---|---|
| LEFT | The first characters of a text. RIGHT takes them from the end. | Result: "Ana" | LEN, LEFT and RIGHT |
| MID | A number of characters from the middle of a text, starting at the position you give. | Result: "Park" | MID |
| LEN | The number of characters in a text, spaces included. | Result: 10 | LEN, LEFT and RIGHT |
| FIND | The position of one text inside another. It is case-sensitive; SEARCH is not. | Result: 6 | FIND and SEARCH |
| TRIM | Removes the spaces at both ends and leaves one space between words. | Result: "Ana Ruiz" | TRIM, CLEAN, UPPER, LOWER and PROPER |
| UPPER | Turns text into capitals. LOWER gives lower case and PROPER capitalizes each word. | Result: "WEST" | TRIM, CLEAN, UPPER, LOWER and PROPER |
| & | Joins text and cell values into one text. CONCAT does the same as a function. | Result: "Ana Ruiz (West)" | Joining text: &, CONCAT and TEXTJOIN |
| TEXTJOIN | Joins a range of text with a separator you choose, and can skip empty cells. | Result: "West, East, West" | Joining text: &, CONCAT and TEXTJOIN |
| SUBSTITUTE | Replaces every copy of one text with another. | Result: "Dev S." | SUBSTITUTE and REPLACE |
Dates
| Name | What it does | Example | Practice |
|---|---|---|---|
| DATE | Builds a date from a year, a month and a day. | Result: Mar 31, 2026 | Dates as numbers: DATE, YEAR, MONTH and DAY |
| MONTH | The month of a date, from 1 to 12. YEAR and DAY work the same way. | Result: 3 | Dates as numbers: DATE, YEAR, MONTH and DAY |
| TODAY | Today's date. It updates every time the workbook recalculates; NOW adds the time. | Result: today's date | TODAY and NOW |
| EOMONTH | The last day of the month, a given number of months before or after a date. 0 means the same month. | Result: Mar 31, 2026 | EOMONTH and EDATE |
| DATEDIF | The time between two dates in days ("d"), whole months ("m") or whole years ("y"). | Result: 25 | DAYS and DATEDIF |
| NETWORKDAYS | Counts the working days between two dates, Monday to Friday, both ends included. You can list holidays to skip. | Result: 20 | NETWORKDAYS and WORKDAY |
Dynamic arrays
| Name | What it does | Example | Practice |
|---|---|---|---|
| UNIQUE | Lists each distinct value once. The result spills into the cells below. | Result: West · East · North | UNIQUE |
| FILTER | Returns the rows that meet a condition and updates when the data changes. | Result: 1,005 · 1,006 | FILTER |
| SORT | Sorts a range with a formula. -1 puts the largest first. | Result: 175 · 160 · 140 · 105 · 96 · 84 · 48 · 42 | SORT and SORTBY |
Ranking and loans
| Name | What it does | Example | Practice |
|---|---|---|---|
| RANK.EQ | The rank of a number in a list, largest first by default. Equal numbers share a rank. | Result: 1 | LARGE, SMALL and RANK |
| LARGE | The k-th largest number: 2 gives the second largest. SMALL counts from the smallest. | Result: 160 | LARGE, SMALL and RANK |
| PMT | The payment per period on a loan at a fixed rate. Divide a yearly rate by 12 for monthly payments. The result is negative because it is money you pay out. | Result: -299.71 | PMT: loan payments |
Checked against
Every row was last checked on Nov 20, 2026.
Questions
Can I download the Excel formulas cheat sheet as a PDF?
Yes. Press Print or save as PDF and choose "Save as PDF" in your browser's print window. The printed layout drops the site header and keeps the formulas, examples and results on compact pages.
Do these formulas work in older versions of Excel?
Most of them do. IFS, MAXIFS and TEXTJOIN need Excel 2019 or later, and XLOOKUP, UNIQUE, FILTER and SORT need Excel 2021 or Microsoft 365. In older versions, use VLOOKUP or INDEX and MATCH instead of XLOOKUP.
How were the results checked?
Every formula on this page was entered into a spreadsheet engine with the sample table above, and the result shown is the one it returned.