Email from Specific Term

Blessy Clara

Board Regular
Joined
Mar 28, 2010
Messages
204
Office Version
  1. 365
Platform
  1. Windows
Hi

I have an excel sheet with Columns Running from 1 to 150 - First row is header

Example [TABLE="width: 500"]
<tbody>[TR]
[TD]Col1[/TD]
[TD]Col2[/TD]
[TD]Col....[/TD]
[TD]Col120[/TD]
[TD]Col130[/TD]
[TD]Col150[/TD]
[/TR]
[TR]
[TD]principal@alphass.eq.edu.au[/TD]
[TD]0517_PandC@eq.edu.au[/TD]
[TD]EQInternational@dete.qld.gov.au[/TD]
[TD]nmcca106@eq.edu.au[/TD]
[TD]accounts@helpinghandsnetwork.com.au[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]the.principal@wondaiss.eq.edu.au[/TD]
[TD]admin@wondaiss.eq.edu.au[/TD]
[TD]InternationalStudy@murrumbassc.eq.edu.au[/TD]
[TD]UniformShop@tannsandss.eq.edu.au[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]the.principal@redlynchsc.eq.edu.au/principal@redlyncsc.eq.edu.au[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]oakleighoshc@gmail.com[/TD]
[TD][/TD]
[TD]the.principal@nundahss.eq.edu.au[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I want to pull out emails with specific terms - Example Principal Email

[TABLE="width: 500"]
<tbody>[TR]
[TD]Col1[/TD]
[TD]Col2[/TD]
[TD]Col....[/TD]
[TD]Col120[/TD]
[TD]Col130[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]principal@alphass.eq.edu.au[/TD]
[TD]0517_PandC@eq.edu.au[/TD]
[TD]EQInternational@dete.qld.gov.au[/TD]
[TD]nmcca106@eq.edu.au[/TD]
[TD]accounts@helpinghandsnetwork.com.au[/TD]
[TD]principal@alphass.eq.edu.au[/TD]
[/TR]
[TR]
[TD]the.principal@wondaiss.eq.edu.au[/TD]
[TD]admin@wondaiss.eq.edu.au[/TD]
[TD]InternationalStudy@murrumbassc.eq.edu.au[/TD]
[TD]UniformShop@tannsandss.eq.edu.au[/TD]
[TD][/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]the.principal@wondaiss.eq.edu.au

[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]the.principal@redlynchsc.eq.edu.au/principal@redlyncsc.eq.edu.au[/TD]
[TD][/TD]
[TD][/TD]
[TD]the.principal@redlynchsc.eq.edu.au/principal@redlyncsc.eq.edu.au[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]oakleighoshc@gmail.com[/TD]
[TD][/TD]
[TD]the.principal@nundahss.eq.edu.au[/TD]
[TD][/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]the.principal@nundahss.eq.edu.au

[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thank you in advance
 
(y) :) Thanks for the code and your patience in guiding me through this entire requirement - Yes (y)
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,828
Messages
6,181,213
Members
453,024
Latest member
Wingit77

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