Lesson 54 of 92 · Free Excel Course
Excel
Excel Formulas List: 75+ Basic and Advanced Formulas With Examples
Every Excel formula you'll actually use, by category: syntax, what it does and a worked example, plus a which-formula chooser and a free cheat sheet workbook.
This is the one-page list of the Excel formulas people actually use, grouped by job: math, logic, lookups, text, dates, counting, dynamic arrays, statistics, finance and a few advanced ones. Each row gives the syntax, what it's for, a tiny example with its exact result, and a link to the lesson that teaches it properly. Every example runs on the same eight sales orders, and the free workbook has all 78 of them as live formulas on a printable Formulas cheat sheet, so you can click any one and see it work.
New to Excel? Start with what Excel is, how to use it and spreadsheet basics. Don't have it? You can get Excel free online.
How an Excel formula works
Typing an equals sign first tells Excel to calculate instead of storing what you type. After the = a formula can hold numbers (=5*3), cell references (=D2*E2), operators (+ - * / ^ &) and functions (=SUM(H2:H9)). Excel works out brackets first, then powers, then multiplication and division, then addition and subtraction, so =5+2*3 is 11 and =(5+2)*3 is 21. The formulas basics lesson explains all of this with practice, and absolute and relative references explains the $ signs you'll see in copied formulas.
Every example on this page uses this sample data. Column H is a simple formula: units times price.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Order | Rep | Region | Units | Price | Date | Product code | Sales |
| 2 | 1001 | Ana | East | 12 | $4.50 | Oct 5, 2026 | TW-104-RED | $54.00 |
| 3 | 1002 | Ben | West | 5 | $12.00 | Oct 9, 2026 | TW-215-BLUE | $60.00 |
| 4 | 1003 | Ana | West | 8 | $7.25 | Oct 14, 2026 | TW-104-BLUE | $58.00 |
| 5 | 1004 | Cara | East | 20 | $3.00 | Oct 20, 2026 | TW-330-RED | $60.00 |
| 6 | 1005 | Ben | East | 3 | $25.00 | Oct 27, 2026 | TW-412-GREEN | $75.00 |
| 7 | 1006 | Dev | North | 15 | $6.00 | Nov 2, 2026 | TW-215-RED | $90.00 |
| 8 | 1007 | Cara | West | 9 | $12.00 | Nov 10, 2026 | TW-330-GREEN | $108.00 |
| 9 | 1008 | Ana | North | 6 | $9.50 | Nov 16, 2026 | TW-104-GREEN | $57.00 |
To enter any formula from the list (Windows):
- Click the cell where you want the answer and type
=. - Start typing the function name, for example
=XL. Formula AutoComplete shows a list of matching functions. - Press Tab (or double-click the name) to insert it with its opening bracket. A tip under the cell shows the syntax; arguments in square brackets are optional.
- Type or click the cells for each argument, separating them with commas.
- Type the closing bracket and press Enter.
On a Mac the steps are the same, but you press Return. Excel for the web works the same way in the browser. Stuck on the arguments? Click fx next to the formula bar (or Formulas > Insert Function) for a form that explains each one. To copy a formula down, drag the fill handle, as shown in entering data and AutoFill. The keyboard shortcuts lesson and the printable shortcut sheet list the formula keys.
Which formula do I need?
| I want to… | Use | Lesson |
|---|---|---|
| Add a column | SUM | Add and SUM |
| Add only some rows | SUMIF or SUMIFS | COUNTIF, SUMIF, AVERAGEIF |
| Count rows that match | COUNTIF or COUNTIFS | COUNTIF, SUMIF, AVERAGEIF |
| Show one thing or another | IF, IFS or SWITCH | IF and IFS |
| Find a value in a table | XLOOKUP (VLOOKUP in Excel 2019 or older) | XLOOKUP and INDEX/MATCH |
| Pull part of a text cell | LEFT, MID, RIGHT, TEXTSPLIT | Text functions |
| Work with dates and deadlines | EDATE, WORKDAY, NETWORKDAYS | Dates and times |
| Get a filtered or sorted list that updates itself | FILTER, SORT, UNIQUE | Sort and filter |
| Work out a loan payment | PMT | Loan and finance formulas |
| Percent change or a percent of a total | =(new-old)/old, =part/total | Percentages |
| Hide an error | IFERROR or IFNA | Excel errors and fixes |
Math formulas
| Formula | Use it to… | Example on the sample data | Learn |
|---|---|---|---|
SUM(number1, [number2], ...) | Add numbers or ranges | =SUM(H2:H9) → $562.00 | Add and SUM |
AVERAGE(number1, [number2], ...) | Find the mean | =AVERAGE(D2:D9) → 9.75 | AVERAGE, MIN, MAX |
MIN(...) / MAX(...) | Smallest or largest value | =MAX(H2:H9) → $108.00 | AVERAGE, MIN, MAX |
ROUND(number, num_digits) | Round to set decimals (ROUNDUP and ROUNDDOWN always go one way) | =ROUND(AVERAGE(E2:E9),2) → 9.91 | AVERAGE, MIN, MAX |
MOD(number, divisor) | Remainder after dividing | =MOD(D2,5) → 2 | MOD |
ABS(number) | Drop the minus sign | =ABS(H2-H3) → $6.00 | ABS |
POWER(number, power) | Raise to a power, like ^ | =POWER(1.05,3) → 1.157625 | POWER |
PRODUCT(number1, [number2], ...) | Multiply everything | =PRODUCT(D2,E2) → $54.00 | PRODUCT |
SUMPRODUCT(array1, [array2], ...) | Multiply pairs, then add | =SUMPRODUCT(D2:D9,E2:E9) → $562.00 | Summation and SUMPRODUCT |
Plain subtraction, multiplication and division use operators, not functions: see subtract, multiply and divide. POWER is how growth rates are worked out in CAGR.
Logic formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
IF(logical_test, value_if_true, [value_if_false]) | One result if TRUE, another if FALSE | =IF(H7>=75,"Bonus","No bonus") → Bonus | IF and IFS |
IFS(logical_test1, value_if_true1, ...) | Several tests; the first TRUE wins (up to 127) | =IFS(D2>=15,"Large",D2>=8,"Medium",TRUE,"Small") → Medium | IF and IFS |
AND(logical1, ...) / OR(logical1, ...) | TRUE if all (AND) or any (OR) tests pass | =AND(C2="East",H2>50) → TRUE | IF and IFS |
NOT(logical) | Flip TRUE and FALSE | =NOT(C2="West") → TRUE | NOT |
IFERROR(value, value_if_error) | Replace any error with your own result | =IFERROR(VLOOKUP(1099,A2:H9,2,FALSE),"Not found") → Not found | IF and IFS |
IFNA(value, value_if_na) | Replace only #N/A | =IFNA(MATCH(1099,A2:A9,0),"Missing") → Missing | IFNA |
SWITCH(expression, value1, result1, [default or value2, result2], ...) | Match one value against a list | =SWITCH(C2,"East","E","West","W","Other") → E | SWITCH |
ISBLANK(value) | TRUE only for a truly empty cell | =ISBLANK(I2) → TRUE (column I is empty) | ISBLANK and logic checks |
| J | K | L | M | N | |
|---|---|---|---|---|---|
| 1 | Order | Units | Sales | Size | Bonus? |
| 2 | 1001 | 12 | $54.00 | Medium | No bonus |
| 3 | 1004 | 20 | $60.00 | Large | No bonus |
| 4 | 1005 | 3 | $75.00 | Small | Bonus |
| 5 | 1006 | 15 | $90.00 | Large | Bonus |
Lookup formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]) | Find a value, return its match from another column | =XLOOKUP(1005,A2:A9,B2:B9,"Not found") → Ben | XLOOKUP and INDEX/MATCH |
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]) | Look down the first column, return column n | =VLOOKUP(1003,A2:H9,8,FALSE) → $58.00 | VLOOKUP and HLOOKUP |
INDEX(array, row_num, [column_num]) with MATCH(lookup_value, lookup_array, [match_type]) | A lookup that works in any direction, in any version | =INDEX(C2:C9,MATCH(1007,A2:A9,0)) → West | XLOOKUP and INDEX/MATCH |
INDIRECT(ref_text, [a1]) | Turn text into a reference | =INDIRECT("B"&5) → Cara | INDIRECT |
ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text]) | Build a cell address as text | =ADDRESS(5,2,4) → B5 | ADDRESS |
XLOOKUP's fourth argument replaces the IFERROR wrapper VLOOKUP needs. INDIRECT is the trick behind dependent drop-down lists.
| J | K | |
|---|---|---|
| 1 | Find order | 1005 |
| 2 | Rep | Ben |
| 3 | Region | East |
| 4 | Sales | $75.00 |
Text formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
LEFT(text, [num_chars]) / RIGHT(...) | First or last characters | =LEFT(G2,2) → TW | Text functions |
MID(text, start_num, num_chars) | Characters from the middle | =MID(G2,4,3) → 104 | Text functions |
LEN(text) | Count characters | =LEN(G2) → 10 | LEN |
FIND(find_text, within_text, [start_num]) | Position of text, case-sensitive | =FIND("-",G2) → 3 | FIND |
SEARCH(find_text, within_text, [start_num]) | Position of text, any case, wildcards allowed | =SEARCH("red",G2) → 8 | SEARCH |
TRIM(text) | Remove extra spaces | =TRIM(" Ana Lopez ") → Ana Lopez | Text functions |
CLEAN(text) | Remove non-printing characters | =CLEAN(CHAR(9)&"Total") → Total | CLEAN |
EXACT(text1, text2) | Case-sensitive comparison | =EXACT("TW-104","tw-104") → FALSE | EXACT |
UPPER(text), LOWER(text), PROPER(text) | Change capitals | =PROPER("ana lopez") → Ana Lopez | Text functions |
SUBSTITUTE(text, old_text, new_text, [instance_num]) | Swap text | =SUBSTITUTE(G2,"-"," ") → TW 104 RED | Text functions |
TEXT(value, format_text) | Format a number or date as text | =TEXT(F2,"mmm d, yyyy") → Oct 5, 2026 | Text functions |
VALUE(text) | Turn number-like text into a number | =VALUE(MID(G2,4,3)) → 104 | VALUE |
TEXTJOIN(delimiter, ignore_empty, text1, ...) | Join a range with a separator | =TEXTJOIN(", ",TRUE,B2:B4) → Ana, Ben, Ana | Text functions |
TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with]) | Split text across cells | =TEXTSPLIT(G2,"-") → TW, 104, RED in three cells | Text functions |
To join two cells, the & operator is all you need: =B2&" - "&C2 gives Ana - East. VALUE is the usual fix for numbers that arrive as text after an import. Searching for a FORMAT function? In a worksheet formula TEXT does that job; see Excel FORMAT function.
Date formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
TODAY() | Today's date, updated each day | =TODAY() | TODAY |
NOW() | Date and time right now | =NOW() | NOW |
DATE(year, month, day) | Build a date from numbers | =DATE(2026,11,22) → Nov 22, 2026 | Dates and times |
EDATE(start_date, months) | Same day, n months later | =EDATE(F2,3) → Jan 5, 2027 | Dates and times |
EOMONTH(start_date, months) | Last day of a month | =EOMONTH(F2,0) → Oct 31, 2026 | Dates and times |
WORKDAY(start_date, days, [holidays]) | Date n working days later | =WORKDAY(F2,10) → Oct 19, 2026 | WORKDAY |
NETWORKDAYS(start_date, end_date, [holidays]) | Working days between two dates | =NETWORKDAYS(F2,F9) → 31 | NETWORKDAYS |
DATEDIF(start_date, end_date, unit) | Days ("d"), months ("m") or years ("y") between dates | =DATEDIF(F2,F9,"d") → 42 | Dates and times |
DATEDIF exists to support old Lotus 1-2-3 workbooks, and Microsoft warns that its "MD" unit can give wrong results, so stick to "d", "m" and "y". Date formulas drive work schedules and Gantt charts.
Counting and conditional formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
COUNT(value1, ...) | Count cells holding numbers | =COUNT(A1:A9) → 8 | COUNT and COUNTA |
COUNTA(value1, ...) | Count cells that aren't empty | =COUNTA(A1:A9) → 9 | COUNT and COUNTA |
COUNTBLANK(range) | Count empty cells | =COUNTBLANK(I2:I9) → 8 | ISBLANK and logic checks |
COUNTIF(range, criteria) | Count cells that meet one condition | =COUNTIF(C2:C9,"East") → 3 | COUNTIF, SUMIF, AVERAGEIF |
COUNTIFS(criteria_range1, criteria1, ...) | Count with several conditions | =COUNTIFS(C2:C9,"West",D2:D9,">5") → 2 | COUNTIF, SUMIF, AVERAGEIF |
SUMIF(range, criteria, [sum_range]) | Add values that meet one condition | =SUMIF(B2:B9,"Ana",H2:H9) → $169.00 | COUNTIF, SUMIF, AVERAGEIF |
SUMIFS(sum_range, criteria_range1, criteria1, ...) | Add with several conditions | =SUMIFS(H2:H9,C2:C9,"East",D2:D9,">=10") → $114.00 | COUNTIF, SUMIF, AVERAGEIF |
AVERAGEIF(range, criteria, [average_range]) | Average values that meet a condition | =AVERAGEIF(C2:C9,"West",H2:H9) → $75.33 | COUNTIF, SUMIF, AVERAGEIF |
AVERAGEIFS(average_range, criteria_range1, criteria1, ...) | Average with several conditions | =AVERAGEIFS(H2:H9,B2:B9,"Ana",D2:D9,">6") → $56.00 | COUNTIF, SUMIF, AVERAGEIF |
COUNT counts 8 because the header "Order" is text; COUNTA counts it too, so it says 9. Watch the argument order: SUMIF puts the range to add last, SUMIFS puts it first.
| J | K | L | |
|---|---|---|---|
| 1 | Region | Sales | Orders |
| 2 | East | $189.00 | 3 |
| 3 | West | $226.00 | 3 |
| 4 | North | $147.00 | 2 |
| 5 | Total | $562.00 | 8 |
Dynamic array formulas
These return several results that spill into the cells below or beside them. They need Microsoft 365, Excel 2021 or later, or Excel for the web.
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
UNIQUE(array, [by_col], [exactly_once]) | List each value once | =UNIQUE(B2:B9) → Ana, Ben, Cara, Dev | UNIQUE |
FILTER(array, include, [if_empty]) | Rows that meet a condition | =FILTER(A2:A9,C2:C9="West") → 1002, 1003, 1007 | Sort and filter |
SORT(array, [sort_index], [sort_order], [by_col]) | A sorted copy | =SORT(UNIQUE(C2:C9)) → East, North, West | Sort and filter |
SEQUENCE(rows, [columns], [start], [step]) | A run of numbers | =SEQUENCE(1,5,10,10) → 10 to 50 across five cells | SEQUENCE |
| J | K | L | M | N | O | P | Q | |
|---|---|---|---|---|---|---|---|---|
| 2 | 1002 | Ben | West | 5 | $12.00 | Oct 9, 2026 | TW-215-BLUE | $60.00 |
| 3 | 1003 | Ana | West | 8 | $7.25 | Oct 14, 2026 | TW-104-BLUE | $58.00 |
| 4 | 1007 | Cara | West | 9 | $12.00 | Nov 10, 2026 | TW-330-GREEN | $108.00 |
UNIQUE also gives a quick list for finding duplicates, and SEQUENCE teams up with RANDARRAY in random numbers. Coming from Google Sheets? Excel has no QUERY function: the QUERY page shows the FILTER and Power Query alternatives.
Statistics formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
MEDIAN(number1, ...) | The middle value | =MEDIAN(H2:H9) → $60.00 | Statistics |
MODE.SNGL(number1, ...) | The most common value | =MODE.SNGL(H2:H9) → $60.00 | Statistics |
STDEV.S(number1, ...) | Spread of a sample | =STDEV.S(D2:D9) → 5.65 | Statistics |
RANK.EQ(number, ref, [order]) | Position in a list (1 = largest) | =RANK.EQ(H7,H2:H9) → 2 | RANK |
LARGE(array, k) | The k-th largest value | =LARGE(H2:H9,2) → $90.00 | LARGE |
SMALL(array, k) | The k-th smallest value | =SMALL(H2:H9,1) → $54.00 | SMALL |
CORREL(array1, array2) | How closely two columns move together (−1 to 1) | =CORREL(D2:D9,H2:H9) → 0.03 | CORREL |
FREQUENCY(data_array, bins_array) | Count values in bins (one more result than bins) | =FREQUENCY(H2:H9,{60,75,90}) → 5, 1, 1, 1 | FREQUENCY |
LINEST(known_y's, [known_x's], [const], [stats]) | Slope and intercept of a best-fit line | =LINEST(H2:H9,D2:D9) → 0.10, 69.31 | LINEST |
TREND(known_y's, [known_x's], [new_x's], [const]) | Predict y for a new x | =TREND(H2:H9,D2:D9,25) → $71.72 | TREND |
A correlation of 0.03 means order size tells you almost nothing about sales here, because prices vary so much. LINEST and TREND also power the forecasts in what-if analysis.
Finance formulas
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
PMT(rate, nper, pv, [fv], [type]) | Loan payment per period | =PMT(6%/12,36,-15000) → $456.33 | Loan and finance formulas |
RATE(nper, pmt, pv, [fv], [type], [guess]) | Interest rate per period | =RATE(48,-350,14000)*12 → 9.24% a year | RATE |
FV(rate, nper, pmt, [pv], [type]) | What savings grow to | =FV(5%/12,120,-200) → $31,056.46 | Loan and finance formulas |
PV(rate, nper, pmt, [fv], [type]) | Today's value of future payments | =PV(5%/12,60,-300) → $15,897.21 | Loan and finance formulas |
NPER(rate, pmt, pv, [fv], [type]) | Number of payments to clear a loan | =NPER(6%/12,-500,20000) → 44.7 | Loan and finance formulas |
SLN(cost, salvage, life) | Straight-line depreciation per period | =SLN(12000,2000,5) → $2,000.00 | SLN |
ACCRINT(issue, first_interest, settlement, rate, par, frequency, [basis], [calc_method]) | Interest a bond has built up | =ACCRINT(DATE(2026,1,1),DATE(2026,7,1),DATE(2026,4,1),5%,1000,2,0) → $12.50 | ACCRINT |
Money you pay out is negative, which is why the examples enter the loan or payment with a minus sign. Check a payment with the loan calculator. These formulas feed a budget, financial statements and bookkeeping.
Advanced: LET and LAMBDA
| Formula | Use it to… | Example | Learn |
|---|---|---|---|
LET(name1, name_value1, calculation_or_name2, ...) | Name a value once, reuse it in the formula | =LET(sale,D2*E2,IF(sale>50,sale*0.9,sale)) → $48.60 | LET |
LAMBDA([parameter1, ...], calculation) | Build your own function | =LAMBDA(units,price,units*price)(D3,E3) → $60.00 | LAMBDA |
LET works out D2*E2 once and calls it sale, so a long formula gets shorter and faster (Microsoft 365, Excel 2021 and 2024). LAMBDA goes further: test it in a cell as above, then save it in Formulas > Name Manager > New (on a Mac, Formulas > Define Name) under a name such as LINETOTAL, with =LAMBDA(units,price,units*price) (without the test values on the end) in Refers to. After that =LINETOTAL(D3,E3) works anywhere in the workbook (Microsoft 365 and Excel 2024). For anything formulas can't do, there are macros and VBA, and Copilot can draft a formula from a plain-English request.
Put formulas to work
Formulas rarely work alone. Format the results as money or dates, add rows and columns without breaking them, and use a table so formulas fill down by themselves. Formulas also drive conditional formatting, heat maps, checkboxes, charts and pivot tables. When a sheet is done, lock the formulas and print it; spread work over several sheets with references like =Data!H2.
Projects that use this list: a dashboard, an inventory tracker, a database tracker and diagrams. Ready to prove it? See Excel skills tests, and pick up more shortcuts in Excel tips.
Try it yourself
Download the practice workbook. It has four sheets:
- Practice: the eight orders plus ten yellow cells. Write SUM, SUMIF, COUNTIFS, XLOOKUP, IF, a RIGHT + LEN + FIND combination, NETWORKDAYS, AVERAGEIF, LET and UNIQUE. Column C shows what you should see.
- Answers: the same tasks with working formulas.
- Formulas cheat sheet: all 78 formulas from this page with syntax, a one-line use and a live example. Print it, or keep it open beside your own work.
- Data: the sample data the cheat sheet reads. Change a price and watch every example update.
Common mistakes
- Typing text without quotes.
=IF(H2>50,Bonus,"No")gives #NAME?. Text inside a formula needs straight double quotes:"Bonus". - Leaving out the brackets on TODAY and NOW.
=TODAYis a #NAME? error; it must be=TODAY(). - Swapping SUMIF and SUMIFS arguments. SUMIFS starts with the range to add; copy the SUMIF order and you'll add the wrong column.
- Copying a formula without $ signs. The ranges slide down with each row. Lock them:
$C$2:$C$9. - Using a function your Excel doesn't have. #NAME? on XLOOKUP, FILTER or LET in Excel 2016 or 2019 means you need INDEX/MATCH or a newer Excel.
- Typing numbers into formulas.
=H2*0.08hides the tax rate. Put 8% in its own cell and point to it, so one change updates everything. - Blocking a spill. Something typed in the way of a dynamic array gives #SPILL!. Clear those cells. Every error and its fix is in Excel errors and fixes, and tracing precedents shows which cells a formula reads.
What's next
You now have the whole Excel formula toolkit on one page, sorted by job, with an example you can check for each. The previous lesson, summation and SUMPRODUCT, goes deeper on adding with conditions. Next up is Excel errors and fixes: what #N/A, #VALUE!, #REF! and the rest mean and how to clear each one. Or go back to the full Excel course.
Frequently asked questions
What are the basic Excel formulas everyone should know?
Start with ten: SUM, AVERAGE, MIN/MAX, COUNT/COUNTA, IF, COUNTIF/SUMIF, XLOOKUP (or VLOOKUP in older Excel), ROUND, TODAY and IFERROR. They cover adding, averaging, counting, decisions, lookups and tidy results. Learn them in order with add and SUM, IF and XLOOKUP.
What is the difference between a formula and a function in Excel?
The formula is the whole entry in the cell, from the = sign on, such as =D2*E2 or =SUM(H2:H9)*8%. A function is one of Excel's built-in tools with a name and brackets, like SUM, IF or XLOOKUP. You can write formulas with only cell references and operators (=D2*E2 uses no function at all), but to use a function you always type it as part of a formula.
Why does my formula give #NAME? when the example works for someone else?
Usually your Excel is older than the function. XLOOKUP, FILTER, UNIQUE, SORT, SEQUENCE and LET need Microsoft 365, Excel 2021 or later, or Excel for the web. TEXTSPLIT and LAMBDA need Microsoft 365 or Excel 2024. IFS, SWITCH and TEXTJOIN need Excel 2019 or later. A typo in the function name gives #NAME? too.
What does the $ sign mean in an Excel formula?
It locks part of a cell reference so it doesn't move when you copy the formula. $A$1 locks the column and row, $A1 only the column, A$1 only the row. Press F4 while the cursor is in a reference to cycle through them. See absolute and relative references.
How do I see all the formulas in a sheet at once?
Press Ctrl and the grave accent key (the key under Esc, left of 1), or click Formulas > Show Formulas. Do it again to go back to results. Excel for the web has the same Show Formulas button on the Formulas tab.
In what order does Excel calculate a formula?
Brackets first, then negation, percent, powers (^), multiplication and division, addition and subtraction, joining text with &, and comparisons (=, >, and so on) last. Operators at the same level go left to right, so =5+2*3 is 11 but =(5+2)*3 is 21. The formulas basics lesson walks through it.