Excel

Start here if you just want the shortcuts and formulas handy: keyboard shortcuts for Windows and Mac, the formulas that cover almost everything, what those cryptic errors actually mean, and the data tools worth knowing.

Start here

The Excel commands you'll reach for most.

Ctrl+Z

Undo the last action

Cmd+Z

Undo the last action

F2

Edit the active cell (cursor placed at the end of its contents)

Fn+F2 (or Control+U)

Edit the active cell (cursor placed at the end of its contents)

Alt+=

AutoSum — insert a SUM formula guessing the adjacent range

Shift+Cmd+T

AutoSum — insert a SUM formula guessing the adjacent range

Ctrl+S

Save the current workbook

Cmd+S

Save the current workbook

SUM

=SUM(range) — adds up every number in a range

IF

=IF(condition, value_if_true, value_if_false) — branches on a test

VLOOKUP

=VLOOKUP(lookup_value, table_array, col_index, FALSE) — finds a value in the leftmost column and returns a value from a column to its right

XLOOKUP

=XLOOKUP(lookup_value, lookup_array, return_array) — the modern replacement for VLOOKUP/HLOOKUP; works in any direction

IFERROR

=IFERROR(formula, value_if_error) — replaces any error result with a friendlier fallback

Every Excel shortcut / formula at a glance

Every entry, one line each. Highlighted ones have a detailed example below — click to jump there.

All 122 entries (Windows)All 118 entries (Mac)
Ctrl+Z
Undo the last action
Cmd+Z
Undo the last action
Ctrl+Y
Redo the last undone action
Cmd+Shift+Z
Redo the last undone action
Ctrl+Home
Jump to cell A1
Cmd+Home (or Fn+Left)
Jump to cell A1
Ctrl+End
Jump to the last used cell on the sheet
Cmd+End (or Fn+Right)
Jump to the last used cell on the sheet
Ctrl+Arrow key
Jump to the edge of the current block of data in that direction
Cmd+Arrow key
Jump to the edge of the current block of data in that direction
Page Up / Page Down
Scroll up or down one full screen
Fn+Up / Fn+Down
Scroll up or down one full screen
Alt+Page Up / Page Down
Scroll one full screen left or right
Ctrl+G (or F5)
Open "Go To" — jump straight to a cell reference or named range
Cmd+Shift+F5
Open "Go To" — jump straight to a cell reference or named range
Ctrl+A
Select the current region, or the whole sheet if pressed again
Cmd+A
Select the current region, or the whole sheet if pressed again
Ctrl+Shift+Arrow key
Extend the selection to the edge of the current block of data
Cmd+Shift+Arrow key
Extend the selection to the edge of the current block of data
Ctrl+Space
Select the entire column of the active cell
Ctrl+Space
Select the entire column of the active cell — still Ctrl, not Cmd
Shift+Space
Select the entire row of the active cell
Shift+Space
Select the entire row of the active cell
Ctrl+Shift+End
Extend the selection to the last used cell on the sheet
Cmd+Shift+End
Extend the selection to the last used cell on the sheet
F2
Edit the active cell (cursor placed at the end of its contents)
Fn+F2 (or Control+U)
Edit the active cell (cursor placed at the end of its contents)
Ctrl+D
Fill down — copy the top cell of the selection into the cells below it
Cmd+D
Fill down — copy the top cell of the selection into the cells below it
Ctrl+R
Fill right — copy the leftmost cell of the selection into the cells to its right
Cmd+R
Fill right — copy the leftmost cell of the selection into the cells to its right
Alt+Enter
Insert a line break inside the current cell
Control+Option+Return
Insert a line break inside the current cell
Ctrl+;
Insert today's date as a static value
Ctrl+;
Insert today's date as a static value
Ctrl+Shift+;
Insert the current time as a static value
Ctrl+Shift+;
Insert the current time as a static value
Delete
Clear cell contents only, leaving formatting in place
Delete (Backspace key)
Clear cell contents only, leaving formatting in place
Backspace
Clear the active cell and start typing a replacement value
Ctrl+1
Open the Format Cells dialog
Cmd+1
Open the Format Cells dialog
Ctrl+B / Ctrl+I / Ctrl+U
Toggle bold, italic, or underline on the selection
Cmd+B / Cmd+I / Cmd+U
Toggle bold, italic, or underline on the selection
Ctrl+Shift+%
Apply the Percentage number format
Cmd+Shift+%
Apply the Percentage number format
Ctrl+Shift+$
Apply the Currency number format
Cmd+Shift+$
Apply the Currency number format
Ctrl+Shift+#
Apply the Date number format
Ctrl+Shift+!
Apply the Number format with thousands separator
F4
Repeat the last action, or cycle a cell reference between relative and absolute while editing a formula
Fn+F4
Repeat the last action, or cycle a cell reference between relative and absolute while editing a formula
F9
Force a full recalculation of every open workbook
Cmd+=
Force a full recalculation of every open workbook
Alt+=
AutoSum — insert a SUM formula guessing the adjacent range
Shift+Cmd+T
AutoSum — insert a SUM formula guessing the adjacent range
Ctrl+` (grave accent)
Toggle showing formulas instead of their results in every cell
Ctrl+` (grave accent)
Toggle showing formulas instead of their results in every cell
Ctrl+N
Create a new blank workbook
Cmd+N
Create a new blank workbook
Ctrl+O
Open an existing workbook
Cmd+O
Open an existing workbook
Ctrl+S
Save the current workbook
Cmd+S
Save the current workbook
Ctrl+Page Up / Page Down
Switch to the previous or next worksheet tab
Control+Page Up / Page Down
Switch to the previous or next worksheet tab
Shift+F11
Insert a new blank worksheet
Shift+Fn+F11
Insert a new blank worksheet
F12
Open "Save As"
Cmd+Shift+S
Open "Save As"
Ctrl+Plus (+)
Insert blank cells, rows, or columns
Cmd+Plus (+)
Insert blank cells, rows, or columns
Ctrl+Minus (-)
Delete the selected cells, rows, or columns
Cmd+Minus (-)
Delete the selected cells, rows, or columns
Ctrl+9
Hide the selected rows
Cmd+9
Hide the selected rows
Ctrl+0
Hide the selected columns
Cmd+0
Hide the selected columns
SUM
=SUM(range) — adds up every number in a range
AVERAGE
=AVERAGE(range) — the mean of the numbers in a range
COUNT
=COUNT(range) — counts cells containing numbers
COUNTA
=COUNTA(range) — counts non-empty cells of any type
COUNTBLANK
=COUNTBLANK(range) — counts empty cells in a range
MAX
=MAX(range) — the largest value in a range
MIN
=MIN(range) — the smallest value in a range
IF
=IF(condition, value_if_true, value_if_false) — branches on a test
IFS
=IFS(cond1, val1, cond2, val2, ...) — multiple conditions without nesting IF inside IF
AND
=AND(cond1, cond2, ...) — TRUE only if every condition is TRUE
OR
=OR(cond1, cond2, ...) — TRUE if any condition is TRUE
NOT
=NOT(condition) — flips TRUE to FALSE and vice versa
VLOOKUP
=VLOOKUP(lookup_value, table_array, col_index, FALSE) — finds a value in the leftmost column and returns a value from a column to its right
HLOOKUP
=HLOOKUP(lookup_value, table_array, row_index, FALSE) — the row-based version of VLOOKUP
XLOOKUP
=XLOOKUP(lookup_value, lookup_array, return_array) — the modern replacement for VLOOKUP/HLOOKUP; works in any direction
INDEX
=INDEX(range, row_num, col_num) — returns the value at a given position in a range
MATCH
=MATCH(lookup_value, range, 0) — returns the position of a value within a range
INDEX + MATCH
=INDEX(return_range, MATCH(lookup_value, lookup_range, 0)) — a flexible lookup that works looking in any direction, predating XLOOKUP
SUMIF
=SUMIF(range, criteria, sum_range) — sums cells that meet one condition
SUMIFS
=SUMIFS(sum_range, range1, crit1, range2, crit2, ...) — sums cells meeting multiple conditions
COUNTIF
=COUNTIF(range, criteria) — counts cells that meet one condition
COUNTIFS
=COUNTIFS(range1, crit1, range2, crit2, ...) — counts cells meeting multiple conditions
AVERAGEIF
=AVERAGEIF(range, criteria, avg_range) — averages cells that meet one condition
CONCAT / CONCATENATE
=CONCAT(A1, " ", B1) — joins text from multiple cells into one string
TEXTJOIN
=TEXTJOIN(delimiter, ignore_empty, range) — joins a whole range with a separator in one step
LEFT
=LEFT(text, num_chars) — the first N characters of a string
RIGHT
=RIGHT(text, num_chars) — the last N characters of a string
MID
=MID(text, start_num, num_chars) — characters from the middle of a string
LEN
=LEN(text) — the number of characters in a string
TRIM
=TRIM(text) — removes extra spaces, leaving single spaces between words
UPPER / LOWER / PROPER
Change text case — all caps, all lowercase, or Title Case
ROUND
=ROUND(number, digits) — rounds to the nearest specified decimal place
ROUNDUP
=ROUNDUP(number, digits) — always rounds away from zero
ROUNDDOWN
=ROUNDDOWN(number, digits) — always rounds toward zero
TODAY
=TODAY() — today's date, updates automatically whenever the sheet recalculates
NOW
=NOW() — the current date and time, updates automatically
DATEDIF
=DATEDIF(start, end, unit) — the difference between two dates in days, months, or years
TEXT
=TEXT(value, format_text) — formats a number or date as a string inside a formula, e.g. for building a label
IFERROR
=IFERROR(formula, value_if_error) — replaces any error result with a friendlier fallback
UNIQUE
=UNIQUE(range) — spills a list of the distinct values in a range (dynamic array function)
SORT
=SORT(range, sort_index, order) — spills a sorted copy of a range (dynamic array function)
FILTER
=FILTER(range, condition) — spills only the rows matching a condition (dynamic array function)
#REF!
A formula points to a cell that no longer exists, usually because a referenced row/column was deleted — undo (Ctrl+Z) or rebuild the reference
#VALUE!
The formula received the wrong type of value, like text where a number was expected — check every input cell for stray text or spaces
#NAME?
Excel doesn't recognize a name in the formula, usually a misspelled function or a missing named range — check spelling and quotes around text
#N/A
A lookup found no match — confirm the lookup value actually exists in the source range and that spelling/spacing match exactly
#DIV/0!
The formula divided by zero or an empty cell — wrap it in IFERROR or check the denominator
#NULL!
A range reference used a space instead of a comma or colon, describing an intersection that doesn't exist — fix the range operator
#NUM!
A formula produced a number too large/small for Excel, or an invalid argument was passed to a math function — check the inputs to functions like SQRT or DATE
#####
Not really an error — the column is too narrow to display the value; widen the column or double-click the column border to autofit
Sort (A-Z / custom)
Data tab → Sort — reorders rows by one or more columns, ascending, descending, or a custom order
Filter
Data tab → Filter — adds dropdown arrows to headers to show only rows matching chosen criteria
Table (Ctrl+T)
Converts a range into a structured Table with auto-expanding formulas, a header filter row, and named columns
PivotTable
Summarizes and cross-tabulates large data sets by dragging fields into rows, columns, and values
Data Validation
Data tab → Data Validation — restricts what can be typed into a cell, e.g. a dropdown list or a number range
Remove Duplicates
Data tab → Remove Duplicates — deletes rows that repeat across chosen columns
Text to Columns
Data tab → Text to Columns — splits one column of combined text into multiple columns by a delimiter or fixed width
Freeze Panes
View tab → Freeze Panes — keeps header rows/columns visible while scrolling through the rest of the sheet
Flash Fill
Detects a pattern from an example you type and auto-fills the rest of the column to match it
Group / Outline
Data tab → Group — collapses rows or columns into a collapsible outline, e.g. hiding detail behind a subtotal
Consolidate
Data tab → Consolidate — combines and summarizes values from multiple ranges or sheets into one
Go To Special
Home tab → Find & Select → Go To Special — selects only cells matching a type, e.g. blanks, formulas, or visible cells only
Slicer
A clickable filter button set for a Table or PivotTable, friendlier than the header dropdown for quick switching
Subtotal
Data tab → Subtotal — automatically inserts SUM (or other) summary rows whenever a chosen column's value changes
Power Query (Get & Transform)
Data tab → Get Data — imports and reshapes data from files, databases, or the web with repeatable, refreshable steps
General format
The default number format — no specific display rule applied
Number format
Displays a value with a chosen number of decimal places and an optional thousands separator
Currency format
Displays a value with a currency symbol and fixed decimal places
Percentage format
Displays a decimal value multiplied by 100 with a % sign
Date format
Displays a date serial number as a readable calendar date
Custom number format
A user-defined display pattern, e.g. showing 1000 as "1,000 units"
A1 (relative reference)
Both row and column shift when the formula is copied elsewhere
$A$1 (absolute reference)
Neither row nor column shifts when the formula is copied elsewhere
$A1 (mixed: column locked)
The column stays fixed but the row shifts when copied down or across
A$1 (mixed: row locked)
The row stays fixed but the column shifts when copied down or across
Named Range
A plain-English name assigned to a cell or range, usable in formulas instead of a cell reference
Format Painter
Copies formatting only (not content) from one cell or range to another
Merge & Center
Combines cells into one and centers the content — often discouraged since it breaks row/column selection and sorting
Wrap Text
Makes long cell content wrap onto multiple lines within the cell instead of overflowing
Cell Styles
Named, reusable bundles of formatting (font, fill, border) applied in one click
Conditional Formatting
Formatting rules that apply automatically based on a cell's value, e.g. highlighting duplicates or values above average

Worked examples with live previews, for the parts worth seeing in action.

Formatting & Cell Basics

Relative vs. Absolute References

=A1      relative — both column and row shift when copied
=$A1     column locked — row still shifts
=A$1     row locked — column still shifts
=$A$1    absolute — neither shifts, ever

Lock whichever part points at a single fixed source (a tax rate, a lookup table) before dragging a formula across it — $A$1 is the safe default when unsure.

The same formula, four ways — the $ locks whichever part should not shift when you drag-fill.

  • references
  • absolute
  • relative
  • beginner

Conditional Formatting Recipes

Duplicates:     Home → Conditional Formatting → Highlight Cells Rules → Duplicate Values
Above/below avg: Home → Conditional Formatting → Top/Bottom Rules → Above Average

Both apply live, with no formula to write — edit or remove either one later from Conditional Formatting → Manage Rules.

The two most-used rules: highlight duplicates, and highlight above/below average.

  • conditional formatting
  • highlighting
  • data quality

Essential Formulas

VLOOKUP / XLOOKUP

=VLOOKUP("P103", A2:B5, 2, FALSE)
=XLOOKUP("P103", A2:A5, B2:B5)

Both return the price for product “P103” from a two-column table. VLOOKUP counts the return column from the left and needs FALSE for an exact match; XLOOKUP points straight at the columns to search and return, defaults to exact match, and works right-to-left too.

The classic and modern ways to look up a value in a table by ID.

  • vlookup
  • xlookup
  • lookup
  • formulas

IF, Nested IF, and IFERROR

=IF(A2>=60, "Pass", "Fail")
=IFS(A2>=90, "A", A2>=60, "Pass", TRUE, "Fail")
=IFERROR(VLOOKUP(A2, PriceList, 2, FALSE), "Not found")

IFS replaces a nested IF once you’re past two conditions — no parentheses to track. IFERROR runs the formula normally and only substitutes the fallback if it would have errored.

Branch on a condition, chain a second one, and catch the error case.

  • if
  • ifs
  • iferror
  • logic
  • formulas

Data Tools

Tables (Ctrl+T) and PivotTables

Table:       select the range → Ctrl+T → confirm "My table has headers" → OK
PivotTable:  click inside the data → Insert → PivotTable → OK
             drag a field into Rows, another into Values

A Table auto-expands formulas into new rows and lets them reference columns by name (=[@Price]*[@Qty]). A PivotTable is a snapshot — refresh it (right-click → Refresh) after the source data changes.

Turn a range into a self-maintaining Table, then summarize it without writing a formula.

  • table
  • pivottable
  • data tools
  • beginner
  • ctrl+t

Dropdown List (Data Validation)

1. Select the cell(s) that should show the dropdown.
2. Data tab → Data Validation → Allow: List.
3. Source: type values separated by commas, or point at a range.
4. Check "In-cell dropdown", click OK.

Point the source at a range instead of typing values directly if the list might change later — one column to edit instead of hunting down every cell.

Restrict a cell to a fixed set of choices instead of letting entries drift into yes/Yes/y.

  • data validation
  • dropdown
  • data entry
  • beginner
webcheet

↑↓ navigate↵ openesc close