Cheat sheet

Excel formulas cheat sheet

54 functions on one page. Examples run on the sample sheet shown below, and every result is calculated. Print it with Ctrl+P / Cmd+P.

Examples use this sample sheet of orders:

A
B
C
D
E
F
1
Order
Region
Rep
Units
Price
Revenue
2
1001
East
Maya
4
12
48
3
1002
West
Omar
2
30
60
4
1003
East
Lena
7
12
84
5
1004
North
Maya
1
45
45
6
1005
West
Lena
5
30
150
7
1006
East
Omar
3
18
54
8
1007
North
Lena
6
12
72
9
1008
West
Maya
8
18
144

Math

FunctionWhat it doesExampleResult
SUMAdds numbers and ranges.=SUM(F2:F9)657
AVERAGEThe mean of the numbers.=AVERAGE(E2:E9)22.125
MINThe smallest number.=MIN(D2:D9)1
MAXThe largest number.=MAX(F2:F9)150
COUNTCounts cells that contain numbers.=COUNT(D2:D9)8
COUNTACounts cells that are not empty.=COUNTA(C2:C9)8
ROUNDRounds to a number of decimals.=ROUND(AVERAGE(E2:E9),1)22.1
ABSRemoves the minus sign.=ABS(-12)12
MEDIANThe middle value.=MEDIAN(F2:F9)66
ROUNDUPRounds up, away from zero.=ROUNDUP(AVERAGE(E2:E9),0)23
ROUNDDOWNRounds down, toward zero.=ROUNDDOWN(AVERAGE(E2:E9),0)22

Conditional

FunctionWhat it doesExampleResult
COUNTIFCounts cells that match a condition.=COUNTIF(B2:B9,"East")3
COUNTIFSCounts rows that match every condition.=COUNTIFS(B2:B9,"West",D2:D9,">4")2
SUMIFAdds values whose row matches a condition.=SUMIF(B2:B9,"West",F2:F9)354
SUMIFSAdds values whose row matches every condition.=SUMIFS(F2:F9,B2:B9,"East",C2:C9,"Omar")54
AVERAGEIFAverages values whose row matches a condition.=AVERAGEIF(C2:C9,"Lena",F2:F9)102
AVERAGEIFSAverages values whose rows match every condition.=AVERAGEIFS(F2:F9,B2:B9,"East",D2:D9,">3")66
MAXIFSThe largest value among rows that match every condition.=MAXIFS(F2:F9,B2:B9,"West")150
MINIFSThe smallest value among rows that match every condition.=MINIFS(F2:F9,C2:C9,"Maya")45
COUNTBLANKCounts empty cells.=COUNTBLANK(G2:G9)8

Logic

FunctionWhat it doesExampleResult
IFReturns one value if a test is true, another if false.=IF(F6>=100,"Big","Small")Big
ANDTRUE only if every test is true.=AND(B4="East",D4>3)TRUE
ORTRUE if any test is true.=OR(B2="West",D2>3)TRUE
NOTFlips TRUE and FALSE.=NOT(B2="West")TRUE
IFERRORShows a fallback when a formula errors.=IFERROR(VLOOKUP(1012,A2:F9,5,FALSE),0)0
IFSReturns the value for the first test that is TRUE.=IFS(F6>=100,"Large",F6>=50,"Medium",TRUE,"Small")Large

Lookup

FunctionWhat it doesExampleResult
VLOOKUPFinds a row by its first column and returns another column.=VLOOKUP(1006,A2:F9,3,FALSE)Omar
XLOOKUPSearches one column and returns the matching value from another.=XLOOKUP(150,F2:F9,A2:A9)1005
MATCHReturns the position of a value in a list.=MATCH(1005,A2:A9,0)5
INDEXReturns the value at a position in a range.=INDEX(D2:D9,MATCH(1008,A2:A9,0))8

Text

FunctionWhat it doesExampleResult
CONCATJoins text together.=CONCAT(C2," ",B2)Maya East
UPPERConverts to capitals.=UPPER(C2)MAYA
LOWERConverts to lowercase.=LOWER(B2)east
LENCounts characters.=LEN(C3)4
LEFTThe first characters of a text.=LEFT(B4,1)E
RIGHTThe last characters of a text.=RIGHT(A2,2)01
TRIMRemoves extra spaces.=TRIM(" Maya ")Maya
PROPERCapitalizes the first letter of each word.=PROPER("maria garcia")Maria Garcia
SUBSTITUTEReplaces text inside text.=SUBSTITUTE("555-0142","-","")5550142
TEXTFormats a number or date as text.=TEXT(F6,"$#,##0")$150
TEXTJOINJoins text with a separator between items.=TEXTJOIN(", ",TRUE,C2:C5)Maya, Omar, Lena, Maya

Dates

FunctionWhat it doesExampleResult
DATEBuilds a date from a year, month and day.=TEXT(DATE(2026,12,25),"dddd")Friday
YEARThe year of a date.=YEAR(DATE(2026,11,2))2026
MONTHThe month of a date, 1–12.=MONTH(DATE(2026,11,2))11
DAYThe day of the month.=DAY(DATE(2026,11,2))2
WEEKDAYThe day of the week as a number. 1 = Sunday by default.=WEEKDAY(DATE(2026,11,2))2
EOMONTHThe last day of a month, some months away.=TEXT(EOMONTH(DATE(2026,11,2),0),"m/d/yyyy")11/30/2026
NETWORKDAYSCounts weekdays between two dates, including both.=NETWORKDAYS(DATE(2026,11,2),DATE(2026,11,30))21
TODAYToday’s date. It updates every day.=TEXT(TODAY(),"mmmm d, yyyy")October 31, 2026

Dynamic arrays

FunctionWhat it doesExampleResult
UNIQUELists each value once. The result spills down.=UNIQUE(B2:B9)East, West, North
SORTSorts a range. The result spills down.=SORT(F2:F9,1,-1)150, 144, 84, 72, 60, 54, …
FILTERReturns only the rows that meet a condition. The result spills.=FILTER(C2:C9,B2:B9="West")Omar, Lena, Maya
SUMPRODUCTMultiplies ranges item by item, then adds the results.=SUMPRODUCT(D2:D9,E2:E9)657

Finance

FunctionWhat it doesExampleResult
PMTThe payment for a loan with a fixed rate.=ROUND(PMT(6%/12,60,-20000),2)386.66