Add and edit tables

Organize information in a document or presentation with a table. You can add and delete tables, and adjust the size and style of table rows and columns.

If you're using Google Docs on a computer, you can also:

  • Sort rows
  • Drag and move rows and columns
  • Pin table header rows so they repeat at the top of each page
  • Prevent information from overflowing across pages

Add a table

  1. On your computer, open a document or a slide in a presentation.
  2. Click Insert and then Table and then choose how many rows and columns you want to add.
    • Tables can be as large as 20 x 20 cells.
  3. The table will be added to your document.
Add rows or columns
  1. On your computer, open a document or a slide in a presentation.
  2. Right-click a cell in a table.
  3. To add a row or column next to the selected cell, click:
    • Insert column left
    • Insert column right
    • Insert row above
    • Insert row below
Delete rows, columns, or tables
  1. On your computer, open a document or a slide in a presentation.
  2. Right-click a cell in a table from the row or column you want to delete.
  3. From the menu, choose Delete columnDelete row, or Delete table.

Style tables

You can resize rows and columns or sort table rows. You can also change the border style and background color of individual cells.

Resize rows and columns

Resize a row or column

  1. On your computer, open a document or presentation.
  2. In your table, move your cursor over the gridline of a row or column.
  3. When your cursor becomes a two-sided arrow, click and drag until the row or column is the size you want.

Make all rows and columns the same size

  1. On your computer, open a document or presentation.
  2. Right-click a table.
  3. Click Distribute rows or Distribute columns.
Resize a table

Google Docs

  1. On your computer, open a document and select all cells.
  2. Right-click and then click Table properties.
  3. Under "Dimensions," enter the width and height you want for all highlighted cells.
  4. Click Ok.

Google Slides

  1. On your computer, open a presentation and click a table.
  2. Move your mouse to any corner of the table.
  3. When your cursor becomes a two-sided arrow, click and drag in any direction.
Style individual cells in a table
  1. On your computer, open a document or presentation.
  2. Select the cells you want to change.
  3. In the toolbar, click the style you want to change:
    • Border color Border color
    • Border width or Border weight Border dash
    • Border dash Border thickness
    • Background color or Fill color Fill
Sort rows in Google Docs
  1. On your computer, open a document in Google Docs.
  2. Right-click on the table.
  3. Click Sort table.
  4. Select Sort table in ascending order or Sort table in descending order.

You can also quickly sort rows directly from the table controls:

  1. Hover in the top row of a table.
  2. Click Sort Table
  3. Select Sort ascending or Sort descending.

Tip: To avoid sorting the header rows for your table, follow the instructions to pin header rows. Any rows that have been pinned will not be sorted.

Structure tables

You can move rows and columns or merge cells together. In Google Docs, if you have large tables that cross multiple pages, you can also pin header rows at the top of pages and prevent rows from overflowing.

Merge cells in a table

You can combine cells together to create titles, add headers, or put information from several cells into one.

  1. On your computer, open a document or presentation.
  2. Click and drag to highlight the cells you want to merge.
  3. Right-click and then click Merge cells. To unmerge cells, right-click the cell and then click Unmerge cells.
Move table rows and columns in Google Docs

Move a row

  1. On your computer, open a document in Google Docs.
  2. Hover in the left column of a table.
  3. Point your cursor over Drag until a hand appears.
  4. Click and drag the row up or down to its new location. 

Move a column

  1. On your computer, open a document in Google Docs.
  2. Hover in the top row of a table.
  3. Point your cursor over Drag until a hand appears.
  4. Click and drag the column left or right to its new location. 
Pin header rows in Google Docs

If you have a large table that crosses multiple pages, you can turn table rows into header rows that repeat at the top of each page that the table spans.

Important: This feature isn’t available in documents that are in pageless format. To use this feature, make sure your document is in pages format.

  1. On your computer, open a document in Google Docs.
  2. Click anywhere in your table.
  3. Go to Format and then Table and then Table properties
    1. You can also right-click the table and select Table properties.
  4. Check Pin header row(s) and specify the number of rows you want to pin.
  5. Click Okay to apply changes. 

You can also quickly pin a number of rows directly from the table:

  1. On your computer, open a document in Google Docs.
  2. Right-click on the row you want to pin up to and select Pin header up to this row
    1. You can also hover to the left of the row you want to pin up to and select Pin header up to this row .

Unpin rows

  1. Right-click any row in the table
  2. Select Unpin header rows .
Make table rows unsplittable in Google Docs

If you have a large table that crosses multiple pages, you can choose whether you want information in a table row to split across a page break. 

Important: This feature isn’t available in documents that are in pageless format. To use this feature, make sure your document is in pages format.

  1. Select the table row. 
  2. Go to Format and then Table and then Table properties
    1. You can also right-click the table and select Table properties.
  3. Check/uncheck Allow row to overflow across pages.
  4. Click Okay to apply changes.
Was this helpful?
How can we improve it?
true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
35
false
false