通过使用Google 文档 中的表格(table in Google Docs),您可以构建文档详细信息,让读者更轻松地访问和理解您提供的信息。您可以将数据输入网格格式,而不是格式化列表或段落,以获得整洁干净的外观。
在本指南中,我们将向您展示如何插入表格并调整其属性,以及如何在Google 文档(Google Docs)中编辑表格、对表格数据进行排序以及删除不再需要的表格。

在 Google 文档中插入表格
您只需选择所需的行数和列数,即可将表格添加到Google 文档(Google Docs)。
- 将光标放在您想要表格的位置。
- Select Insert > Table从菜单中
选择插入 > 表格。
- 在弹出框中,选择表格的大小。使用光标选择列数和行数,请记住,您也可以稍后进行调整。
注意:您还可以选择表格(Table)模板并根据需要选择预制选项。

然后,您会在所选位置看到您的表格,并可以开始在表格单元格中输入文本。

设置表格属性
在向表格添加数据之前或之后,您可能希望对表格的外观进行一些更改。您可以调整Google 文档(Google Docs)表格
的行、列、对齐方式和颜色属性。
右键单击(Right-click)表格并在快捷菜单中选择表格属性。

当侧边栏在右侧打开时,展开您要调整的项目的部分。
- 行:设置最小行高,选择或更改标题行,并允许行跨页溢出。
- 列:调整所有列的宽度。
- 对齐方式:选择单元格垂直对齐方式、表格水平对齐方式、设置缩进尺寸和调整单元格填充。
- 颜色:添加或删除表格边框(remove a table border)、更改边框宽度、选择边框颜色以及为单元格选择背景颜色(pick a background color)。

您会实时看到您对表格所做的任何更改。完成后,使用右上角的 X 关闭侧边栏。
添加或删除列或行
您可以通过多种方式在Google 文档(Google Docs)的表格中添加和删除列和行。
要快速添加列或行,请将光标悬停在表格上以显示小工具栏。您会看到每列和每行的工具栏。选择加号以在右侧或下方添加一列。

要将列添加到左侧或上方的行,请右键单击列或行中的单元格。然后,从快捷菜单中选择插入(Insert)选项。

要删除列或行,请右键单击其中的单元格,然后从快捷菜单
中选择删除(Delete)行或删除列。(Delete)

在表中固定标题行
如果您创建一个带有标题行的表格,您可以将其固定到顶部以将其固定在适当的位置。正如我们将在下面讨论的那样,这在重新排列行或对表格进行排序时很有用。
将光标悬停(Hover)在行上以显示小工具栏并选择图钉图标。

或者,右键单击该行并选择固定(Pin)标题行。

要删除固定的标题行,请在固定行或右键单击并选择取消(Unpin)固定标题行后选择工具栏中有一条线穿过的固定图标。

重新排列列或行
借助Google 文档(in Google Docs)中表格的灵活功能,您不必通过剪切和粘贴来重新排列行或列。只需(Just)使用工具栏。
将光标悬停(Hover)在列或行上以显示小工具栏。选择工具栏左侧的网格图标,然后向左或向右拖动列或向上或向下拖动行。

在 Google 文档中对表格进行排序
您可能希望按字母顺序或数字顺序显示表格。您可以通过选择两种方式之一的列来完成此操作。
将光标悬停(Hover)在列上并选择工具栏中的过滤器图标。然后,选择升序排序(Sort)或降序排序(Sort)。

您还可以右键单击该列,移至排序(Sort)表,然后在弹出菜单中
选择升序排序(Sort)或降序排序。(Sort)

合并表格中的单元格
您可能希望将两个单元格组合成一个跨越多列或多行的单元格。您可以通过几个简单的步骤合并表格中的两个或多个单元格。
- 通过将光标拖过它们来选择要合并的单元格。您可以合并水平单元格、垂直单元格或单元格块。请(Just)记住,您只能合并相邻的单元格。

- 右键单击(Right-click)选定的单元格并在快捷菜单中
选择合并单元格。(Merge)

- 然后,您会看到合并的单元格是一个单元格。

如果您决定稍后取消合并这些相同的单元格,请右键单击合并的单元格并选择取消合并(Unmerge)单元格。

拆分表格中的单元格
您也可以在表格中执行相反的操作,拆分单元格而不是合并它们。这是Google 于 2022 年 10 月添加到 Docs(Google added to Docs in October 2022)的新功能之一。
- 右键单击(Right-click)要拆分的单元格,然后在快捷菜单中
选择拆分单元格。(Split)

- 在弹出窗口中,输入要将单元格拆分成的列数或行数。您还可以使用箭头以较小的增量向上和向下移动。
- 选择拆分。

- 然后您会看到您的细胞转变为多个细胞。

如果你想取消拆分单元格,你可以选择它们并使用上面描述的合并(Merge)单元格功能。
删除 Google 文档中的表格
如果您稍后决定不再需要文档中的表格,删除它很容易。
右键单击(Right-click)表并从快捷菜单中选择删除表。(Delete)请记住,这也会删除表中的数据。

表格是使文档具有结构化外观的有用工具。如果您想以另一种有用的方式使用它们,请查看如何使用 Google 文档中的表格制作可填写的表格(make a fillable form with tables in Google Docs)。
How to Add, Edit, Sort, and Split a Table in Google Docs
By using a table in Google Docs, you can structure document details to provide readers with an easier way to access and understand the information you’re presenting. Rather than formatting lists or paragraphs, you can enter your data into a grid format for a neat and clean appearance.
In this guide, we’ll show you how to insert a table and adjust its properties as well as how to edit a table in Google Docs, sort the table data, and remove a table you no longer want.

Insert a Table in Google Docs
You can add a table to Google Docs by simply selecting the number of rows and columns you want.
- Place your cursor in the spot where you want the table.
- Select Insert > Table from the menu.
- In the pop-out box, choose the size for the table. Use your cursor to pick the number of columns and rows and keep in mind that you can also adjust this later.
Note: You can also select Table templates and pick a premade option if you prefer.

You’ll then see your table in the location you selected and can start entering your text into the table cells.

Set the Table Properties
You may want to make some changes to the appearance of your table before adding data to it or after. You can adjust row, column, alignment, and color properties for a Google Docs table.
Right-click the table and pick Table properties in the shortcut menu.

When the sidebar opens on the right, expand the section for the item you want to adjust.
- Row: Set a minimum row height, choose or change the header row, and allow rows to overflow across pages.
- Column: Adjust the width for all columns.
- Alignment: Choose the cell vertical alignment, table horizontal alignment, set the indent measurement, and adjust the cell padding.
- Color: Add or remove a table border, change the border width, select a border color, and pick a background color for a cell.

You’ll see any changes you make to your table in real-time. When you finish, use the X on the top right to close the sidebar.
Add or Remove a Column or Row
You have a few ways to add and remove both columns and rows from your table in Google Docs.
To quickly add a column or row, hover your cursor over the table to display the small toolbar. You’ll see a toolbar for each column and row. Select the plus sign to add a column to the right or row below.

To add a column to the left or row above, right-click a cell in the column or row. Then, choose an Insert option from the shortcut menu.

To remove a column or row, right-click a cell in it and choose Delete row or Delete column from the shortcut menu.

Pin a Header Row in a Table
If you create a table with a header row, you can pin it to the top to keep it in place. This is helpful when rearranging rows or sorting the table as we’ll discuss below.
Hover your cursor over the row to display the small toolbar and select the pin icon.

Alternatively, right-click the row and pick Pin header row.

To remove a pinned header row, choose the pin icon in the toolbar which has a line through it after you pin a row or right-click and pick Unpin header row.

Rearrange Columns or Rows
With the flexible features for tables in Google Docs, you don’t have to cut and paste to rearrange rows or columns. Just use the toolbar.
Hover your cursor over a column or row to display the small toolbar. Select the grid icon on the left side of the toolbar and then drag the column left or right or the row up or down.

Sort a Table in Google Docs
You may want to display your table in alphabetical or numerical order. You can do so by the column of your choice one of two ways.
Hover your cursor over the column and select the filter icon in the toolbar. Then, pick Sort ascending or Sort descending.

You can also right-click the column, move to Sort table, and pick Sort ascending or Sort descending in the pop-out menu.

Merge Cells in a Table
You may want to combine two cells into a single cell that spans several columns or rows. You can merge two or more cells in your table in a few simple steps.
- Select the cells you want to merge by dragging your cursor through them. You can merge horizontal cells, vertical cells, or a block of cells. Just remember, you can only merge adjacent cells.

- Right-click the selected cells and pick Merge cells in the shortcut menu.

- You’ll then see your merged cells as a single cell.

If you decide to unmerge these same cells later, right-click the merged cell and choose Unmerge cells.

Split Cells in a Table
You can also do the opposite in a table and split cells rather than merge them. This is one of the new features that Google added to Docs in October 2022.
- Right-click the cell you want to split and choose Split cell in the shortcut menu.

- In the pop-up window, enter the number of columns or rows you want to split the cell into. You can also use the arrows to move up and down in small increments.
- Select Split.

- You’ll then see your cell transform into more than one cell.

If you want to unsplit cells, you can select them and use the Merge cells feature described above.
Delete a Table in Google Docs
Should you decide later that you no longer want a table in your document, removing it is easy.
Right-click the table and choose Delete table from the shortcut menu. Keep in mind that this removes the data in the table as well.

Tables are useful tools for giving your document a structured appearance. If you’d like another helpful way to use them, take a look at how to make a fillable form with tables in Google Docs.