Cellwise Start free

Excel shortcuts

Excel function keys: what F1 to F12 do

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.

F1

ShortcutWindowsMac
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.ShiftF11 or AltShiftF1ShiftF11
Create a chart of the current data on the same sheetNot in Microsoft's Mac list.AltF1—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).F1F1 or Command/
Show or hide the ribbonCtrlF1CommandOptionR
Full screenCtrlShiftF1CommandControlF

F2

ShortcutWindowsMac
Edit the active cell How to: Absolute reference shortcut in Excel (F4 and Cmd+T) The cursor goes to the end of the contents. While you edit a formula, F2 switches arrow keys between moving the cursor and pointing at cells.F2F2 or ControlU
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.CtrlF2—No Mac shortcut in Microsoft's list
Insert or edit a note How to: Shortcut to insert a comment or note in Excel ShiftF2ShiftF2
Insert a threaded comment, or reply to one How to: Shortcut to insert a comment or note in Excel CtrlShiftF2CommandShiftF2 or CommandReturn
Open the Save dialogNot in Microsoft's Windows list.—No Windows shortcut in Microsoft's listOptionF2

F3

ShortcutWindowsMac
Insert a function (Insert Function dialog, Formula Builder on a Mac) How to: Insert function shortcut in Excel ShiftF3ShiftF3
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 nameAltM, M, DControlL or CommandF3
Create names from the labels in a selectionCtrlShiftF3CommandShiftF3

F4

ShortcutWindowsMac
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.F4 or CtrlY—No Mac shortcut in Microsoft's list
Close the workbook windowIn a browser, Ctrl+W closes the browser tab.CtrlW or CtrlF4CommandW or ControlW
Switch a reference between A1, $A$1, A$1 and $A1 How to: Absolute reference shortcut in Excel (F4 and Cmd+T) Put the cursor on a reference while editing a formula. Outside a formula, F4 on Windows repeats your last action.F4CommandT or F4
Quit ExcelAltF4CommandQ
Close a window or dialogWindows: Ctrl+F4 closes the workbook window (see Close).—No Windows shortcut in Microsoft's listCommandF4

F5

ShortcutWindowsMac
Find How to: Find and replace shortcut in Excel On a Mac, Cmd+F jumps to the search box instead of opening the Find dialog.CtrlFWeb CtrlF or ShiftF3ControlF or ShiftF5
Go to a cell or range (Go To) How to: Shortcut to select visible cells only in Excel Type a reference such as B14 or a range name, then press Enter.CtrlG or F5ControlG or F5
Move to the Search Sheet boxNot in Microsoft's Windows list.—No Windows shortcut in Microsoft's listControlF5
Refresh all data connections in the workbookNot in Microsoft's Mac list. Excel for the web: Alt+F5 refreshes external data.CtrlAltF5—No Mac shortcut in Microsoft's list
Restore the window sizeNot in Microsoft's Mac list.CtrlF5—No Mac shortcut in Microsoft's list

F6

ShortcutWindowsMac
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.F6Web CtrlF6F6 or ShiftF6
Move between the panes in reverse orderShiftF6Web CtrlShiftF6ShiftF6
Switch to the next Excel windowNot in Microsoft's Mac list.CtrlF6 or CtrlTab—No Mac shortcut in Microsoft's list
Switch between all Excel windowsNot in Microsoft's Mac list.CtrlShiftF6 or CtrlShiftTab—No Mac shortcut in Microsoft's list
Copilot: move focus between the grid and the Copilot paneF6Web F6 or ShiftF6ShiftF6

F7

ShortcutWindowsMac
Check spellingF7F7
Open the thesaurusNot in Microsoft's Windows list.—No Windows shortcut in Microsoft's listShiftF7 or ControlOptionCommandR
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.CtrlF7—No Mac shortcut in Microsoft's list

F8

ShortcutWindowsMac
Turn extend mode on or off (arrows extend the selection)On a Mac laptop you may need Fn+F8.F8F8
Add another range to the selectionPress it, move to the next range with the arrow keys, then select it with Shift+Arrow.ShiftF8ShiftF8
Resize the workbook window (when not maximized)Not in Microsoft's Mac list.CtrlF8—No Mac shortcut in Microsoft's list
Open the Macro dialog (run, edit or delete macros)AltF8OptionF8

F9

ShortcutWindowsMac
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.F9F9 or Command=
Calculate the active sheet How to: Recalculate shortcuts in Excel (F9) ShiftF9ShiftF9
Calculate everything, changed or not How to: Recalculate shortcuts in Excel (F9) CtrlAltF9ControlOptionF9
Recheck dependent formulas, then calculate every cell How to: Recalculate shortcuts in Excel (F9) CtrlAltShiftF9Web CtrlShiftAltF9ControlOptionShiftF9
Minimize the workbook windowCtrlF9ControlF9

F10

ShortcutWindowsMac
Open the right-click (context) menuShiftF10 or Menu keyShiftF10
Open the menu of an Error Checking buttonNot in Microsoft's Mac list.AltShiftF10—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 listOptionShiftF10
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.Alt or F10Web AltWindows key—No Mac shortcut in Microsoft's list
Show the tooltip of the ribbon item in focusCtrlShiftF10—No Mac shortcut in Microsoft's list
Maximize or restore the workbook windowCtrlF10ControlF10 or CommandF10

F11

ShortcutWindowsMac
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.ShiftF11 or AltShiftF1ShiftF11
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.F11F11
Open the Visual Basic editorAltF11OptionF11
Insert an Excel 4.0 macro sheetNot in Microsoft's Windows list.—No Windows shortcut in Microsoft's listCommandF11

F12

ShortcutWindowsMac
Open a workbookIn a browser, Ctrl+O belongs to the browser, not Excel for the web.CtrlOCommandO or ControlO or CommandF12
Open the Power Query EditorAltF12OptionF12
Save AsF12Web AltF2CommandShiftS or F12

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 (FnF4), or turn on the laptop's function-key lock. On many Windows laptops that lock is FnEsc, 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 FnF12 changes the volume.

macOS shortcuts that get there first

Microsoft marks a few Mac shortcuts as clashing with macOS: ShiftF11 and F11 with Show Desktop, and CtrlSpace 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, CommandT and F4 both switch the reference, but CommandT 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, CtrlO opens a file, CtrlW closes the tab, and F6 moves around the browser. Excel for the web uses CtrlF6 instead of F6, CtrlAltPage Down for the next sheet in Chrome, and AltWindows 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.

Related guides

In the glossary: Calculation mode