Is it possible to extract multiple parts of text from a cell?

fapb48

Board Regular
Joined
Sep 13, 2020
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have multiple rows with email addresses and their status of the email.

Example: sales@contoso.com##Receive, Deliver;hr@contoso1.com##Receive, Deliver;purchase@contoso2.com##Receive, Deliver

But this goes into a pivot table it looks very dodgy, specially with 3000 rows in the spreadsheet.

Therefore is there way to just extract the email addresses before '##'.

I know that text before function does a similar thing but it only extract the first email address.

Thank you
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about

Copy Sheet Named Range in Table Issue.xlsm
AB
1sales@contoso.com##Receive, Deliver;hr@contoso1.com##Receive, Deliver;purchase@contoso2.com##Receive, Deliversales@contoso.com
2hr@contoso1.com
3purchase@contoso2.com
4
Copy this Sheet twice
Cell Formulas
RangeFormula
B1:B3B1=TAKE(TEXTSPLIT(A1,"##",";"),,1)
Dynamic array formulas.
Thank you very very much. Its 99% what i need :). the only if really is that when multiple emails extracted it drops to the next rows.. is there any way to populate into a single row at all?

Thank you for your help
 
Upvote 0
If I understand you correctly you could use a textjoin

Excel Formula:
=TEXTJOIN(", ",,TAKE(TEXTSPLIT(A1,"##",";"),,1))
 
Upvote 0
If I understand you correctly you could use a textjoin

Excel Formula:
=TEXTJOIN(", ",,TAKE(TEXTSPLIT(A1,"##",";"),,1))
Thats is absolutely perfect. Thank you very very much!!!
 
Upvote 0
If I understand you correctly you could use a textjoin

Excel Formula:
=TEXTJOIN(", ",,TAKE(TEXTSPLIT(A1,"##",";"),,1))
Since you are using comma/space as the delimiter, you could have also done it this way...

=ARRAYTOTEXT(TAKE(TEXTSPLIT(A1,"##",";"),,1))
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,826
Members
452,673
Latest member
LaMiaAvy

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