In this article:

Export Emails to Google Sheets [Easiest Way in 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

Automate everything you track in spreadsheets with Lido
Learn more

Automate manual tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started