Cellwise Start free

Excel reference · printable

Excel cheat sheet: formulas, operators and shortcuts

The 54 formulas, the operators and the 26 shortcuts worth knowing by heart, on two pages. Version notes in brackets; everything else works in all current versions.

Print with Ctrl+P (Cmd+P on a Mac). Choose "Save as PDF" for a file.

Math and totals

SUM(range)
Add up numbers
AVERAGE(range)
Mean
MIN(range) / MAX(range)
Smallest / largest
ROUND(n, digits)
Round the stored value
ROUNDUP / ROUNDDOWN(n, digits)
Always up / always down
MOD(n, divisor)
Remainder
SUMPRODUCT(a, b)
Multiply pairs, then add
SUBTOTAL(9, range)
Sum of visible rows only

Count and conditional

COUNT(range)
Cells with numbers
COUNTA(range)
Cells that are not empty
COUNTBLANK(range)
Empty cells
COUNTIF(range, criteria)
Count matches
COUNTIFS(r1, c1, r2, c2)
Count, several conditions
SUMIF(range, criteria, sum_range)
Add matching rows
SUMIFS(sum_range, r1, c1, ...)
Add, several conditions
AVERAGEIFS / MAXIFS / MINIFS
Same pattern as SUMIFS (MAXIFS: 2019+)

Logic

IF(test, if_true, if_false)
Pick one of two results
IFS(t1, v1, t2, v2, ...)
First true test wins (2019+)
AND(t1, t2) / OR(t1, t2)
All true / any true
NOT(test)
Flip TRUE and FALSE
IFERROR(value, fallback)
Replace any error
IFNA(value, fallback)
Replace #N/A only
SWITCH(x, v1, r1, ..., default)
Match a value to a result (2019+)

Lookup

XLOOKUP(value, look_in, return, [not_found])
Any direction, exact by default (2021+)
VLOOKUP(value, table, col, FALSE)
Classic; FALSE = exact match
INDEX(range, MATCH(value, look_in, 0))
Works in every version
MATCH(value, range, 0)
Position of a value
XMATCH(value, range)
Modern MATCH (2021+)

Text

LEFT / RIGHT(text, n)
First / last n characters
MID(text, start, n)
Characters from the middle
LEN(text)
Number of characters
FIND / SEARCH(find, text)
Position; SEARCH ignores case
TRIM(text)
Remove extra spaces
UPPER / LOWER / PROPER(text)
Change case
SUBSTITUTE(text, old, new)
Replace text
TEXT(value, "format")
Number or date as formatted text
TEXTJOIN(", ", TRUE, range)
Join with a separator (2019+)
TEXTBEFORE / TEXTAFTER(text, "-")
Split at a delimiter (365, 2024)
VALUE(text)
Text to number

Dates

TODAY()
Today’s date (updates daily)
DATE(y, m, d)
Build a date
YEAR / MONTH / DAY(date)
Parts of a date
EDATE(date, months)
Same day, n months later
EOMONTH(date, 0)
Last day of the month
DATEDIF(start, end, "y")
Whole years ("m" months, "d" days)
NETWORKDAYS(start, end)
Working days between
WORKDAY(start, days)
Date after n working days
WEEKDAY(date, 2)
Day number, Monday = 1

Dynamic arrays (365, 2021+)

FILTER(range, condition, "None")
Matching rows
SORT(range, col, -1)
Sorted copy; -1 = descending
SORTBY(range, by_range)
Sort by another column
UNIQUE(range)
Each value once
SEQUENCE(rows)
1, 2, 3...
LET(name, value, calc)
Name a part of a formula

Operators

+ - * /Add, subtract, multiply, divide
^Power: 2^3 is 8
%Percent: 10% is 0.1
&Join text: A2&" "&B2
= <>Equal, not equal
> < >= <=Compare
A1:B5Range (colon)
F2#Whole spill range (365)

Order of operations

  1. Brackets, innermost first
  2. Negation (-2)
  3. %
  4. ^
  5. * and /
  6. + and -
  7. &
  8. = < > <= >= <>

So =-2^2 is 4 and =2^3^2 is 64.

Criteria and wildcards

">=100"Operator inside quotes
">"&F1Compare with a cell
"<>Done"Not equal to Done
"<>"Not empty
"*lamp*"* = any characters
"A??"? = exactly one character
"*~*"~ = a real * or ?

References

A1Relative: shifts when copied
$A$1Absolute: never shifts
$A1Column locked
A$1Row locked
F4Cycle through them while editing (Mac: Cmd+T)

Keyboard shortcuts Windows · Mac

  • Copy the selectionWindows: Ctrl+CMac: Cmd+C
  • PasteWindows: Ctrl+VMac: Cmd+V
  • Cut the selectionWindows: Ctrl+XMac: Cmd+X
  • Undo the last actionWindows: Ctrl+ZMac: Cmd+Z
  • RedoWindows: Ctrl+YMac: Cmd+Shift+Z
  • BoldWindows: Ctrl+BMac: Cmd+B
  • ItalicWindows: Ctrl+IMac: Cmd+I
  • Fill down from the cell aboveWindows: Ctrl+DMac: Cmd+D
  • Fill right from the cell to the leftWindows: Ctrl+RMac: Cmd+R
  • Select the current region, then the whole sheetWindows: Ctrl+AMac: Cmd+A
  • FindWindows: Ctrl+FMac: Control+F
  • Save the workbookWindows: Ctrl+SMac: Cmd+S
  • Insert a hyperlinkWindows: Ctrl+KMac: Cmd+K
  • Turn filters on or offWindows: Ctrl+Shift+LMac: Cmd+Shift+F
  • Enter today's dateWindows: Ctrl+;Mac: Control+;
  • Select the entire rowWindows: Shift+SpaceMac: Shift+Space
  • Put the same entry in every selected cellWindows: Ctrl+EnterMac: Cmd+Return
  • Jump to the edge of the dataWindows: Ctrl+ArrowMac: Cmd+Arrow
  • Currency format with 2 decimalsWindows: Ctrl+Shift+$Mac: Control+Shift+$
  • Percentage format with no decimalsWindows: Ctrl+Shift+%Mac: Control+Shift+%
  • Edit the active cellWindows: F2Mac: Control+U
  • Switch a reference between A1, $A$1, A$1 and $A1Windows: F4Mac: Cmd+T
  • AutoSum the cells above or to the leftWindows: Alt+=Mac: Shift+Cmd+T
  • Show formulas instead of results, and backWindows: Ctrl+`Mac: Control+`
  • Open Format CellsWindows: Ctrl+1Mac: Cmd+1
  • Start a new line inside the cellWindows: Alt+EnterMac: Option+Return

Error values

#N/ALookup found no match
#VALUE!Wrong type, e.g. text in math
#REF!A referenced cell was deleted
#DIV/0!Divided by zero or a blank
#NAME?Typo in a name, or text without quotes
#SPILL!Cells in the way of a spill
#NUM!Impossible number, e.g. SQRT(-1)
#NULL!A space where a comma or colon belongs
#CALC!FILTER found nothing, or an empty array
#####Column too narrow (not an error)

Number format codes

#,##0.001234.5 shows as 1,234.50
0.0,,"M"1234567 shows as 1.2M
#,##0.00;(#,##0.00)-1234.5 shows as (1,234.50)
0%0.256 shows as 26%
+0.0%;-0.0%;0.0%0.125 shows as +12.5%
00000742 shows as 00742
mmm d, yyyyNov 5, 2026 shows as Nov 5, 2026
dddNov 5, 2026 shows as Thu
h:mm AM/PMNov 5, 2026 6:30:15 PM shows as 6:30 PM
[h]:mm:ss1.25 days + 40 seconds shows as 30:00:40

Ctrl+1 (Cmd+1) > Number > Custom. All codes: cellwise.app/excel-number-format-codes/

cellwise.app · Every page: functions, glossary, operators, number formats, shortcuts. Updated .