How to Extract Data from Emails into a Spreadsheet
Pull orders, leads and bookings out of notification emails into Excel: teach fields from one example, split many messages and fix the gaps.

How to Extract Data from Emails into a Spreadsheet
If your shop, booking page or contact form sends you an email for every order, you already have a database. It just happens to be trapped in your inbox, one message at a time. Copying names, totals and addresses into a spreadsheet by hand is slow and error prone, and paid parser services usually want access to the whole mailbox. There is a middle way: use the fact that automated emails follow a template, teach a parser that template once, and let it read as many messages as you give it.
Look for the template
Open two or three of the emails side by side. You will see fixed labels such as Order number:, Customer: and Order total:, followed by values that change. Some values sit on the line under a heading, like an address under Ship to. Some can be recognised on their own, like an email address or a phone number. These anchors are what the parser uses.
Teach fields from one example
Paste a typical message into the example box of the Email and Text Parser to Spreadsheet. Select the first value you want, say the order total, type a field name and press the button to add it. The parser looks at what is in front of your selection on the same line and makes that the label. If there is text after the value on the same line, it notes a short stop marker so the value does not run on. If nothing is in front, it checks whether the selection is a recognisable kind of value, such as an email or an amount, or uses the line above as a heading.
Each new field immediately shows the value it finds in the example. If it is wrong, open the field and change the rule type: text after a label, text between two markers, the line after a heading, a fixed line number, a value detector, or as a last resort a regular expression. Clean-up options turn £38.00 into 38, #10482 into 10482 and 28 Oct 2026 into 2026-10-28, which saves work later in the spreadsheet.
Bring in all the messages
There are two ways. You can select many messages in your mail program and copy their text into the large box, or save them as .eml files and drop the files. Most desktop mail apps can save or drag messages as .eml, and webmail usually offers download message or show original. Dropped emails are decoded properly, including encoded subject lines and bodies, and the subject, sender and date are placed at the top of each record so you can extract them too.
Split into records
A long paste needs to be cut into one record per message. The most reliable way is to split where a line starts with a fixed text that opens every message, such as New order received. Alternatively split at two blank lines or a line of dashes, or treat each line as a record when your source is a list of one-line notifications. Check the record count against the number of messages you expected.
Find and fix the gaps
The result table paints empty cells yellow. A few gaps are normal; a customer may not leave a phone number. A whole column of yellow means a rule does not fit some messages, perhaps because the template changed and a label now reads Total paid instead of Order total. Shorten the label to the shared part, or add a second field for the new wording. Every change updates the whole table instantly.
Export and reuse
Download the table as CSV for imports into other systems, or as Excel, where empty cells are highlighted and the original text of each record sits on a second sheet for checking. Your template, meaning the example, fields and split setting, is remembered in the browser, and you can save it as a file. Next week, paste the new emails and the table is ready in seconds.
Privacy
Customer emails contain personal data. Everything here runs in your browser and nothing is sent to a server, but treat the exported spreadsheet with the same care as the emails themselves.



&c=%23991b1b&k=business)