RECORDS / TERMS / THE NEXT APPOINTMENT

Google Sheets Shortcut for Merging Cells

Learn the keyboard shortcut for merging cells in Google Sheets, how to unmerge them, and quick steps to format header cells for a clean comparison table layout.

8 min read1 viewsGoogle Sheets Shortcut for Merging Cells
— · 0 votes
Contents
  1. The Merge Cells Shortcut
  2. Unmerging Cells in Google Sheets
  3. Merge Options in the Toolbar
  4. Formatting Header Cells for a Comparison Table
  5. Creating a Header That Spans Columns
  6. Merging Cells Without Losing Data
  7. Keyboard Shortcuts and Menu Commands
  8. Practical Steps for a Comparison Table Layout
  9. Merging Cells Questions
  10. What is the keyboard shortcut to merge cells in Google Sheets?
  11. How do I unmerge cells in Google Sheets?
  12. Can I merge cells without losing data in Google Sheets?
  13. How do I merge cells horizontally in Google Sheets?
  14. What is the shortcut for merging cells on a Mac?
  15. How do I make a header span multiple columns in Google Sheets?

Merging cells in Google Sheets makes a header span across columns for a clean comparison table layout. You can merge selected cells with a quick keyboard shortcut. This article shows the shortcut, how to unmerge cells, and simple steps for cell formatting.

  • The keyboard shortcut for merging cells in Google Sheets is Alt+Shift+5 on Windows or Option+Shift+5 on Mac.
  • Merged header cells help label groups of columns in a comparison table.
  • You can unmerge cells with the same shortcut or from the Format menu.
  • Use the merge options in the toolbar for merge all, merge horizontally, and merge vertically.

The Merge Cells Shortcut

Google Sheets has a built-in keyboard shortcut for merging selected cells. Press Alt+Shift+5 on Windows or Option+Shift+5 on Mac to merge the highlighted cells. The shortcut works when you select two or more adjacent cells. It merges them into one larger cell.

The shortcut is the fastest way to merge cells without using the mouse. The merged cell will keep only the content from the top-left cell of the selection. Any other content in the selected cells is removed. A warning does not appear for this action.

The same shortcut also unmerges a merged cell if that merged cell is selected. This makes it easy to toggle between merged and unmerged states. The shortcut works on a single merged cell or a range that includes merged cells. It is a quick tool for adjusting your table layout.

Unmerging Cells in Google Sheets

Unmerging cells in Google Sheets returns a merged cell to its original grid of separate cells. Select the merged cell and press the same keyboard shortcut: Alt+Shift+5 on Windows or Option+Shift+5 on Mac. The merged cell splits back into individual cells.

Another way to unmerge cells is to use the Format menu. Click Format in the top menu, choose Merge cells, and then select Unmerge. This method gives you a visual option when you prefer using the menu. The keyboard shortcut is faster for repeated tasks.

Unmerging does not restore any content that was lost during the original merge. The top-left cell's content remains in the upper-left cell of the unmerged range. Other cells in the unmerged range will be empty. Keep this in mind before you merge cells that contain data.

Merge Options in the Toolbar

The toolbar in Google Sheets offers different merge options beyond the basic merge all. Click the Merge cells icon in the toolbar to see a dropdown with three choices. 'Merge all' combines all selected cells into one cell. 'Merge horizontally' creates one cell per row in the selection.

'Merge vertically' creates one cell per column in the selection. These options help you build a header that spans multiple columns or rows. For a comparison table layout, merging horizontally is often what you need. It lets a single header label cover several columns below it.

Each option keeps only the top-left cell's content for each merged area. The toolbar icon changes appearance based on your last merge choice. You can also access these options from the Format menu under Merge cells. The keyboard shortcut always performs 'merge all' on the selected range.

Formatting Header Cells for a Comparison Table

Proper cell formatting makes a comparison table easy to read. Start by selecting the range of cells you want to merge for the header. Press the merge shortcut to combine them into one cell. Then type the header text into the merged cell.

Align the header text to the center for a clean look. Use the alignment buttons in the toolbar to center horizontally and vertically. Bold the header text and maybe increase the font size to make it stand out. A background fill color can also visually separate the header row from the data.

A comparison table layout often has multiple header groups. For example, you might merge cells for 'Vehicle A' and 'Vehicle B' above their respective columns. Repeat the merge and formatting steps for each header group. This creates a professional structure for comparing service notes or costs.

Creating a Header That Spans Columns

A common need in Google Sheets is a header that spans multiple columns. Select the cells across the columns you want to cover. Use the merge horizontally option from the toolbar or the merge all shortcut. The merged cell then acts as one wide header.

For a simple two-column table with a single title, select both cells in the first row. Merge them with the shortcut. Type your title into the merged cell. It will appear centered across the two columns below by default if you use the toolbar merge icon.

If the table has more complex groupings, merge cells above each group. For instance, merge three cells to label a group of three columns. Use the same process for the next group of columns. This keeps the header row uncluttered and understandable.

Merging Cells Without Losing Data

When you merge cells, Google Sheets keeps only the data from the upper-left cell. Data in the other selected cells is discarded. You cannot undo this data loss after the merge command is complete. Plan your merge actions carefully.

To avoid losing data, move important content before merging. Copy the data from cells that would be lost into a safe location. Or consolidate the data into the top-left cell manually by typing or using a formula. Then perform the merge.

Another approach is to use a formula that concatenates text from multiple cells into one cell. For example, use =A1&" "&B1 to join text from cells A1 and B1. Put that formula in the top-left cell of the merge range. Then merge the cells; the formula result remains.

Keyboard Shortcuts and Menu Commands

Google Sheets offers both keyboard shortcuts and menu commands for merging cells. The shortcut for merging is Alt+Shift+5 on Windows and Option+Shift+5 on Mac. The menu command is under Format > Merge cells. The toolbar icon provides the same options.

Using the keyboard shortcut is fastest when your hands are already on the keyboard. It works on any selected range of cells. If you need a specific merge type like horizontal or vertical, use the toolbar or menu. The shortcut always merges all cells into one.

There is no separate built-in shortcut for merge horizontally or vertically. You can access those options quickly by using the toolbar after selecting cells. Custom shortcuts can be created with Google Sheets' macro feature. But the default shortcuts cover the most common merge action.

Practical Steps for a Comparison Table Layout

Setting up a comparison table often starts with merging header cells. Suppose you track service notes for two vehicles. Put 'Vehicle A' in column B and 'Vehicle B' in column C. Merge cells above them for an overall title like 'Vehicle Costs'.

Select the cells from B1 to C1, then press the merge shortcut. Type 'Vehicle Costs' into the merged cell. Format it with bold, larger font, and center alignment. Next, create sub-headers for dates and costs under each vehicle.

For sub-headers, you might merge cells for date ranges. For example, merge B2:B3 for 'Dates' and C2:C3 for 'Costs'. Use the merge vertically option for these. The result is a clear table where every column group is labeled. Adjust merges as your data grows by unmerging and re-merging.

Merging Cells Questions

What is the keyboard shortcut to merge cells in Google Sheets?

The keyboard shortcut to merge cells in Google Sheets is Alt+Shift+5 on Windows or Option+Shift+5 on Mac. Select the cells you want to merge and then press the shortcut. This merges the selected cells into one cell immediately.

How do I unmerge cells in Google Sheets?

To unmerge cells in Google Sheets, select the merged cell and press Alt+Shift+5 on Windows or Option+Shift+5 on Mac. You can also right-click and choose Unmerge cells, or go to Format, Merge cells, and select Unmerge. The merged cell splits back into individual cells.

Can I merge cells without losing data in Google Sheets?

Merging cells in Google Sheets will discard data from all cells except the top-left cell. To avoid losing data, move or copy the data before merging. You can also combine data with a formula into the top-left cell and then merge.

How do I merge cells horizontally in Google Sheets?

To merge cells horizontally in Google Sheets, select the cells across a row, click the Merge cells icon in the toolbar, and choose Merge horizontally. This merges each row's selected cells into one cell per row. The top-left cell of each row keeps its content.

What is the shortcut for merging cells on a Mac?

The shortcut for merging cells on a Mac is Option+Shift+5. Select the cells you want to merge and press Option+Shift+5. This works the same as Alt+Shift+5 on Windows to merge the selected cells.

How do I make a header span multiple columns in Google Sheets?

To make a header span multiple columns, select the cells in the row that you want the header to cover. Then use the merge shortcut (Alt+Shift+5 or Option+Shift+5) or the merge horizontally option from the toolbar. Type your header text into the merged cell and format it as desired.

Read next

Latest articles