Using mid Left right

Rony Bhuiyan

New Member
Joined
Aug 15, 2017
Messages
1
How will I extract the domain name(like gmail) from the email address which contains several dot. For example: shanti.du.bd@gmail.com. I do want to extract "gmail". how can I do that? Is there any easy way please?
?
 

Some videos you may like

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
365, 2016
Platform
Windows
Welcome to the forums!

Something like this?

<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Email</td><td style=";">Domain</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style=";"> shanti.du.bd@gmail.com</td><td style=";">gmail</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-decoration: underline;color: #0563C1;;">this.is.a.test@bigdomain.with.more.periods</td><td style=";">bigdomain</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B2</th><td style="text-align:left">=LEFT(<font color="Blue">RIGHT(<font color="Red">A2,LEN(<font color="Green">A2</font>)-SEARCH(<font color="Green">"@",A2</font>)</font>),SEARCH(<font color="Red">".",RIGHT(<font color="Green">A2,LEN(<font color="Purple">A2</font>)-SEARCH(<font color="Purple">"@",A2</font>)</font>)</font>)-1</font>)</td></tr></tbody></table></td></tr></table><br />
 

SyedUsman

Board Regular
Joined
Jun 28, 2017
Messages
117
Also you can use

=MID(A2,SEARCH("@",A2,1)+1,SEARCH(".",A2,SEARCH("@",A2,1))-1-SEARCH("@",A2,1))
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,102,288
Messages
5,485,912
Members
407,523
Latest member
Talicius

This Week's Hot Topics

Top