
To delete a character to the right, use Delete in Windows, and function + delete on a Mac.įinally, to add a new line in a cell, use Alt + Enter in Windows, and Control + Option + Return on a Mac. To delete a character to the left, use backspace in Windows, and the Delete key on a mac. To move through text one character at a time, use only the right and left arrow keys.īy adding shift, you can precisely select one or more characters. To step through a cell word by word, use the control key with the right or left arrow keys.Īs before, you can combine this with the shift key to select individual words and references. You can combine these shortcuts with shift to select everything in the cell from either direction: If cell.Value cell.Offset(1, 0).Value And Not IsEmpty(cell) If the condition is met the cells are merged and centered vertically. It also checks if the cell is not empty, otherwise, the loop would go to the last cell inside the worksheets and the program would crash. To move to the end again, use the End key in Windows, and function + right arrow on a mac. This line checks whether the cell in the next row is equal to the current cell. Excel Shortcuts for Merge the Cells in Windows. To move the cursor to the beginning of the cell, use the Home key on Windows, and function + left arrow on a mac. Try the following shortcuts to merge the cells in your workbook. When first enter edit mode, you're cursor will sit just after the last character in the cell. You can also use the Undo command when editing a cell. However, pressing F2 (or Control U on a Mac) takes me directly to the formula bar.įor the rest of this video, I'll leave that setting, since the shortcuts we're going to look at will be easier to see in the formula bar.Īt any time you've started editing a cell, you can cancel the edit by clicking the Escape key. With this change, I can no longer double-click to edit a cell. On a Mac, go to preferences by using Command + comma, then click "Edit", and uncheck checkbox called "Double clicking allows editing directly in a cell"

Then go to Advanced, and uncheck the checkbox labeled "Allow editing directly in cells" In Windows, use Alt F to access the File menu, then T to access options. Now click the Merge Cells button that you can see highlighted in blue within Figure 3. If you want to always edit cells in the formula bar, even when you use a keyboard shortcut to edit a cell, you'll need to change a setting. Let us start with merging cells in a table: Select at least two (or more) table cells and access the Table Tools Layout contextual tab of the Ribbon as shown highlighted in red within Figure 3.

You can also double-click a cell to edit. With Excel's default settings, this will put your cursor directly in the cell, ready to edit. In this video, we'll look at shortcuts for editing cells.įirst, the keyboard shortcut for editing a cell is F2 on Windows, and Control + U on a Mac.
