How to Add a Table from Google Sheets to Your Emails and Documents
The Embed Range marker copies a range of cells from a Google Sheet into your email or document. In an email, the cells arrive as a table that keeps the fonts, colors, borders, merged cells and column widths of the sheet. You design the table in Sheets, and Document Studio copies it.
Use the marker for a price list, a class schedule, a rate card, or a figure that you update in a sheet, like the seats left in a workshop.
Maya Chen at Willow Lane Studio keeps her prices in a spreadsheet called Studio Prices, on a tab named Prices. Each January she emails the new prices to every client on her client list.
Cells A1 to C5 of the Prices tab look like this:
Service
What you get
Price
Logo design
3 concepts, 2 rounds of changes
$950
Brand kit
Logo, colors, fonts and a guide
$1,800
Website
5 pages, ready for phones
$3,200
Monthly care
Updates and backups
$120 a month
Open the spreadsheet that holds the table and copy its address from your browser’s address bar. The address looks like https://docs.google.com/spreadsheets/d/1AbC…789/edit.
Note the name of the tab and the cells you want, like Prices and A1:C5. Together they make the range address Prices!A1:C5, with an exclamation mark in between.
Open your workflow and go to the Send Email task.
In the Email Body, type an Embed Range marker on a line of its own. Paste the spreadsheet’s address after the first comma, then add address= and the range.
Hi {{First Name}},
Here are our prices for 2027. They apply to projects booked from January 1.
The range address can use a column in braces, so each row of your sheet or each form response can show different cells. Check the spelling of the column title. A misspelled title leaves the tab name out, and the row fails with Unable to parse range.
Maya bills clients in three currencies. Her Studio Prices spreadsheet has one tab for each, named USD, EUR and GBP, with the prices in A1 to C5. Her client list has a Currency column with the same names.
When the address is one cell, with no colon, the marker adds the cell’s text, not a table. Put the marker inside a sentence to show a figure that you update in the sheet:
There are {{Embed Range, 1AbC…789, address=Summary!B2}} seats left for the March workshop.
Maya’s email reads There are 14 seats left for the March workshop. Document Studio reads the cell when the row runs, so a scheduled workflow shows the number as it is at that time.
A single cell also works in the email Subject, like Only {{Embed Range, 1AbC…789, address=Summary!B2}} seats left.
A table with the formatting of the sheet. One cell adds its text.
Email subject
The text of the cells
Google Docs
The text of the cells. Each row starts a new line, and a tab separates the cells.
Google Slides
The text of the cells, the same as in Google Docs
Google Sheets
The text of the cells, in the cell that holds the marker
Only an email can show the formatted table. In a document, use single cells. Build the table in your Google Docs template, and put a one-cell Embed Range marker in each cell that needs a value from the other spreadsheet.
The email table keeps what readers see in the sheet:
Fonts, sizes, bold, italics and colors, also for part of the text in a cell
Cell backgrounds, borders, gridlines and merged cells
Column widths, row heights, alignment, text wrapping and line breaks
Number, currency and date formats, links, =IMAGE() pictures and cell notes
Charts, drawings and pictures placed over the cells are left out. For a chart, use Embed Chart. Hide gridlines in the sheet to remove them from the table.
Document Studio leaves out empty rows at the bottom of the range, so a range that is a little too long does no harm.
Type the spreadsheet in the marker. The spreadsheet can’t come from a column or a marker. A value in your sheet or form can never choose which of your spreadsheets Document Studio reads. The address can use markers.
The Google account that runs the workflow must be able to open the spreadsheet. Readers don’t need access. They get a copy of the cells, not a link to the sheet.
The table shows the cells as they are when the row runs. Later changes to the sheet don’t change emails you already sent or documents you already made.
A table shows up to 2,500 cells. Rows past that limit are left out.
Notes on cells travel with the table. Delete private notes from the range before the workflow runs.
A large range makes a long email. Gmail cuts off emails larger than 102 KB and hides the rest behind a View entire message link, so keep the range to the cells readers need.
A tab name can have spaces, but not a comma, because commas separate the parts of the marker.
A marker inside an {% if %}condition adds the table only when the condition is true.
When Document Studio can’t read a range, the task fails for that row. The task’s status column in your sheet shows Error: followed by the reason from Google Sheets. Fix the marker and run the row again. See run a workflow.
The tab name or the cells are wrong. Check the spelling of the tab name against the tab at the bottom of the spreadsheet. If the address uses a marker, like {{Currency}}, check that every row has a value that matches a tab.
Error: Sheets API 403: The caller does not have permission
The account that runs the workflow can’t open that spreadsheet. Share the spreadsheet with that account, or open it in the same Google account and copy its address again.
Error: Sheets API 404: Requested entity was not found
The marker has no address=, or the spreadsheet part isn’t a spreadsheet address or ID. A column or marker in the spreadsheet part also adds nothing. Paste the spreadsheet’s address into the marker itself.