Excel keyboard shortcuts
The complete Excel keyboard shortcuts list: all the MS Excel shortcut keys from Microsoft's official list for Microsoft 365, with Windows and Mac keys side by side.
Most useful Excel keyboard shortcuts
The best Excel keyboard shortcuts beyond copy and paste: the ones that save the most time in everyday spreadsheets. Editing cells and switching worksheets have their own sections: enter and edit a cell, switch worksheets. To keep them by the keyboard, print the Excel keyboard shortcuts cheat sheet, a printable page for Windows or Mac.
- Format Cells dialogMacCmd1WindowsCtrl1
- AutoSumMacShiftCmdTWindowsAlt=
- Fill downMacCmdDWindowsCtrlD
- Jump to the edge of the dataMacCtrl→WindowsCtrl→
- Select the data around a cellMacCtrlShift8WindowsCtrlShift8
- Select the columnMacCtrlSpaceWindowsCtrlSpace
- Select the rowMacShiftSpaceWindowsShiftSpace
- Turn filters on or offMacShiftCmdFWindowsCtrlShiftL
- Create a tableMacCmdTWindowsCtrlTorCtrlL
- Absolute or relative reference ($)MacCmdTorF4WindowsF4
- Paste SpecialMacCtrlCmdVWindowsCtrlAltV
- Today's dateMacCtrl;WindowsCtrl;
Frequently used
29 shortcutsNavigate
16 shortcuts| Action | Mac | Windows |
|---|---|---|
| Move to the previous cell in a worksheet or the previous option in a dialog | ShiftTab | ShiftTab |
| Move one cell to the right | Tab | Tab |
| Move to the edge of the current data region | Ctrl→ | Ctrl→ |
| Move to the last cell on a worksheet (lowest used row, rightmost used column) | CtrlEnd | CtrlEnd |
| Move to the beginning of a worksheet | CtrlHome | CtrlHome |
| Move to the beginning of the row | Home | Home |
| Move one screen down | PageDown | PageDown |
| Move one screen up | PageUp | PageUp |
| Move one screen to the right | OptionPageDown | AltPageDown |
| Move one screen to the left | OptionPageUp | AltPageUp |
| Move to the next sheet in a workbook | CtrlPageDownorOption→ | CtrlPageDown |
| Move to the previous sheet in a workbook | CtrlPageUporOption← | CtrlPageUp |
| Open the Go To dialog | CtrlGorF5 | CtrlGorF5 |
| Switch between the worksheet, ribbon, task pane and zoom controls | F6 | F6 |
| Open the list of validation choices on a cell that has one | Option↓ | Alt↓ |
| Move to the Name Box | — | AltF3 |
Select
17 shortcutsFormat cells
16 shortcutsEnter data and formulas
24 shortcutsData and worksheets
9 shortcuts| Action | Mac | Windows |
|---|---|---|
| Turn AutoFilter on or off for the selected range | ShiftCmdF | CtrlShiftL |
| Open the Quick Analysis options for selected cells | — | CtrlQ |
| Insert a new worksheet | ShiftF11 | ShiftF11 |
| Create a chart of the data in the current range in a separate chart sheet | F11 | F11 |
| Create an embedded chart of the data in the current range | — | AltF1 |
| Freeze panes | — | AltW,F,F |
| Open the Macro dialog | OptionF8 | AltF8 |
| Open the Visual Basic for Applications editor | OptionF11 | AltF11 |
| Select all objects on a worksheet when an object is selected | ShiftCmdSpace | CtrlShiftSpace |
Workbooks and windows
8 shortcuts| Action | Mac | Windows |
|---|---|---|
| Switch to the next workbook window | Cmd` | CtrlF6orCtrlTab |
| Switch to the previous workbook window | ShiftCmd` | CtrlShiftF6orCtrlShiftTab |
| Minimize the workbook window | CmdM | CtrlF9 |
| Maximize or restore the workbook window | — | CtrlF10 |
| Toggle full screen | CtrlCmdF | CtrlShiftF1 |
| Display the print preview area on the Print tab | — | CtrlF2 |
| Go to the Home tab on the ribbon | — | AltH |
| Open the Help pane | — | F1 |
No shortcuts match. Try fewer words, the key names only, or search every app.
Show the key map: which keys Excel uses mostDarker orange = used by more shortcuts
How to use keyboard shortcuts in Excel
Excel has two kinds of shortcut: key combinations you press together, and ribbon sequences you press one key at a time.
- Key combinations
- Hold the modifier keys (Ctrl, Shift or Alt; Cmd or Option on a Mac), press the last key, then let go. For Ctrl+Shift+L, hold Ctrl and Shift and tap L.
- Ribbon sequences (Alt keys)
- Shortcuts such as Alt+H A C are pressed one after another: press and release Alt, then H, then A, then C. You don't hold them down.
- Show keyboard shortcuts in Excel
- Press and release Alt and Excel shows a letter (a Key Tip) on every ribbon tab and button; press the letters to go further. Hovering over a ribbon button also shows its shortcut, if it has one.
- Are shortcuts turned on?
- Keyboard shortcuts are always on in Excel; there is no setting to enable them. If Key Tips don't appear, tap Alt rather than holding it. If F-key shortcuts do nothing on a laptop, press Fn with them.
- On a Mac
- Most shortcuts use Cmd where Windows uses Ctrl, and ribbon Key Tips are not available. F-key shortcuts need Fn unless the Mac is set to use standard function keys. See Excel for Mac keyboard shortcuts for the Mac keys only.
Enter and edit a cell with the keyboard
To enter a cell with the keyboard and edit what is already in it, select the cell and press F2 (Ctrl+U on a Mac). Typing without F2 replaces the contents instead.
- Edit the active cellMacCtrlUorF2WindowsF2
- New line inside the cellMacCtrlOptionEnterorOptionCmdEnterWindowsAltEnter
- Fill the selected cells with the entryMacCtrlEnterWindowsCtrlEnter
- Finish and move upMacShiftEnterWindowsShiftEnter
- Cancel the entryMacEscWindowsEsc
- Copy the formula from the cell aboveMacCtrl'WindowsCtrl'
- Finish an entry
- Enter finishes and moves down, Tab finishes and moves right, and Shift+Tab moves left.
- Inside a formula
- While editing, F4 cycles a reference through $A$1, A$1, $A1 and A1, and the arrow keys move the cursor instead of the selection.
How to switch worksheets in Excel with keyboard shortcuts
Press Ctrl+PageDown to go to the next worksheet and Ctrl+PageUp to go back. On a Mac without Page Up and Page Down keys, use Option+Right and Option+Left.
- Next worksheetMacCtrlPageDownorOption→WindowsCtrlPageDown
- Previous worksheetMacCtrlPageUporOption←WindowsCtrlPageUp
- Insert a new worksheetMacShiftF11WindowsShiftF11
- Next workbook windowMacCmd`WindowsCtrlF6orCtrlTab
- Previous workbook windowMacShiftCmd`WindowsCtrlShiftF6orCtrlShiftTab
- Select several sheets
- Hold Shift as well (Ctrl+Shift+PageDown) to add the next sheet to the selection, so an edit applies to all of them.
- Rename the sheet
- Press Alt, H, O, R one after another, type the new name and press Enter.
Python in Excel keyboard shortcuts
Python in Excel runs Python code in a cell, in Excel for Microsoft 365 where the feature is available. These keys come from Microsoft's Python in Excel documentation, not the main list above.
- Start a Python formula
- Press Ctrl+Alt+Shift+P in a cell, or type =PY( , to switch the cell to Python mode.
- Run it
- Press Ctrl+Enter to commit the Python formula. Plain Enter adds a new line to the code instead.
- Change the output
- Ctrl+Alt+Shift+M switches the result between a Python object and Excel values.
How to change, customize and assign keyboard shortcuts in Excel
Excel for Windows has no editor for reassigning its built-in shortcuts, but you can add and set your own in these ways.
- Add a shortcut with the Quick Access Toolbar
- Right-click any ribbon button and choose Add to Quick Access Toolbar. Press Alt and the button shows a number: Alt+1, Alt+2 and so on now run it.
- Assign a custom shortcut to a macro
- Go to View > Macros > View Macros, select a macro, click Options and type a letter in the Shortcut key box: Ctrl plus that letter (Ctrl+Shift with a capital) runs it. Save it in the Personal Macro Workbook to use it in every workbook.
- Change a shortcut on Windows
- To remap one of Excel's own shortcuts, use Microsoft PowerToys Keyboard Manager and set EXCEL as the target app. More in change shortcuts in Windows.
- Set keyboard shortcuts on a Mac
- Use System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts, choose Microsoft Excel and type the menu command exactly as it appears. More in change shortcuts on a Mac.
- Watch for clashes
- A macro shortcut replaces Excel's own shortcut on the same keys while that workbook is open. Ctrl+Shift with a letter is the safest choice.
Excel keyboard shortcuts not working?
If a shortcut does nothing, check these. Most problems come from Excel being in edit mode, a lock key, or another program catching the keys.
- Still editing a cell
- Many shortcuts are ignored while you are typing in a cell. Press Enter or Esc first; the status bar shows Edit or Enter while you are in a cell.
- Scroll Lock
- With Scroll Lock on, the arrow keys scroll the sheet instead of moving the selection. The status bar shows Scroll Lock; press the key (or Fn with it) to turn it off.
- Function keys
- On laptops, F2, F4 and other F-key shortcuts may need Fn, or Fn Lock turned on.
- Ctrl+Shift+0 doesn't unhide columns
- Windows uses Ctrl+Shift to switch keyboard layouts. In Settings > Time & language > Typing > Advanced keyboard settings > Input language hot keys, set it to Not assigned.
- Macros and add-ins
- A macro or add-in can take over a shortcut. Start Excel in Safe Mode (hold Ctrl while opening it) to test without them.
- Sticky Keys and Filter Keys
- These change how modifier keys are read; turn them off in your system's accessibility settings.
- In Excel for the web
- The browser keeps some keys for itself, such as F1 and Ctrl+O. In Excel for the web, go to Help > Keyboard Shortcuts and turn on Override browser shortcuts. Ribbon Key Tips there start with Alt+Windows logo key instead of Alt.
Excel keyboard shortcuts: questions
- Do Excel keyboard shortcuts work in Google Sheets?
- Many do, and Google Sheets has a setting that accepts more of Excel's keys: see how to use Excel shortcuts in Google Sheets.
- Are Excel keyboard shortcuts the same in Excel 2016, 2019 and 2021?
- Almost all of them. Microsoft's list is written for Excel for Microsoft 365, but its core shortcuts have stayed the same for years. Shortcuts for newer features, such as Python in Excel, only work where the feature exists.
These are the default key bindings in Microsoft Excel Microsoft 365, as published by Microsoft. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.
Single-system lists: Excel for Mac keyboard shortcuts, Excel keyboard shortcuts for Windows.
Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.