Contents

# Shortcut Keys for Spreadsheets

Some of the shortcut keys may be assigned to your desktop system. Keys that are assigned to the desktop system are not available to LibreOfficeDev. Try to assign different keys either for LibreOfficeDev, in Tools - Customize - Keyboard, or in your desktop system.

## To fill a selected cell range with formula

To fill a selected cell range with the formula that you entered on the Input line, press Option Alt+Enter.

## To enter an array formula

To create a matrix in which all the cells contain the same information as what you entered on the Input line, press Shift+Command Ctrl+Enter. You cannot edit the components of the matrix.

## To select multiple cells

To select multiple cells in different areas of a sheet, hold down Command Ctrl and drag in the different areas.

## To select multiple sheets

To select multiple sheets in a spreadsheet, hold down Command Ctrl, and then click the name tabs at the lower edge of the workspace. To select only one sheet in a selection, hold down Shift, and then click the name tab of the sheet.

## To insert a manual break

To insert a manual line break in a cell, click in the cell, and then press Command Ctrl+Enter.

## To delete contents

To delete the contents of selected cells, press Backspace. This opens the Delete Contents dialog, where you choose which contents of the cell you want to delete. To delete the contents of selected cells without a dialog, press the Delete key.

## To cut contents without removing the source cells format

To cut contents without removing the source cells format, press Command Ctrl + Shift + X.

## Moving Cursor

Effect | Shortcut Keys
--- | ---
Moves the cursor to the first cell in the sheet (A1). | Command Ctrl+Home
Moves the cursor to the last cell on the sheet that contains data. | Command Ctrl+End
Moves the cursor to the first cell of the current row. | Home
Moves the cursor to the last column that contains data in any row. | End
Moves the cursor leftward to the start and end of cell blocks with data. If the cell to the left of the cursor is empty or the cell with the cursor is empty, the cursor moves leftward in the current row until it reaches the next cell with contents. If all cells in the same row to the left of the cursor are empty, the cursor moves to the first cell in the row. | Command Ctrl+Left Arrow
Moves the cursor rightward to the start and end of cell blocks with data. If the cell to the right of the cursor is empty or the cell with the cursor is empty, the cursor moves rightward in the current row until it reaches the next cell with contents. If all cells in the same row to the right of the cursor are empty, the cursor moves to the last cell in the row. | Command Ctrl+Right Arrow
Moves the cursor upward to the start and end of cell blocks with data. If the cell above the cursor is empty or the cell with the cursor is empty, the cursor moves upward in the current column until it reaches the next cell with contents. If all cells in the same column above the cursor are empty, the cursor moves to the first cell in the column. | Command Ctrl+Up Arrow
Moves the cursor downward to the start and end of cell blocks with data. If the cell below the cursor is empty or the cell with the cursor is empty, the cursor moves downward in the current column until it reaches the next cell with contents. If all cells in the same column below the cursor are empty, the cursor moves to the last cell in the column. | Command Ctrl+Down Arrow
Moves one sheet to the left. In the print preview: Moves to the previous print page. | Command Ctrl+Page Up
Moves one sheet to the right. In the print preview: Moves to the next print page. | Command Ctrl+Page Down
Moves one screen to the left. | Option Alt+Page Up
Moves one screen page to the right. | Option Alt+Page Down
Moves the cursor to the Input line where you can enter a formula for the current cell. | Shift+Command Ctrl+F2
Moves the cursor from the Input line to the Name Box. You can also use Shift+Command Ctrl+T. | Shift+Command Ctrl+F5

## Selection

Effect | Shortcut Keys
--- | ---
Selects cells from the current cell to the first cell of the current row. | Shift+Home
Selects all cells from the current cell to the last column that contains data in any row. | Shift+End
Selects cells from the current cell up to one page in the current column or extends the existing selection one page up. | Shift+Page Up
Selects cells from the current cell down to one page in the current column or extends the existing selection one page down. | Shift+Page Down
Selects the current row or extends the existing selection to all respective rows. | Shift+Space
Selects the current column or extends the existing selection to all respective columns. | Command Ctrl+Space
Selects all cells in the sheet. | Command Ctrl+Shift+Space
Selects all cells of the range created by the cursor movements using the Command Ctrl+Arrows key combinations. If used to select rows and columns together, a rectangular cell range is selected. If the cursor is in an empty cell, the selection will stretch from the current cell up to the first cell with value in the direction of the arrow pressed. | Command Ctrl+Shift+Arrow
Selects the data block that contains the cursor. A block is a contiguous cell range that contains data and is bounded by empty row and columns. Where (*) is the multiplication sign on the numeric key pad | Command Ctrl+ * Command Ctrl+ A
Selects the matrix formula range that contains the cursor. Where (/) is the division sign on the numeric key pad | Command Ctrl+ /
Delete cells (as in menu Edit - Delete Cells) | Command Ctrl+Minus key
Moves the cursor down one cell in a selected range. To specify the direction that the cursor moves, choose LibreOfficeDev - Preferences Tools - Options - LibreOfficeDev Calc - General and change the option in Press Enter to move selection. | Enter (in a selected range)
If cell contents have just been copied to the clipboard and no additional editing has been done in the current file, then pressing Enter will paste clipboard contents to the current cursor position. | Enter (after copying cell contents)
If the clipboard contains cell contents and no editing has been done in the file, then Shift+Enter has the same behavior as Enter and pastes clipboard contents to the current cursor position. If no cells are selected, Shift+Enter moves the cursor to the opposite direction defined in the option Press Enter to move selection found in LibreOfficeDev - Preferences Tools - Options - LibreOfficeDev Calc - General. If a range of cells is selected, Shift+Enter moves the cursor inside the current selection to the opposite direction defined in the option Press Enter to move selection. | Shift+Enter
Turns additional selection mode on or off. In this mode, you can use the arrow keys to extend the selection. You can also click in another cell to extend the selection. | F8

## Open, display or hide

Effect | Shortcut Keys
--- | ---
Displays the comment that is attached to the current cell | Command Ctrl+F1
Opens the Define Names dialog. | Command Ctrl+F3
Opens the Function Wizard. | Command Ctrl+F2
Shows or Hides the Database explorer. | Shift+Command Ctrl+F4
Shows or hides the Navigator. | F5
Traces dependents. | Shift+F5
Traces precedents. | Shift+F9
Increases the height of current row (only in OpenOffice.org legacy compatibility mode). | Option Alt+Down Arrow
Decreases the height of current row (only in OpenOffice.org legacy compatibility mode). | Option Alt+Up Arrow
Increases the width of the current column. | Option Alt+Right Arrow
Decreases the width of the current column. | Option Alt+Left Arrow
Optimizes the column width or row height based on the current cell. | Option Alt+Shift+Arrow Key
Opens the Styles window where you can apply a formatting style to the contents of the cell or to the current sheet. | Command+T F11
Displays or hides the formulas instead of the values in all cells. | Command Ctrl+ ` (see note below this table)

The ` key is located next to the "1" key on most English keyboards. If your keyboard does not show this key, you can assign another key: Choose Tools - Customize, click the Keyboard tab. Select the "View" category and the "Show Formulas" function.

## Addition and Insertion

Effect | Shortcut Keys
--- | ---
Adds the previous sheet to the current selection of sheets. If all the sheets in a spreadsheet are selected, this shortcut key combination only selects the previous sheet. Makes the previous sheet the current sheet. | Shift+Command Ctrl+Page Up
Adds the next sheet to the current selection of sheets. If all the sheets in a spreadsheet are selected, this shortcut key combination only selects the next sheet. Makes the next sheet the current sheet. | Shift+Command Ctrl+Page Down
Insert cells (as in menu Insert - Cells) | Command Ctrl+Plus key

## Copying and Renaming Sheets

The sheet tabs used to navigate between sheets can be clicked in combination with keyboard keys to perform the following operations:

Effect | Shortcut Keys
--- | ---
Creates a copy of the sheet whose tab was clicked. The copied sheet is placed at the position where the mouse button was released. | Command Ctrl + Drag sheet tab
Makes the sheet name editable. Edit the sheet name and press Enter when finished. | Option Alt + Click sheet tab

## Other Keys Used in Spreadsheets

Effect | Shortcut Keys
--- | ---
With a cell selected, press F2 to open cell contents for editing. If the cell contains a formula, use arrow keys to navigate the sheet to easily enter range addresses into the formula. Press F2 again to enable the use of arrow keys to move the cursor in the formula text. Each additional use of the F2 shortcut switches between the two states previously described. Some dialog boxes have input fields with a Shrink button. Pressing F2 with the cursor inside such field causes the Shrink command to be executed. | F2
Rearranges the relative or absolute references (for example, A1, $A$1, $A1, A$1) in the input field. | F4
Checks spelling in the current sheet. | F7
Opens the Thesaurus if the current cell contains text. | Command Ctrl+F7
Highlights cells containing values. | Command Ctrl+F8
Recalculates changed formulas in the current sheet. | F9
Recalculates all formulas in all sheets. | Command Ctrl+Shift+F9
Updates the selected chart. | Command Ctrl+F9
Creates a document template. | Shift+F11
Updates the templates. | Shift+Command+Ctrl+F11
Groups the selected data range. | F12
Ungroups the selected data range. | Command Ctrl+F12

## Number Formatting Using Shortcut Keys

The following cell formats can be applied with the keyboard:

Effect | Shortcut Keys (not on the number pad)
--- | ---
Open Format Cells dialog | Command Ctrl+1
Two decimal places, thousands separator | Command Ctrl+Shift+1
Standard exponential format | Command Ctrl+Shift+2
Standard date format | Command Ctrl+Shift+3
Standard currency format | Command Ctrl+Shift+4
Standard percentage format (two decimal places) | Command Ctrl+Shift+5
Standard format | Command Ctrl+Shift+6

## Using the pivot table

The shortcut keys below are for the Pivot Table Layout dialog.

Effect | Shortcut Keys
--- | ---
Changes the focus by moving forwards through the areas and buttons of the dialog. | Tab
Changes the focus by moving backwards through the areas and buttons of the dialog. | Shift+Tab
Moves the focus up one item in the current dialog area. | Up Arrow
Moves the focus down one item in the current dialog area. | Down Arrow
Moves the focus one item to the left in the current dialog area. | Left Arrow
Moves the focus one item to the right in the current dialog area. | Right Arrow
Selects the first item in the current dialog area. | Home
Selects the last item in the current dialog area. | End
Copies or moves the current field into the "Row Fields" area. | Option Alt and the underlined character in the label "Row Fields"
Copies or moves the current field into the "Column Fields" area. | Option Alt and the underlined character in the label "Column Fields"
Copies or moves the current field into the "Data Fields" area. | Option Alt and the underlined character in the label "Data Fields"
Copies or moves the current field into the "Filters" area. | Option Alt and the underlined character in the label "Filters"
Moves the current field up one place. | Command Ctrl+Up Arrow
Moves the current field down one place. | Command Ctrl+Down Arrow
Moves the current field one place to the left. | Command Ctrl+Left Arrow
Moves the current field one place to the right. | Command Ctrl+Right Arrow
Moves the current field to the first place. | Command Ctrl+Home
Moves the current field to the last place. | Command Ctrl+End
Removes the current field from the area. | Delete

Related Topics

General Shortcut Keys in LibreOfficeDev

Shortcut Keys (LibreOfficeDev Calc Accessibility)

Shortcuts (LibreOfficeDev Accessibility)