Extracting Data From String in Exported Emails

Th3Hovster

New Member
Joined
Jul 7, 2017
Messages
3
Hello,

Thank you in advance for taking time to review my question.

I have a list of emails exported from Outlook to a .CSV file and I am trying to extract data from the "Body" cell and paste it into corresponding cells on a different sheet.

Each email contains somewhere in the body this information:Details
Job Requisition ID: XXXXXX00012345
Job Requisition Title: HR Generalist
Job Requisition Number of Positions: 1
Job Requisition Start Date: 04/24/2017
Job Requisition End Date: 04/23/2018
Talent Advisor: * Lastname, Firstname (Lastname.Firstname@email.com)
Location: CA-Alameda-Street Address-2001800000

I need the data after each colon and would like it to be pasted into a column named similarly to what's before each colon.
Example:
[TABLE="class: grid, width: 750"]
<tbody>[TR]
[TD]Requisition ID[/TD]
[TD]Requisition Title[/TD]
[TD]Number of Positions[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Talent Advisor[/TD]
[TD]Location[/TD]
[/TR]
[TR]
[TD]XXXXXX00012345[/TD]
[TD]HR Generalist[/TD]
[TD]1[/TD]
[TD]4/24/2017[/TD]
[TD]4/23/2018[/TD]
[TD]Lastname, Firstname[/TD]
[TD]CA-Alameda- Street Address[/TD]
[/TR]
</tbody>[/TABLE]


I'm wondering if there is a macro or anything other than the MID, FIND function since the data isn't always the same character length from email to email.

Thanks again.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top