Quick answer
The Excel formulas you’ll use most at work are SUM to add, AVERAGE to average, COUNT and COUNTA to count, IF to decide, SUMIF and COUNTIF to total or count what matches a condition, XLOOKUP or VLOOKUP to look a value up, ROUND to round and TRIM to clean up text. Every formula starts with =, then a function’s name and its arguments in parentheses, such as =SUM(B2:B10).
Excel has hundreds of functions, but office work leans on a few dozen. Below they’re grouped by the job you’re doing, each with an example and, where there is one, a link to a page with the details.
How Excel formulas work
A formula is anything you type that starts with =. A function is a calculation Excel already knows, called by name inside a formula: in =SUM(B2:B10), SUM is the function and B2:B10 is its argument, the value it works on. Arguments go in parentheses, separated by commas, and an argument in square brackets in the syntax, such as [if_not_found], can be left out.
Functions can sit inside each other, and the inner one is worked out first: =ROUND(AVERAGE(B2:B10),1) averages and then rounds. To find any function, click Insert Function (the fx beside the formula bar) or press Shift+F3, and Excel walks you through its arguments; on a Mac, the same keys open the Formula Builder. You can also describe the job in plain words to the function finder, and every function with its own page is on the Excel functions index.
Add, count and average
| Function | What it does | Example |
|---|---|---|
| SUM | Adds numbers | =SUM(B2:B10) |
| AVERAGE | Averages numbers | =AVERAGE(B2:B10) |
| MIN, MAX | Smallest and largest value | =MAX(B2:B10) |
| COUNT | Counts cells that hold numbers | =COUNT(B2:B10) |
| COUNTA | Counts cells that aren’t empty | =COUNTA(A2:A10) |
| ROUND | Rounds to a number of decimals | =ROUND(B2*C2,2) |
Totals and counts with a condition
| Function | What it does | Example |
|---|---|---|
| SUMIF | Adds the rows that meet one condition | =SUMIF(A2:A9,"North",C2:C9) |
| SUMIFS | Adds the rows that meet several conditions | =SUMIFS(C2:C9,A2:A9,"North",B2:B9,"Chairs") |
| COUNTIF | Counts the cells that meet one condition | =COUNTIF(A2:A9,"North") |
| COUNTIFS | Counts the rows that meet several conditions | =COUNTIFS(A2:A9,"North",C2:C9,">1000") |
| AVERAGEIF | Averages the rows that meet one condition | =AVERAGEIF(A2:A9,"North",C2:C9) |
The same list answers different questions depending on the function:
Decide
| Function | What it does | Example |
|---|---|---|
| IF | Returns one thing if a test is TRUE, another if it’s FALSE | =IF(B2>=1000,"Bonus","No bonus") |
| AND | TRUE when every test is TRUE | =AND(B2>=1000,C2>=4) |
| OR | TRUE when any test is TRUE | =OR(B2="Sat",B2="Sun") |
| IFS | Picks the first test that’s TRUE, without nesting | =IFS(B2>=90,"A",B2>=80,"B",TRUE,"C") |
| IFERROR | Shows something else when a formula gives an error | =IFERROR(B2/C2,0) |
AND and OR go inside IF when a decision depends on more than one test:
Look up a value
| Function | What it does | Example |
|---|---|---|
| XLOOKUP | Finds a value in one range and returns the matching value from another | =XLOOKUP(E2,A2:A9,C2:C9) |
| VLOOKUP | Finds a value in the first column of a table and returns a column by number | =VLOOKUP(E2,A2:C9,3,FALSE) |
| INDEX and MATCH | MATCH finds the position, INDEX returns the value there | =INDEX(C2:C9,MATCH(E2,A2:A9,0)) |
XLOOKUP vs VLOOKUP explains which to use, and #N/A in Excel covers a lookup that finds nothing.
Work with text
| Function | What it does | Example |
|---|---|---|
| TRIM | Removes extra spaces | =TRIM(A2) |
| LEFT, RIGHT, MID | Takes characters from the start, the end or the middle | =LEFT(A2,3) |
| LEN | Counts characters | =LEN(A2) |
CONCAT or & | Joins text | =A2&" "&B2 |
| TEXTJOIN | Joins text with a separator, skipping blanks | =TEXTJOIN(", ",TRUE,A2:D2) |
| UPPER, LOWER, PROPER | Changes capitals | =PROPER(A2) |
Work with dates
| Function | What it does | Example |
|---|---|---|
| TODAY | Today’s date, updated every day | =TODAY() |
| DATE | Builds a date from a year, month and day | =DATE(2027,3,31) |
| YEAR, MONTH, DAY | Takes a date apart | =MONTH(A2) |
| EDATE, EOMONTH | Moves by whole months, or to a month’s end | =EOMONTH(A2,0) |
| NETWORKDAYS | Counts working days between two dates | =NETWORKDAYS(A2,B2) |
Subtracting one date from another gives the days between them: =B2-A2.
Which versions have which
Most of these work in every version of Excel. The newer ones need a recent version, which matters when you send a file to someone on an older one:
| Version | Functions it added |
|---|---|
| Excel 2019 | IFS, SWITCH, CONCAT, TEXTJOIN, MAXIFS, MINIFS |
| Excel 2021 | XLOOKUP, XMATCH, FILTER, SORT, SORTBY, UNIQUE, SEQUENCE, LET |
| Excel 2024 | TEXTBEFORE, TEXTAFTER, TEXTSPLIT, VSTACK, HSTACK, LAMBDA |
Microsoft 365 has all of them. A function that’s missing in someone’s version shows as #NAME? there, and Does my Excel have it? tells you which versions have a function and what to use in the others.
Practice this in ProExcel
Decide who gets a bonus with IF, one formula filled down.
ProExcel checks your answer the moment you press Enter.
The free lessons Find and enter any function, Decide with IF, Total by one condition with SUMIF and Look up a value with VLOOKUP practice the functions above. If you’re starting out, how to use Excel covers the basics first.
Frequently asked questions
What are the basic Excel formulas?
SUM, AVERAGE, MIN, MAX and COUNT cover most everyday math, IF makes a decision, and SUMIF and COUNTIF total or count the rows that meet a condition. Add a lookup such as XLOOKUP or VLOOKUP and you can build most office reports.
What's the difference between a formula and a function in Excel?
A formula is anything you type that starts with =, such as =B2*C2. A function is a named calculation used inside a formula, such as SUM in =SUM(B2:B10).
How do I find the right function in Excel?
Click Insert Function, the fx button beside the formula bar, or press Shift+F3, and search by describing what you want to do. Excel lists matching functions and helps you fill in their arguments.
Which Excel functions should I learn first?
Start with SUM, AVERAGE and IF, then SUMIF and COUNTIF, then a lookup such as XLOOKUP or VLOOKUP. Those cover most of the totals, checks and lookups in everyday reports.
Why does a function show #NAME?
The name is misspelled, or the function doesn’t exist in that version of Excel, such as XLOOKUP in Excel 2019. Check the spelling, or use a function the older version has.
Practice this with real formulas
ProExcel's free course turns each idea into a formula you type yourself, checked the moment you press Enter. Five minutes a lesson, on your phone or computer.