Substitute, then substitute something else

techiemoore

New Member
Joined
Oct 8, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Okay, i have no idea what I'm doing.
After some toying, i have
Excel Formula:
=IFERROR(TRIM(RIGHT(SUBSTITUTE(LEFT(A4,FIND(" ",A4&" ",FIND("@",A4))-1)," ",REPT(" ",LEN(A4))),LEN(A4)))," ")
in order to extract email addresses from stuff like "Bhatia, Tulikaa <Tulikaa.Bhatia@domain.com>"

My problem is that i need to also remove the angled brackets.
I do not know how to SUBSTITUTE and then SUBSTITUTE something else.
Any help would be greatly appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
OK, that formula makes no sense. What exactly are you trying to do? (Before and after examples please, if there are different types of 'before' then at least one of each type).
 
Upvote 0
OK, that formula makes no sense. What exactly are you trying to do? (Before and after examples please, if there are different types of 'before' then at least one of each type).
The formula will take a cell containing something like "Bhatia, Tulikaa <Tulikaa.Bhatia@domain.com>" and return "<Tulikaa.Bhatia@domain.com>"

It works without issue.

What I want is for it to also remove the angled brackets.
 
Upvote 0
Gotcha, I misread the placement of the double quotes first time. It makes sense now. Assuming that there will always be < and > in the cell
Excel Formula:
=SUBSTITUTE(MID(A4,FIND("<",A4)+1,255),">","")
 
Upvote 0
Solution
Another option assuming that the < & > will always be there
Excel Formula:
=REPLACE(LEFT(A4,FIND(">",A4)-1),1,FIND("<",A4),"")
 
Upvote 0
Thank you so much!
But, I'm afraid i already knew that - What I dont know is how to combine both formulas.
Is there a way to both extract the email address and the angled brackets? Or, extract only the email addresses and leave out the angle brackets?
 
Upvote 0
Which of us are you talking too? Also do your string always contain the < & >? If not please supply some representative data.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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