How to Insert an Outlook Email into Excel: Step-by-Step
In this article
You can insert an Outlook email into Excel by exporting it from Outlook as a file and then importing or linking that file in Excel. The quickest reliable method is to save the email as an .msg or .eml file, then use Excel's Power Query to import the message body and metadata into a table. This is useful for building logs of client correspondence, tracking project updates, or analyzing email content alongside other data. There is no built-in “Insert Outlook Email” button in Excel, so the process relies on Outlook's export options and Excel's data import tools.
What You'll Need
- Microsoft Outlook desktop app (Windows or Mac) with the email you want to insert. The Outlook web app does not offer the same save-as-file options.
- Microsoft Excel desktop app (Windows or Mac). Power Query is built into Excel 2016 and later; older versions may need the Power Query add-in.
- The email should be saved locally or in a folder you can access. If it is in a shared mailbox, you may need to copy it to your own mailbox first.
- Basic familiarity with Excel's Data tab and Power Query Editor. Menu labels can differ slightly by version, device, or region.
Step-by-Step
- Open Outlook and locate the email. In the Outlook desktop app, go to your inbox or the folder containing the message. Click once to select it. Do not open it in a separate window unless you need to check the content first.
- Save the email as a file. With the email selected, go to File > Save As. Choose a location you can easily find, such as Documents or a dedicated folder. In the Save as type dropdown, select Outlook Message Format (*.msg) for Windows or Outlook for Mac (.eml) if you are on Mac. Give the file a descriptive name and click Save. If you are on Mac and do not see Save As, drag the email from Outlook to your desktop to create an .eml file.
- Open Excel and start a new workbook. Launch Excel and create a blank workbook. Save it with a name related to your email log so you can find it later.
- Use Power Query to import the saved email file. In Excel, go to the Data tab. In the Get & Transform Data group, click Get Data > From File > From Folder. Browse to the folder where you saved the .msg or .eml file, select the folder (not the file itself), and click Open. Power Query will list all files in that folder. If you saved only one email, the list will show one item.
- Filter to your email file. In the Power Query Editor window, you will see a table with columns like Content, Name, Extension, and Date accessed. Use the filter arrow on the Name column to select only the file you saved. If you saved multiple emails, you can filter by extension (.msg or .eml) to keep only email files.
- Expand the email content. Click the Combine Files button (or the double-arrow icon in the Content column header) to load the email data. Power Query will attempt to parse the .msg or .eml file. You may see a preview with fields such as Subject, From, To, Date, and Body. If prompted, select the table or record that contains the email data. Click OK.
- Clean and shape the data. In the Power Query Editor, remove any columns you do not need (for example, file path or extension) by right-clicking the column header and choosing Remove. Rename columns to friendly names like Subject, Sender, Received Date, and Body. If the Body column contains line breaks or HTML tags, you can use Transform > Replace Values to clean them, or keep them as-is if you plan to analyze text.
- Load the data into Excel. When the table looks correct, click Close & Load on the Home tab. Power Query will load the data into a new worksheet as an Excel table. You can now sort, filter, and analyze the email content alongside other data in your workbook.
- Repeat for additional emails. To add more emails later, save them to the same folder, then in Excel go to Data > Refresh All. Power Query will re-read the folder and include the new files. You may need to adjust filters if you want to exclude certain files.
Common Mistakes
- Saving the email as .txt or .html instead of .msg/.eml. Power Query expects a structured email file. Plain text loses metadata like sender and date.
- Selecting the file instead of the folder in Power Query. The From Folder connector requires a folder path. If you point it to a single file, it will not work.
- Forgetting to filter the file list. If the folder contains other files, Power Query may try to combine them and produce errors. Always filter by name or extension.
- Not cleaning the Body column. Email bodies often contain HTML tags or extra line breaks that make analysis difficult. Use Power Query's replace or split tools before loading.
- Assuming Outlook web works the same. The web version of Outlook does not offer Save As for .msg files. You need the desktop app for this method.
Tips
- Create a dedicated folder for email files you want to import. This makes it easy to refresh and keeps your data organized.
- If you only need the email body text, you can copy and paste it directly into an Excel cell. This is faster but loses metadata and is not scalable for many emails.
- Use Power Query's Text tools to extract specific parts of the email, such as the domain from the sender address or keywords from the subject.
- For recurring imports, consider saving your Power Query steps as a reusable query. You can copy the query to other workbooks.
- If you work with many emails, export them in batches to the same folder and refresh once, rather than importing one at a time.
Troubleshooting
If Power Query shows an error when expanding the email file, check that the file is not corrupted. Try opening the .msg file in Outlook to confirm it is valid. If the Body column appears empty, the email may use a format that Power Query cannot parse automatically; try saving as .eml instead of .msg, or vice versa. If the Combine Files button is greyed out, ensure you have selected a folder that contains at least one supported file type. If Excel crashes during import, reduce the number of files in the folder and try again. For persistent issues, update Excel and Outlook to the latest version, as Power Query connectors are updated periodically. If you are on a Mac, some Power Query features may be limited; check Microsoft's support pages for the latest compatibility notes.
Frequently Asked Questions
Can I insert an email directly into an Excel cell without saving it as a file?
Yes, you can copy the email body text from Outlook and paste it into a cell. However, this does not preserve metadata like sender, date, or subject, and it is not practical for multiple emails. For structured data, use the save-and-import method.
Does this work with Outlook on the web?
No. The web version of Outlook does not provide a Save As option for .msg or .eml files. You need the desktop Outlook app to export emails as files.
Can I import multiple emails at once?
Yes. Save all the emails you want to import into a single folder, then use Power Query's From Folder connector. Filter the file list to include only .msg or .eml files, and Power Query will combine them into one table.
What if the email body contains images or attachments?
Power Query will import the text content of the email, but embedded images and attachments are not extracted as separate data. If you need attachments, you would need to save them separately from Outlook. The body text may include references to images, but not the images themselves.
Will this method work on Excel for Mac?
Power Query is available in Excel for Mac, but some features may differ. The From Folder connector and email file parsing should work, but the interface and available options may vary. If you encounter issues, try saving emails as .eml files, which are more universally supported.
Can I automate this process for new emails?
Power Query can refresh and pick up new files added to the folder, but it does not automatically export new emails from Outlook. You would need to manually save new emails to the folder and then refresh the query in Excel. For full automation, you would need a script or third-party tool, which is beyond the scope of this guide.