
This is the menu which contains all formatting options including merging cells. Merging cells is also available from the Format Cells dialog box. Merge Cells with the Format Cells Dialog Box Press Alt H M C in sequence on your keyboard to use the Merge & Center command. There is an easy way to access the Home tab Merge and Center command using the Alt key.

The above example shows the result of merging cells B2:C4 which contains text data. If the cells contain data or formulas, then you will lose anything not in the upper left cell.Ī warning dialog box will appear telling you Merging cells only keeps the upper-left value and discards other values. Merged Cells Only Retain the Top Left Values Now you should be able to merge cells inside the sheet. If the sheet has been protected with a password, then you will need to enter it in order to unprotect the sheet. This can be done by going to the Review tab and clicking the Unprotect Sheet command. In order to access the Merge option, you will need to unprotect the worksheet. If most of the other commands in the ribbon are greyed out too, then it’s likely the sheet is protected. You are trying to merge cells in a protected sheet.Ĭells inside an Excel table can not be merged and there is no solution to enable this.You are trying to merge cells inside an Excel table.There are two reasons why the Merge & Center command can become unavailable. On occasion, you might find the Merge & Center command in Excel is greyed out and not available to use. For example the First and Last name columns are organized with a Name merged cell.

The above example shows two merged cells in B2:C2 and D2:F2 which indicates the category of information in the columns below. Any other values or formulas are discarded. When you merge cells, only the value or formula in the top left cell of the range is preserved and displayed in the resulting merged cell. Merging cells is a common technique used when a title or label is needed for a group of cells, rows or columns. The above example shows a single merged cell resulting from merging 6 cells in the range B2:C4. You can only merge contiguous cells that form a rectangular shape.

What is a Merged CellĪ merged cell in Excel combines two or more cells into one large cell. I’ll also tell you why you shouldn’t use them and a better alternative that will produce the same visual result. In this post, I’ll show you everything you need to know about merged cells including 8 ways to merge cells. The text is joined with a newline.Merged cells are one of the most popular options used by beginner spreadsheet users.īut they have a lot of drawbacks that make them a not so great option. TableCells have a merge() method that merges a cell with its preceding sibling cell. In fact, you can use an array of arrays to create a table using the Body.appendTable() method. You can think of a table as an array of arrays.

Tables in Google Documents are made of TableRow objects filled with TableCell objects. There's a pretty good explanation in the Apps Script Documentation, but the example deals with paragraphs.
