1. 程式人生 > 實用技巧 >如何在Microsoft Excel中合併和取消合併單元格

如何在Microsoft Excel中合併和取消合併單元格

Merging and unmerging cells in Microsoft Excel is a great way to keep your spreadsheet clean, well-organized, and easy to understand. The most common use is creating a header to identify the content across several columns, but no matter the reason, it can quickly be done in Excel.

在Microsoft Excel中合併和取消合併單元格是保持電子表格整潔,組織良好且易於理解的好方法。 最常見的用法是建立標題以跨幾列標識內容,但是無論出於何種原因,都可以在Excel中快速完成。

Note that Excel doesn’t allow you to split a cell the same way that you can in a table in Microsoft Word. You can unmerge cells that you have previously merged.

請注意,Excel不允許您像在Microsoft Word中的表格中一樣拆分單元格。 您可以取消合併以前合併的單元格。

合併單元格 (Merging Cells)

Merging cells combines two or more cells into a single cell. To do this, select the cells you want to merge.

合併單元將兩個或多個單元合併為一個單元。 為此,選擇要合併的單元格。

Highight cells in Excel

Next, on the “Home” tab, click the “Merge and Center” button.

接下來,在“主頁”選項卡上,單擊“合併和居中”按鈕。

Merge and Center

As the name implies, this will merge the selected cells. Any text in the cells will be centered by default.

顧名思義,這將合併選定的單元格。 預設情況下,單元格中的所有文字都將居中。

Merged Cells in Excel

As you can see, the A1, B1, and C1 cells have merged into one single cell. There are also other options to choose from. To access these options, click the arrow next to “Merge and Center” and a dropdown menu will appear.

如您所見,A1,B1和C1單元已合併為一個單元。 還有其他選項可供選擇。 要訪問這些選項,請單擊“合併和居中”旁邊的箭頭,然後會出現一個下拉選單。

dropdown options

These options are relatively straight-forward. One thing to note is that “Merge Across” merges only the selected cells in a row, but not the cells in a column.

這些選項相對簡單。 要注意的一件事是,“合併跨”僅合併一行中選定的單元格,而不合並一列中的單元格。

So what happens if we merge cells that already have content in them? This is something you have to be very careful with. Merging cells with already-existing data only keeps the upper-left value and discards all other values. That means all data except the data in the upper-left cell will be deleted. Microsoft does give you a warning message before merging the cells, though, but do make sure you understand that the data will be lost before continuing.

那麼,如果我們合併其中已經有內容的單元格,會發生什麼? 這是您必須非常小心的事情。 合併具有現有資料的單元格僅保留左上角的值,並丟棄所有其他值。 這意味著除左上單元格中的資料外的所有資料都將被刪除。 但是,Microsoft確實會在合併單元之前向您發出警告訊息,但是請確保在繼續之前確保您瞭解資料將丟失。

合併單元格 (Unmerging Cells)

Unmerging cells splits previously merged cells back into single cells. Doing so is as easy as selecting the merged cells and then clicking the “Merge and Center” button again to toggle the setting off. Similarly, you can click the arrow next to “Merge and Center” to access the drop-down menu and then click “Unmerge Cells.”

未合併的單元格將先前合併的單元格分裂回單個單元格。 這樣做就像選擇合併的單元格,然後再次單擊“合併和居中”按鈕以將設定關閉一樣容易。 同樣,您可以單擊“合併和居中”旁邊的箭頭以訪問下拉選單,然後單擊“取消合併單元格”。

Unmerge Cells

If you unmerge a cell that contains data, all of the data is placed in the top-left cell, and all other cells will be empty.

如果取消合併包含資料的單元格,則所有資料都將放置在左上角的單元格中,所有其他單元格將為空。

翻譯自: https://www.howtogeek.com/369241/how-to-split-or-merge-cells-in-microsoft-excel/