In this article:

Export Emails to Google Sheets [Easiest Way in 2024]

May 8, 2024

How to Export Emails to Google Sheets

1. Copy the Email to Google Shets Template by Lido.app

Click the link below to copy the template:

Export Email to Google Sheets Template by Lido.app

A tab containing a prompt asking you to copy the spreadsheet to your Google account appears. Click Make a copy.

Export emails google sheets

You will get a copy of the template with the following sheet:

Export emails to google sheets

2. Input the Search query and Number of emails to Display

Search query is for what you want to look for in your Gmail. Type it in cell B2. Also indicate how many email threads you want to list. Input it to cell B3


google sheets export emails

3. Tick the Attachments Checkbox to Load Email Attachments

You can also load email attachments to the sheet. To do so, simply tick the checkbox on the right of the Attachment heading.

How to export email with attachments to google sheets‍

What this option does is to save each attachment to your Google Drive and then load a link to each attachment to the sheet. Since email attachments can still contain viruses, make sure to enable this option only if you are confident that all the attachments are safe to open. 

4. Click Search Emails

Once you set the Search query and the Number of emails to load, click Search Emails. On the first run, you will be asked to authorize the script attached to the spreadsheet. Click OK.

Authorization required to run script to export emails to google sheets‍

A new window will load. You will be asked first to choose the Google account that will run the script. Select the account you are using in the list. Most of the time, only the active account will be listed. 

Select account to run the spreadsheet

You will next get the message that Google hasn’t verified the script. Click the small link labeled Advanced. Another link will appear below it. Click Go to gmailtosheets(unsafe).

Continue using the script even if it is not verified‍

Next, a list of permissions needed by the script will be listed. 

Click allow to let the script run with the given permissions needed

Click Allow. The window will close.

The spreadsheet now works. Click Search Emails again, and the results will load!

how to export emails in google sheets

You will get the following information loaded to your sheet:’

  1. Date email received
  2. Sender of the email
  3. Email subject
  4. Email body
  5. Link to attachments in the email if you tick the Attachments checkbox

Did you like it? Copy the template below and use it!

Export Email to Google Sheets Template by Lido.app

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->