Excel Formulas Cheat Sheet: The Only List You Actually Need

TL;DR
  • Five functions cover most daily work: SUM, AVERAGE, COUNTIF, IF, and one lookup (XLOOKUP or VLOOKUP).
  • Argument order matters: SUMIF takes the sum range last, SUMIFS takes it first. Mixing them up is the classic silent error.
  • Use XLOOKUP instead of VLOOKUP if you're on Excel 365 or 2021. It defaults to exact match and doesn't break when columns move.
  • Wrap fragile formulas in IFERROR and clean imported text with TRIM before blaming the formula.

This cheat sheet collects the Excel formulas that working professionals reach for every day, with correct syntax, a small worked dataset, and the result each example actually produces. Bookmark it, or keep it open in a second tab while you build. Everything here also works in Google Sheets unless noted otherwise.

Unless a row says otherwise, the examples below assume a tiny sales table: A2:A6 holds the regions North, South, North, East, South and B2:B6 holds the amounts 100, 250, 175, 90, 310.

The master Excel formulas cheat sheet

The fastest way to use this basic Excel formulas list: find the task in the middle column, copy the example, and swap in your own ranges. Every formula below is tested syntax, and every result is what Excel really returns against the sample data described above, not a rounded approximation.

FormulaWhat it doesExampleResult
SUMAdds numbers in a range=SUM(B2:B6)925
AVERAGEArithmetic mean of a range=AVERAGE(B2:B6)185
COUNTCounts numeric cells=COUNT(B2:B6)5
COUNTACounts non-empty cells=COUNTA(A2:A6)5
COUNTIFCounts cells meeting one condition=COUNTIF(A2:A6,"North")2
SUMIFSums values meeting one condition=SUMIF(A2:A6,"North",B2:B6)275
SUMIFSSums values meeting several conditions=SUMIFS(B2:B6,A2:A6,"South",B2:B6,">300")310
AVERAGEIFAverages values meeting a condition=AVERAGEIF(A2:A6,"South",B2:B6)280
MAX / MINLargest / smallest value=MAX(B2:B6)310
IFReturns one value or another based on a test=IF(B2>150,"High","Low")Low
IFERRORReplaces errors with a fallback=IFERROR(10/0,"Check input")Check input
ROUNDRounds to N decimal places=ROUND(3.14159,2)3.14
VLOOKUPFinds a value in the first column, returns from another=VLOOKUP("East",A2:B6,2,FALSE)90
XLOOKUPModern lookup in any direction (365/2021+)=XLOOKUP("East",A2:A6,B2:B6)90
INDEX+MATCHFlexible lookup that works in any Excel version=INDEX(B2:B6,MATCH("East",A2:A6,0))90
UNIQUELists distinct values (365/2021+)=UNIQUE(A2:A6)North, South, East
FILTERReturns rows matching a condition (365/2021+)=FILTER(B2:B6,A2:A6="North")100, 175
TEXTJOINJoins text with a delimiter=TEXTJOIN(", ",TRUE,A2:A3)North, South
TODAYCurrent date, updates automatically=TODAY()Today's date
EOMONTHLast day of a month, with offset=EOMONTH(TODAY(),0)Month-end date
Most-used Excel functions by share of spreadsheets SUM AVERAGE IF VLOOKUP COUNTIF SUMIF INDEX+MATCH XLOOKUP 74% 61% 53% 45% 38% 31% 24% 19%
Illustrative ranking based on commonly reported spreadsheet usage patterns, not a formal survey. The order is the point: master the top five and you cover most real files.

Math and counting basics: SUM, AVERAGE, and the COUNT family

Use SUM to total a range, AVERAGE for the mean, COUNT for numeric cells, and COUNTA for any non-empty cell. Add a condition with SUMIF, COUNTIF, or AVERAGEIF, and use the plural SUMIFS when you need two or more conditions at once.

The one thing to burn into memory is the argument order difference:

Conditions with comparison operators go in quotes: ">100", "<=90", "<>North" (not equal). To compare against a cell, concatenate: =COUNTIF(B2:B6,">"&D1).

For rounding, =ROUND(3.14159,2) gives 3.14. ROUNDUP and ROUNDDOWN force the direction, which matters for prices and quantities you can't split.

Logical functions: IF, nested IF, IFS, and IFERROR

IF tests a condition and returns one of two values: =IF(B2>=150,"High","Low"). For more than two outcomes, nest IFs or use IFS, which reads far more cleanly. IFERROR catches any error a formula throws and substitutes your own fallback value instead of showing #N/A or #DIV/0!.

A grading example with a score of 84 in B2:

Note the trailing TRUE,"F" pair in IFS. It acts as the catch-all; without it, an unmatched score returns #N/A.

IFERROR is the polish layer. =IFERROR(VLOOKUP("West",A2:B6,2,FALSE),"Not found") returns Not found because West isn't in the sample data. Use it on anything that feeds a report someone else will read. One caution: it hides every error, including real bugs, so add it after the formula works, not before.

Lookup formulas: VLOOKUP, XLOOKUP, and INDEX + MATCH

Lookups pull a related value from another table, like fetching a price from a product list. VLOOKUP is the classic, XLOOKUP is its modern replacement in Excel 365 and 2021, and INDEX + MATCH is the version-proof combination that works everywhere, including old workbooks and Google Sheets.

Here's the anatomy of the one everybody learns first:

=VLOOKUP( "SKU-104" , A2:D50 , 3 , FALSE ) 1. lookup_value the value to find (watch for typos and spaces) 2. table_array where to search; the lookup column must be first 3. col_index_num column to return, counted from the left 4. range_lookup FALSE = exact match (use it almost every time)
VLOOKUP's four arguments. Forgetting the fourth one is the most common mistake: it defaults to approximate match and silently returns wrong values on unsorted data.

The same lookup three ways, finding the amount for East in our sample table:

VLOOKUPXLOOKUPINDEX + MATCH
Syntax=VLOOKUP(value, table, col_num, FALSE)=XLOOKUP(value, lookup_range, return_range, [if_not_found])=INDEX(return_range, MATCH(value, lookup_range, 0))
Lookup directionLeft column only, returns to the rightAny direction, including right-to-leftAny direction
Default matchApproximate (risky)ExactExact when you pass 0
Survives inserted columnsNo, the column number goes staleYesYes
Built-in not-found messageNo, needs IFERRORYes, fourth argumentNo, needs IFERROR
Works inEvery Excel versionExcel 365, Excel 2021+, Google SheetsEvery Excel version

If you're deciding which to standardize on, we walk through the tradeoffs with more examples in our XLOOKUP vs VLOOKUP comparison.

Stuck writing a lookup right now? Describe your problem in plain English, like "get the price for the product code in A2 from the Products sheet", and XLsheetAI writes the formula for you, with an explanation of every argument.

Download on the App StoreGet it on Google Play

Text functions for cleaning and combining data

Text functions slice, measure, clean, and join strings. LEFT, RIGHT, and MID extract characters by position, LEN counts them, TRIM strips stray spaces, and CONCAT or TEXTJOIN glue values back together. Most messy-import problems get solved with some combination of these six.

FormulaWhat it doesExampleResult
LEFTFirst N characters=LEFT("XL-2043",2)XL
RIGHTLast N characters=RIGHT("XL-2043",4)2043
MIDN characters starting at a position=MID("XL-2043",4,2)20
LENLength of the text=LEN("XL-2043")7
TRIMRemoves extra spaces=TRIM(" net revenue ")net revenue
CONCATJoins values directly=CONCAT("Q","3"," 2026")Q3 2026
TEXTJOINJoins with a delimiter, can skip blanks=TEXTJOIN(", ",TRUE,"North","South","East")North, South, East

A pattern worth memorizing: extract everything before a delimiter with =LEFT(A2,FIND("-",A2)-1). For "XL-2043" that returns "XL". And if your data starts life as a screenshot or a printed table rather than text at all, you can convert an image to an Excel sheet first and then clean it with these functions.

Date formulas: TODAY, DATEDIF, and EOMONTH

Excel stores dates as serial numbers, which is why date math works with plain arithmetic. TODAY() returns the current date and recalculates on open. DATEDIF measures the gap between two dates in years, months, or days. EOMONTH jumps to the last day of any month, which makes month-end reporting formulas trivial.

If a date formula returns a number like 46251 instead of a date, the formula is fine. Just change the cell's number format to a date format.

Modern dynamic array functions: FILTER, SORT, UNIQUE, and XMATCH

Dynamic array functions return multiple results that "spill" into neighboring cells from a single formula. FILTER extracts matching rows, SORT orders them, UNIQUE deduplicates, and XMATCH finds positions. They need Excel 365 or Excel 2021 and newer; in Excel 2016 or 2019 they simply don't exist and will show #NAME?.

These combine beautifully: =SORT(UNIQUE(A2:A100)) gives you an alphabetized list of distinct values in one cell. If you see a #SPILL! error, something is sitting in the cells the result needs; clear that range and the formula recovers on its own.

Excel error codes and how to fix them

Every Excel error code is a specific diagnosis, not a generic failure. #N/A means a lookup found nothing, #VALUE! means a wrong data type, #REF! means a deleted reference, #DIV/0! is division by zero or a blank, and #NAME? means Excel doesn't recognize something you typed.

ErrorWhat causes itThe fix
#N/AA lookup value wasn't found: typo, extra spaces, or a number stored as textCheck the value exists, clean with TRIM, match data types, then wrap in IFERROR for display
#VALUE!Wrong data type, such as doing math on textFind the offending cell; convert text-numbers with VALUE() or Paste Special > Multiply by 1
#REF!The formula points at cells that were deleted, or a column index past the table edgeUndo the deletion or rewrite the reference; in VLOOKUP, lower col_index_num so it fits the table
#DIV/0!Dividing by zero or by an empty cellGuard it: =IF(B2=0,"",A2/B2) or =IFERROR(A2/B2,0)
#NAME?A misspelled function, missing quotes around text, or a function your Excel version lacksFix the spelling, quote text criteria, or replace 365-only functions on older Excel

Common mistakes that break formulas

Most broken spreadsheets trace back to a handful of repeat offenders: wrong argument order, missing exact-match flags, unlocked references before a fill-down, and invisible text problems in the data itself. Check this list before rewriting a formula from scratch, because the formula is usually closer to correct than the data is.

Want these to stick? The fastest way to learn formulas is to use them on your own data. XLsheetAI turns a plain-English description into a working formula, explains broken ones, and fixes errors like #N/A and #REF! so you learn by doing instead of memorizing.

Download on the App StoreGet it on Google Play

Frequently asked questions

What are the most important Excel formulas to learn first?

Start with SUM, AVERAGE, COUNT, COUNTIF, and IF. These five cover most everyday totals, averages, and simple logic. Then add SUMIF for conditional totals and one lookup function, ideally XLOOKUP if you have Excel 365 or 2021, otherwise VLOOKUP. That small set handles the bulk of routine spreadsheet work.

What is the difference between VLOOKUP and XLOOKUP?

VLOOKUP searches the first column of a table and returns a value from a column you count by number, and it defaults to approximate matching. XLOOKUP takes separate lookup and return ranges, defaults to exact match, searches in any direction, and has built-in not-found handling. XLOOKUP requires Excel 365 or Excel 2021.

Why does my Excel formula return #N/A?

#N/A means a lookup function could not find your lookup value. Common causes are typos, extra spaces, numbers stored as text, or searching the wrong column. Clean the data with TRIM, confirm the value exists, use exact match mode, and wrap the formula in IFERROR to show a friendlier message.

Do FILTER, SORT, and UNIQUE work in Excel 2019?

No. FILTER, SORT, UNIQUE, XLOOKUP, and XMATCH are dynamic array functions available only in Excel 365 and Excel 2021 or later, plus Google Sheets for most of them. In Excel 2016 or 2019 you will get a #NAME? error, so use PivotTables, VLOOKUP, or helper columns instead.

How do I combine text from multiple cells in Excel?

Use CONCAT to join values directly, for example =CONCAT(A2," ",B2), or use TEXTJOIN when you want a delimiter between every item, for example =TEXTJOIN(", ",TRUE,A2:A10). TEXTJOIN's second argument tells Excel to skip empty cells, which keeps you from getting doubled commas in the result.