Each function key does one thing alone and more with Ctrl, Shift, Alt (Option on a Mac) or Cmd. F2 (edit), F4 (references and repeat) and F9 (calculate) are the three to know. On laptops and Macs, the media keys get in the way first: see the gotchas below.
Checked against Microsoft's official lists on . Where Microsoft lists a key for one platform only, the other column says so instead of guessing.
Show keys for
F1
Shortcut
Windows
Mac
Insert a new sheetOn a Mac, Microsoft flags Shift+F11 as clashing with a macOS shortcut; turn that one off in System Settings > Keyboard > Keyboard Shortcuts.
Shift+F11orAlt+Shift+F1
Shift+F11
Create a chart of the current data on the same sheetNot in Microsoft's Mac list.
Alt+F1
—No Mac shortcut in Microsoft's list
Open Excel HelpIn a browser, F1 opens the browser's help unless you turn on Override browser shortcuts in Excel for the web (Help > Keyboard Shortcuts).
Edit the active cell in the formula bar How to: Edit cell shortcut in Excel (F2)→Not in Microsoft's Mac list. If you are already editing, it moves between the formula bar and the cell.
Paste a defined name into a formulaNot in Microsoft's Mac list. Works only when the workbook has names.
F3
—No Mac shortcut in Microsoft's list
Define a name
Alt+M, M, D
Control+LorCmdCommand+F3
Create names from the labels in a selection
Ctrl+Shift+F3
CmdCommand+Shift+F3
F4
Shortcut
Windows
Mac
Repeat the last action, such as inserting a row or applying a format How to: Undo, redo and repeat shortcuts in Excel→Microsoft's Mac list has no Repeat key: Cmd+Y is Redo there. Inside a formula, F4 switches $ signs instead.
F4orCtrl+Y
—No Mac shortcut in Microsoft's list
Close the workbook windowIn a browser, Ctrl+W closes the browser tab.
Move to the Search Sheet boxNot in Microsoft's Windows list.
—No Windows shortcut in Microsoft's list
Control+F5
Refresh all data connections in the workbookNot in Microsoft's Mac list. Excel for the web: Alt+F5 refreshes external data.
Ctrl+Alt+F5
—No Mac shortcut in Microsoft's list
Restore the window sizeNot in Microsoft's Mac list.
Ctrl+F5
—No Mac shortcut in Microsoft's list
F6
Shortcut
Windows
Mac
Move between the sheet, ribbon, task panes and status barIncludes the panes of a split sheet. In Excel for the web, use Ctrl+F6 because F6 belongs to the browser.
F6WebCtrl+F6
F6orShift+F6
Move between the panes in reverse order
Shift+F6WebCtrl+Shift+F6
Shift+F6
Switch to the next Excel windowNot in Microsoft's Mac list.
Ctrl+F6orCtrl+Tab
—No Mac shortcut in Microsoft's list
Switch between all Excel windowsNot in Microsoft's Mac list.
Ctrl+Shift+F6orCtrl+Shift+Tab
—No Mac shortcut in Microsoft's list
Copilot: move focus between the grid and the Copilot pane
F6WebF6orShift+F6
Shift+F6
F7
Shortcut
Windows
Mac
Check spelling
F7
F7
Open the thesaurusNot in Microsoft's Windows list.
—No Windows shortcut in Microsoft's list
Shift+F7orControl+Option+CmdCommand+R
Move the workbook window (when not maximized)Not in Microsoft's Mac list. Move it with the arrow keys, then press Enter, or Esc to cancel.
Ctrl+F7
—No Mac shortcut in Microsoft's list
F8
Shortcut
Windows
Mac
Turn extend mode on or off (arrows extend the selection)On a Mac laptop you may need Fn+F8.
F8
F8
Add another range to the selectionPress it, move to the next range with the arrow keys, then select it with Shift+Arrow.
Shift+F8
Shift+F8
Resize the workbook window (when not maximized)Not in Microsoft's Mac list.
Ctrl+F8
—No Mac shortcut in Microsoft's list
Open the Macro dialog (run, edit or delete macros)
Alt+F8
Option+F8
F9
Shortcut
Windows
Mac
Calculate all open workbooks How to: Recalculate shortcuts in Excel (F9)→Only needed when calculation is set to Manual. While editing a formula, F9 replaces the selected part with its value.
Open the menu of an Error Checking buttonNot in Microsoft's Mac list.
Alt+Shift+F10
—No Mac shortcut in Microsoft's list
Open the pop-up menu of an on-sheet button, such as the one after you pasteNot in Microsoft's Windows list.
—No Windows shortcut in Microsoft's list
Option+Shift+F10
Show the KeyTips (letters on every tab and button)Press and release, then type the letters that appear. Excel for the web on a Mac: Microsoft says to press Control+Option to start.
AltorF10WebAlt+Windows key
—No Mac shortcut in Microsoft's list
Show the tooltip of the ribbon item in focus
Ctrl+Shift+F10
—No Mac shortcut in Microsoft's list
Maximize or restore the workbook window
Ctrl+F10
Control+F10orCmdCommand+F10
F11
Shortcut
Windows
Mac
Insert a new sheetOn a Mac, Microsoft flags Shift+F11 as clashing with a macOS shortcut; turn that one off in System Settings > Keyboard > Keyboard Shortcuts.
Shift+F11orAlt+Shift+F1
Shift+F11
Create a chart of the current data on its own chart sheetOn a Mac, Microsoft flags F11 as clashing with the macOS Show Desktop shortcut.
F11
F11
Open the Visual Basic editor
Alt+F11
Option+F11
Insert an Excel 4.0 macro sheetNot in Microsoft's Windows list.
—No Windows shortcut in Microsoft's list
CmdCommand+F11
F12
Shortcut
Windows
Mac
Open a workbookIn a browser, Ctrl+O belongs to the browser, not Excel for the web.
Ctrl+O
CmdCommand+OorControl+OorCmdCommand+F12
Open the Power Query Editor
Alt+F12
Option+F12
Save As
F12WebAlt+F2
CmdCommand+Shift+SorF12
Why a shortcut sometimes does nothing
Laptop function keys
On many laptops the top row changes volume or brightness first, so F2 or F4 does nothing in Excel. Hold Fn with the key (Fn+F4), or turn on the laptop's function-key lock. On many Windows laptops that lock is Fn+Esc, but it varies by brand, so look for a small padlock or "Fn" icon on the Esc key.
Mac function keys
Excel for Mac uses the function keys for real commands, but macOS gives them to brightness, Mission Control and volume first. Press Fn with the key, or turn on "Use F1, F2, etc. keys as standard function keys" (System Settings > Keyboard > Keyboard Shortcuts > Function Keys on recent macOS). After that, the printed features need Fn instead, so Fn+F12 changes the volume.
macOS shortcuts that get there first
Microsoft marks a few Mac shortcuts as clashing with macOS: Shift+F11 and F11 with Show Desktop, and Ctrl+Space with switching input sources. Control with the arrow keys moves between Spaces and opens Mission Control by default too. If macOS reacts instead of Excel, open System Settings > Keyboard > Keyboard Shortcuts and turn the macOS one off.
F4 vs Cmd+T on a Mac
On Windows, F4 has two jobs: while you edit a formula it switches a reference between A1, $A$1, A$1 and $A1, and the rest of the time it repeats your last action. On a Mac, CmdCommand+T and F4 both switch the reference, but CmdCommand+T creates a table when you are not editing a formula. On a Mac laptop F4 may need Fn.
Excel for the web: the browser takes some keys
In a browser, a few keys belong to the browser first: F1 opens the browser's help, Ctrl+O opens a file, Ctrl+W closes the tab, and F6 moves around the browser. Excel for the web uses Ctrl+F6 instead of F6, Ctrl+Alt+Page Down for the next sheet in Chrome, and Alt+Windows key with a letter for ribbon tabs. To get desktop behavior back, go to Help > Keyboard Shortcuts and select Override browser shortcuts. If the file opened in Viewing mode, editing shortcuts do nothing until you switch to Editing.