You cannot open a Gmail spreadsheet "in Excel" directly, because Gmail has no spreadsheet of email built in. What you can do is export data from Gmail and import it into Excel, or use Google Sheets to organize it and then download or open that file in Excel. The most reliable route is Google Takeout for a full archive, Google Sheets with a Google account filter for a live list of messages, and simple copy-paste or a saved search export for a one-off set of rows. All three end with a real .xlsx or .csv file that Excel opens normally.
What You'll Need
- A Google account with access to the Gmail mailbox you want to export. If it is a work or school account, an administrator may have restricted Takeout or third-party access.
- A desktop computer for the Google Sheets and Takeout part. Mobile Gmail apps do not offer these exports.
- Excel installed, or Excel for the web if you only need to view and lightly edit the file.
- Enough free storage in Google Drive if you build a sheet in Drive, and enough disk space for the export file.
- Patience for large mailboxes: a full archive can be several gigabytes and take a long time to prepare.
Step-by-Step
- Decide what you actually need. If you want a permanent backup of every message, use Google Takeout. If you want a readable table of senders, subjects and dates, use Google Sheets. If you need a dozen rows for a report, copy and paste is faster. Doing this first saves you from exporting gigabytes you will never open.
- For a table of messages, open Google Sheets. Go to sheets.new or drive.google.com and create a blank spreadsheet. Sign in with the same Google account that owns the Gmail mailbox.
- Use a Google account function to pull Gmail data. In a cell, start typing a function that begins with
=GOOGLEand let the autocomplete list appear. Look specifically for the Gmail-related function offered by Google's connected-sheets feature. Select it, then fill in the filter you want, such as a sender address, a subject keyword or a date range. The function returns message fields you can arrange in columns. Do not type a function name from memory; pick it from the autocomplete list so you use the exact wording your account offers. - Accept the permission prompt. The first time you use the function, Sheets asks for access to your Gmail. Review the request and allow it. If the prompt never appears or the function returns an error, the account or its administrator has blocked connected sheets, and you should switch to the Takeout method below.
- Set the filter narrowly. A filter of "all mail" can be very slow and may hit limits. Start with one sender or a short date range, confirm the columns look right, then widen the range. Add headers in row 1 so the sheet reads like a table.
- Save or download the sheet. In Sheets, choose File > Download > Microsoft Excel (.xlsx) to get a file Excel opens with formatting intact. Menu labels can differ slightly by version, device or region, so look for the Download submenu if the wording is not identical.
- Open the file in Excel. Double-click the downloaded .xlsx file, or in Excel choose File > Open and browse to it. If Excel warns about protected view, click Enable Editing.
- For a complete archive, use Google Takeout. Go to takeout.google.com, sign in, and click Deselect all. Scroll to Mail and tick only that box. Leave the default export format as zip, choose a download link delivery, and click Next step, then Create export. Google emails you when the archive is ready, which can take hours for a large mailbox.
- Download and extract the archive. Open the Takeout download page, download the zip, then extract it. Inside you get a Mail folder containing .mbox files, one per label.
- Convert the .mbox files to something Excel can read. Excel does not open .mbox directly. Use a reputable converter tool to turn the mbox into CSV, or import the mbox into a desktop mail client that can export to CSV. Treat this step carefully: converters vary in quality and some are paid, so check the output before trusting it. Keep the original archive untouched as your backup.
- Import the CSV into Excel. Open Excel, choose Data > From Text/CSV, select the file, check the delimiter preview, and click Load. Use Data > Text to Columns if a single column contains several fields separated by commas.
- Clean up and save as .xlsx. Delete blank rows, set a proper date format, freeze the header row with View > Freeze Panes, and save with File > Save As using the Excel Workbook format so the structure and formatting persist.
Common Mistakes
The biggest one is expecting Excel to connect straight to Gmail. There is no official Excel add-in that logs into a Gmail mailbox and pulls messages in; anything advertising that is either a third-party tool to research carefully or a web mail connector that only handles other providers. Do not waste time hunting for a Gmail data source inside Excel's Get Data menu.
Second, people export their entire mailbox when they only needed one label. That produces enormous files that are slow to open and awkward to filter. Third, saving a converted file as .csv overwrites it every time you open it and drops formatting, dates can be reinterpreted, and long numbers can lose leading zeros. Save the working copy as .xlsx and keep the CSV as the raw import.
Finally, assuming an export captures attachments in a form Excel can use. Takeout includes attachments as separate files, and a CSV export will not carry them. If attachment names matter, plan for a manual column.
Tips
- Build a saved Gmail search first, such as
from:supplier has:attachment after:2025/01/01, so you know exactly what the export or function should return. - Export one label at a time for large mailboxes. It keeps files manageable and makes the columns easier to interpret.
- Keep a raw copy of any exported CSV and never edit it directly. Work on a duplicate.
- Use Excel's Data > Remove Duplicates after combining exports from several labels, since a message can appear in more than one.
- Schedule exports around quiet hours. Takeout and connected-sheet functions can take a long time on busy accounts.
- Store the archive somewhere private. A full mailbox export contains personal and financial information.
Troubleshooting
The Gmail function does not appear or returns an error. Sign out of all Google accounts and sign back in with only the mailbox you need, then retry. If it still fails, the account is likely restricted and the Takeout route is your answer.
The Takeout email never arrives. Check spam and the All Mail label, and confirm the export is finished on the Takeout downloads page rather than still processing. Very large archives can take a long time.
Excel opens the CSV with everything in one column. The delimiter is wrong. Re-import with Data > From Text/CSV and set the separator manually, or use Text to Columns.
Dates or numbers look wrong. Excel guessed the format. Re-import the file and set the column type explicitly to Date or Text during the import rather than fixing it afterwards.
The file is huge and Excel crawls. Split it: filter the rows you need in the conversion step and import only those columns.
Frequently Asked Questions
Can Excel connect directly to Gmail?
Not through an official Microsoft feature. Excel's Get Data options do not include a Gmail account connector. The working path is Gmail to Google Sheets or Google Takeout, then to Excel.
Does this work on a phone?
No. The Gmail mobile app does not offer these exports, and Sheets on mobile cannot reliably run the connected functions. Use a desktop browser.
Will the export include attachments?
Takeout saves attachments as separate files next to the message data. A CSV or sheet export lists message details, not the attachment contents.
Is exporting my mailbox safe?
The export is a full copy of your email, so store it somewhere private and delete it when you are done. If you share the file, remove personal data first. Recording and privacy rules differ by place, so check local requirements before sharing exported communications.
Can I keep the sheet updating automatically?
A connected sheet can refresh when it runs again, but a downloaded .xlsx is a snapshot. Once downloaded, it will not update by itself.