Skip to content

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.

H2=D2*E2
ABCDEFGH
1OrderRepRegionUnitsPriceDateProduct codeSales
21001AnaEast12$4.50Oct 5, 2026TW-104-RED$54.00
31002BenWest5$12.00Oct 9, 2026TW-215-BLUE$60.00
41003AnaWest8$7.25Oct 14, 2026TW-104-BLUE$58.00
51004CaraEast20$3.00Oct 20, 2026TW-330-RED$60.00
61005BenEast3$25.00Oct 27, 2026TW-412-GREEN$75.00
71006DevNorth15$6.00Nov 2, 2026TW-215-RED$90.00
81007CaraWest9$12.00Nov 10, 2026TW-330-GREEN$108.00
91008AnaNorth6$9.50Nov 16, 2026TW-104-GREEN$57.00
The sample data in A1:H9. H2 multiplies units by price; copy it down and H9 becomes =D9*E9. Total sales are $562.00.

To enter any formula from the list (Windows):

  1. Click the cell where you want the answer and type =.
  2. Start typing the function name, for example =XL. Formula AutoComplete shows a list of matching functions.
  3. 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.
  4. Type or click the cells for each argument, separating them with commas.
  5. 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…UseLesson
Add a columnSUMAdd and SUM
Add only some rowsSUMIF or SUMIFSCOUNTIF, SUMIF, AVERAGEIF
Count rows that matchCOUNTIF or COUNTIFSCOUNTIF, SUMIF, AVERAGEIF
Show one thing or anotherIF, IFS or SWITCHIF and IFS
Find a value in a tableXLOOKUP (VLOOKUP in Excel 2019 or older)XLOOKUP and INDEX/MATCH
Pull part of a text cellLEFT, MID, RIGHT, TEXTSPLITText functions
Work with dates and deadlinesEDATE, WORKDAY, NETWORKDAYSDates and times
Get a filtered or sorted list that updates itselfFILTER, SORT, UNIQUESort and filter
Work out a loan paymentPMTLoan and finance formulas
Percent change or a percent of a total=(new-old)/old, =part/totalPercentages
Hide an errorIFERROR or IFNAExcel errors and fixes

Math formulas

FormulaUse it to…Example on the sample dataLearn
SUM(number1, [number2], ...)Add numbers or ranges=SUM(H2:H9) → $562.00Add and SUM
AVERAGE(number1, [number2], ...)Find the mean=AVERAGE(D2:D9) → 9.75AVERAGE, MIN, MAX
MIN(...) / MAX(...)Smallest or largest value=MAX(H2:H9) → $108.00AVERAGE, MIN, MAX
ROUND(number, num_digits)Round to set decimals (ROUNDUP and ROUNDDOWN always go one way)=ROUND(AVERAGE(E2:E9),2) → 9.91AVERAGE, MIN, MAX
MOD(number, divisor)Remainder after dividing=MOD(D2,5) → 2MOD
ABS(number)Drop the minus sign=ABS(H2-H3) → $6.00ABS
POWER(number, power)Raise to a power, like ^=POWER(1.05,3) → 1.157625POWER
PRODUCT(number1, [number2], ...)Multiply everything=PRODUCT(D2,E2) → $54.00PRODUCT
SUMPRODUCT(array1, [array2], ...)Multiply pairs, then add=SUMPRODUCT(D2:D9,E2:E9) → $562.00Summation 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

FormulaUse it to…ExampleLearn
IF(logical_test, value_if_true, [value_if_false])One result if TRUE, another if FALSE=IF(H7>=75,"Bonus","No bonus") → BonusIF 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") → MediumIF and IFS
AND(logical1, ...) / OR(logical1, ...)TRUE if all (AND) or any (OR) tests pass=AND(C2="East",H2>50) → TRUEIF and IFS
NOT(logical)Flip TRUE and FALSE=NOT(C2="West") → TRUENOT
IFERROR(value, value_if_error)Replace any error with your own result=IFERROR(VLOOKUP(1099,A2:H9,2,FALSE),"Not found") → Not foundIF and IFS
IFNA(value, value_if_na)Replace only #N/A=IFNA(MATCH(1099,A2:A9,0),"Missing") → MissingIFNA
SWITCH(expression, value1, result1, [default or value2, result2], ...)Match one value against a list=SWITCH(C2,"East","E","West","W","Other") → ESWITCH
ISBLANK(value)TRUE only for a truly empty cell=ISBLANK(I2) → TRUE (column I is empty)ISBLANK and logic checks
M2=IFS(K2>=15,"Large",K2>=8,"Medium",TRUE,"Small")
JKLMN
1OrderUnitsSalesSizeBonus?
2100112$54.00MediumNo bonus
3100420$60.00LargeNo bonus
410053$75.00SmallBonus
5100615$90.00LargeBonus
IFS checks the tests in order: 12 units fails "15 or more" but passes "8 or more", so it is Medium. TRUE at the end catches everything else. N2 is =IF(L2>=75,"Bonus","No bonus").

Lookup formulas

FormulaUse it to…ExampleLearn
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") → BenXLOOKUP 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.00VLOOKUP 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)) → WestXLOOKUP and INDEX/MATCH
INDIRECT(ref_text, [a1])Turn text into a reference=INDIRECT("B"&5) → CaraINDIRECT
ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])Build a cell address as text=ADDRESS(5,2,4) → B5ADDRESS

XLOOKUP's fourth argument replaces the IFERROR wrapper VLOOKUP needs. INDIRECT is the trick behind dependent drop-down lists.

K2=XLOOKUP(K1,A2:A9,B2:B9,"Not found")
JK
1Find order1005
2RepBen
3RegionEast
4Sales$75.00
Type an order number in K1 and the three XLOOKUPs fill in. K3 returns C2:C9 and K4 returns H2:H9. Type 1099 and they show Not found.

Text formulas

FormulaUse it to…ExampleLearn
LEFT(text, [num_chars]) / RIGHT(...)First or last characters=LEFT(G2,2) → TWText functions
MID(text, start_num, num_chars)Characters from the middle=MID(G2,4,3) → 104Text functions
LEN(text)Count characters=LEN(G2) → 10LEN
FIND(find_text, within_text, [start_num])Position of text, case-sensitive=FIND("-",G2) → 3FIND
SEARCH(find_text, within_text, [start_num])Position of text, any case, wildcards allowed=SEARCH("red",G2) → 8SEARCH
TRIM(text)Remove extra spaces=TRIM(" Ana Lopez ") → Ana LopezText functions
CLEAN(text)Remove non-printing characters=CLEAN(CHAR(9)&"Total") → TotalCLEAN
EXACT(text1, text2)Case-sensitive comparison=EXACT("TW-104","tw-104") → FALSEEXACT
UPPER(text), LOWER(text), PROPER(text)Change capitals=PROPER("ana lopez") → Ana LopezText functions
SUBSTITUTE(text, old_text, new_text, [instance_num])Swap text=SUBSTITUTE(G2,"-"," ") → TW 104 REDText functions
TEXT(value, format_text)Format a number or date as text=TEXT(F2,"mmm d, yyyy") → Oct 5, 2026Text functions
VALUE(text)Turn number-like text into a number=VALUE(MID(G2,4,3)) → 104VALUE
TEXTJOIN(delimiter, ignore_empty, text1, ...)Join a range with a separator=TEXTJOIN(", ",TRUE,B2:B4) → Ana, Ben, AnaText functions
TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])Split text across cells=TEXTSPLIT(G2,"-") → TW, 104, RED in three cellsText 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

FormulaUse it to…ExampleLearn
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, 2026Dates and times
EDATE(start_date, months)Same day, n months later=EDATE(F2,3) → Jan 5, 2027Dates and times
EOMONTH(start_date, months)Last day of a month=EOMONTH(F2,0) → Oct 31, 2026Dates and times
WORKDAY(start_date, days, [holidays])Date n working days later=WORKDAY(F2,10) → Oct 19, 2026WORKDAY
NETWORKDAYS(start_date, end_date, [holidays])Working days between two dates=NETWORKDAYS(F2,F9) → 31NETWORKDAYS
DATEDIF(start_date, end_date, unit)Days ("d"), months ("m") or years ("y") between dates=DATEDIF(F2,F9,"d") → 42Dates 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

FormulaUse it to…ExampleLearn
COUNT(value1, ...)Count cells holding numbers=COUNT(A1:A9) → 8COUNT and COUNTA
COUNTA(value1, ...)Count cells that aren't empty=COUNTA(A1:A9) → 9COUNT and COUNTA
COUNTBLANK(range)Count empty cells=COUNTBLANK(I2:I9) → 8ISBLANK and logic checks
COUNTIF(range, criteria)Count cells that meet one condition=COUNTIF(C2:C9,"East") → 3COUNTIF, SUMIF, AVERAGEIF
COUNTIFS(criteria_range1, criteria1, ...)Count with several conditions=COUNTIFS(C2:C9,"West",D2:D9,">5") → 2COUNTIF, SUMIF, AVERAGEIF
SUMIF(range, criteria, [sum_range])Add values that meet one condition=SUMIF(B2:B9,"Ana",H2:H9) → $169.00COUNTIF, SUMIF, AVERAGEIF
SUMIFS(sum_range, criteria_range1, criteria1, ...)Add with several conditions=SUMIFS(H2:H9,C2:C9,"East",D2:D9,">=10") → $114.00COUNTIF, SUMIF, AVERAGEIF
AVERAGEIF(range, criteria, [average_range])Average values that meet a condition=AVERAGEIF(C2:C9,"West",H2:H9) → $75.33COUNTIF, SUMIF, AVERAGEIF
AVERAGEIFS(average_range, criteria_range1, criteria1, ...)Average with several conditions=AVERAGEIFS(H2:H9,B2:B9,"Ana",D2:D9,">6") → $56.00COUNTIF, 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.

K2=SUMIF($C$2:$C$9,J2,$H$2:$H$9)
JKL
1RegionSalesOrders
2East$189.003
3West$226.003
4North$147.002
5Total$562.008
A region summary in two formulas: K2 is SUMIF and L2 is =COUNTIF($C$2:$C$9,J2), both copied down. The $ signs keep the data ranges fixed. The totals match SUM(H2:H9).

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.

FormulaUse it to…ExampleLearn
UNIQUE(array, [by_col], [exactly_once])List each value once=UNIQUE(B2:B9) → Ana, Ben, Cara, DevUNIQUE
FILTER(array, include, [if_empty])Rows that meet a condition=FILTER(A2:A9,C2:C9="West") → 1002, 1003, 1007Sort and filter
SORT(array, [sort_index], [sort_order], [by_col])A sorted copy=SORT(UNIQUE(C2:C9)) → East, North, WestSort and filter
SEQUENCE(rows, [columns], [start], [step])A run of numbers=SEQUENCE(1,5,10,10) → 10 to 50 across five cellsSEQUENCE
J2=FILTER(A2:H9,C2:C9="West")
JKLMNOPQ
21002BenWest5$12.00Oct 9, 2026TW-215-BLUE$60.00
31003AnaWest8$7.25Oct 14, 2026TW-104-BLUE$58.00
41007CaraWest9$12.00Nov 10, 2026TW-330-GREEN$108.00
One formula in J2 spills a live copy of every West order. Change a region in column C and the list updates. If a cell in the spill area isn't empty, you get #SPILL! instead.

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

FormulaUse it to…ExampleLearn
MEDIAN(number1, ...)The middle value=MEDIAN(H2:H9) → $60.00Statistics
MODE.SNGL(number1, ...)The most common value=MODE.SNGL(H2:H9) → $60.00Statistics
STDEV.S(number1, ...)Spread of a sample=STDEV.S(D2:D9) → 5.65Statistics
RANK.EQ(number, ref, [order])Position in a list (1 = largest)=RANK.EQ(H7,H2:H9) → 2RANK
LARGE(array, k)The k-th largest value=LARGE(H2:H9,2) → $90.00LARGE
SMALL(array, k)The k-th smallest value=SMALL(H2:H9,1) → $54.00SMALL
CORREL(array1, array2)How closely two columns move together (−1 to 1)=CORREL(D2:D9,H2:H9) → 0.03CORREL
FREQUENCY(data_array, bins_array)Count values in bins (one more result than bins)=FREQUENCY(H2:H9,{60,75,90}) → 5, 1, 1, 1FREQUENCY
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.31LINEST
TREND(known_y's, [known_x's], [new_x's], [const])Predict y for a new x=TREND(H2:H9,D2:D9,25) → $71.72TREND

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

FormulaUse it to…ExampleLearn
PMT(rate, nper, pv, [fv], [type])Loan payment per period=PMT(6%/12,36,-15000) → $456.33Loan and finance formulas
RATE(nper, pmt, pv, [fv], [type], [guess])Interest rate per period=RATE(48,-350,14000)*12 → 9.24% a yearRATE
FV(rate, nper, pmt, [pv], [type])What savings grow to=FV(5%/12,120,-200) → $31,056.46Loan and finance formulas
PV(rate, nper, pmt, [fv], [type])Today's value of future payments=PV(5%/12,60,-300) → $15,897.21Loan and finance formulas
NPER(rate, pmt, pv, [fv], [type])Number of payments to clear a loan=NPER(6%/12,-500,20000) → 44.7Loan and finance formulas
SLN(cost, salvage, life)Straight-line depreciation per period=SLN(12000,2000,5) → $2,000.00SLN
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.50ACCRINT

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

FormulaUse it to…ExampleLearn
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.60LET
LAMBDA([parameter1, ...], calculation)Build your own function=LAMBDA(units,price,units*price)(D3,E3) → $60.00LAMBDA

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:

  1. 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.
  2. Answers: the same tasks with working formulas.
  3. 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.
  4. 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. =TODAY is 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.08 hides 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.