Skip to content
Madhavworld
Menu
Menu

Step-by-Step Guide: Extract Emails from Gmail to Google Sheets

Posted on March 4, 2025 by Admin

Got it! Here’s a step-by-step guide in plain words for extracting email addresses from Gmail messages using Google Sheets and Google Apps Script.


Step-by-Step Process:

Step 1: Create a Google Sheet

  1. Open your web browser and go to Google Sheets.
  2. Create a new spreadsheet by clicking on the Blank option.

Step 2: Open the Google Apps Script Editor

  1. Inside your Google Sheet, go to the Extensions menu on the top bar.
  2. From the dropdown menu, select Apps Script. This will open the Apps Script editor.

Step 3: Write the Script in Apps Script

  1. In the Apps Script editor, you will see an empty editor window. You need to add a custom script to extract email addresses.
  2. Copy and Paste the following script into the editor:
    • The script will search through your Gmail inbox, collect the email addresses from the “From”, “To”, and “CC” fields, and then list them in your Google Sheet.
    (This script is already provided above, but you can ignore the code if you just want a high-level guide.)
  3. After pasting the script, click the Save button (disk icon) to save your script.

Step 4: Run the Script

  1. Once the script is saved, click on the Run button (the triangle icon).
  2. The script will start executing, and a pop-up will appear asking for permission to access your Gmail account.

Step 5: Authorize the Script

  1. When the permission pop-up appears, click Review Permissions.
  2. Choose the Google account you are using.
  3. Click Allow to grant permission for the script to access your Gmail account and Google Sheets.

Step 6: Extract Email Addresses

  1. The script will now run and start extracting the email addresses from the Gmail threads in your inbox.
  2. After the script finishes running, you will automatically be returned to your Google Sheet.

Step 7: Check the Extracted Email Addresses

  1. The Google Sheet will now contain the list of extracted email addresses.
  2. The email addresses will be listed in the first column, starting with the header “Email Addresses”.

Step 8: Clean the Data (Optional)

  1. If necessary, you can clean the list by removing duplicates or unwanted entries:
    • Use Google Sheets’ built-in features like “Remove duplicates” or manually delete any entries you don’t need.

Result:

Now, you will have a Google Sheet with all the extracted email addresses from your Gmail inbox. You can use this list for whatever purpose you need (e.g., organizing contacts or creating a mailing list).


This is a non-technical, simple explanation of how to extract email addresses from Gmail using Google Sheets and Apps Script.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Pistachio Explosion (Pistachio Flavor Popularity): Why This Flavor is Taking Over 2025!
  • Wealdstone Raider Predicts Carabao Cup Victory – Is He a Time Traveler? / Gout Gout: The Teen Sprinter Who Could Be the Next Usain Bolt / Viral Stories
  • Latest Football Updates: UK Bids for 2035 Women’s World Cup, Liverpool’s Victory, and Transfer News
  • How to Recover my Gmail Account: Step-by-Step Guide
  • Daredevil: Born Again – Everything You Need to Know About the New Release

Recent Comments

  1. Admin on Daredevil: Born Again – Everything You Need to Know About the New Release
  2. Admin on Daredevil: Born Again – Everything You Need to Know About the New Release
  3. Tommygrawn on Daredevil: Born Again – Everything You Need to Know About the New Release
  4. Dir. Chih-Chien Chang on Daredevil: Born Again – Everything You Need to Know About the New Release
  5. Admin on Craftsmanship Redefined: The Timeless Appeal of Handmade Goods

Archives

  • March 2025
  • February 2025
  • March 2024

Categories

  • Blog
  • Handmade
©2025 Madhavworld | Design: Newspaperly WordPress Theme