getting the text between <>

mac10001

New Member
Joined
Jun 18, 2012
Messages
5
Hi All,

I've been given a messy excel sheet with email addresses. With messy I mean some rows have an "email address", others have "first name last name <email address>", others have well I will probably ask about those later, in the mean time. I want to get all the email addresses only from the "first name last name <email address>", in other words, I want to pick out anything between the < >, I am hoping there's a way to do this other than manually. Does anyone have any suggestions?

Your help is appreciated!

Mac
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi and Welcome to the Board
Can you post a couple of samples of what you have , and the desired result.
It's way easier than trying to explain it.
 
Upvote 0
Let us assume the name and email address is in cell "A1" and it looks something like this: "Adam Smith <adamsmith@aol.com>" and then the email address in between </adamsmith@aol.com>"<" and ">" sign.

<adamsmith@aol.com>Use the below formula into an adjecent cell to get the email address. In this case it will extract the text value "adamsmith@aol.com" without the quotes.

=MID(A1,FIND("<",A1)+1,FIND(">",A1)-FIND("<",A1)-1)

As long as you have an email address between "<" and ">" sign, the above formula should work fine.
Hope this helps.</adamsmith@aol.com>
 
Last edited:
Upvote 0
Thank you very much Narendra!!!!!!! That works.

I apologize for my 3 messed up relies, for some reason the forum is not showing anything I put between "<" and ">", I put in 3 different ways and it magically disappeared every time!

Again, thank you very much Narendra and Michael for helping out!
 
Upvote 0
U r welcome.

I am glad that i could be of some help.

This thread resolved.
 
Last edited:
Upvote 0
The reason the text is not working is because you need to put a space before / after the <> signs otherwise the system thinks it's a HTML Tag.
 
Upvote 0

Forum statistics

Threads
1,214,666
Messages
6,120,806
Members
448,990
Latest member
rohitsomani

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