A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to extract anitials from an email adresse?



 
 
Thread Tools Display Modes
  #1  
Old October 13th, 2008, 10:07 AM posted to microsoft.public.excel.worksheet.functions
Tippo22
external usenet poster
 
Posts: 6
Default How to extract anitials from an email adresse?

Hi,

i need some help extracting initials from email adresses. All adresses have
the same domain name @qwertyui.dk but they have different lengths of initals,
e.g. aa or aab or aabb, but no more than 4 characters.

Hope you can help

Martin.
  #2  
Old October 13th, 2008, 10:16 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default How to extract anitials from an email adresse?

If I understand your question correctly, you want the dk part of the
@qwetyui.dk entry. This should do that for you...

=TRIM(RIGHT(SUBSTITUTE(A1,".",REPT(" ",99)),99))

--
Rick (MVP - Excel)


"Tippo22" wrote in message
...
Hi,

i need some help extracting initials from email adresses. All adresses
have
the same domain name @qwertyui.dk but they have different lengths of
initals,
e.g. aa or aab or aabb, but no more than 4 characters.

Hope you can help

Martin.


  #3  
Old October 13th, 2008, 10:17 AM posted to microsoft.public.excel.worksheet.functions
Per Jessen
external usenet poster
 
Posts: 686
Default How to extract anitials from an email adresse?

Hi Martin

With the email adress in A1 try this formula in B1:

=LEFT(A1;FIND("@";A1;1)-1)

Regards,
Per

"Tippo22" skrev i meddelelsen
...
Hi,

i need some help extracting initials from email adresses. All adresses
have
the same domain name @qwertyui.dk but they have different lengths of
initals,
e.g. aa or aab or aabb, but no more than 4 characters.

Hope you can help

Martin.


  #4  
Old October 13th, 2008, 10:24 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default How to extract anitials from an email adresse?

Hi,

When you say 'initials' I assume you mean the bit to the left of the @
If so try this.

Alt+F11 to open VB editor
Right click 'This Workbook' and paste the code below in on the right
call with

=GetName(A1) where A1 contains an Email address

Function GetName(HyperlinkCell As Range)
GetName = Replace(HyperlinkCell.Hyperlinks(1).Address, "mailto:", "")
GetName = Left(GetName, InStr(GetName, "@") - 1)
End Function

Mike

"Tippo22" wrote:

Hi,

i need some help extracting initials from email adresses. All adresses have
the same domain name @qwertyui.dk but they have different lengths of initals,
e.g. aa or aab or aabb, but no more than 4 characters.

Hope you can help

Martin.

  #5  
Old October 13th, 2008, 10:26 AM posted to microsoft.public.excel.worksheet.functions
Tippo22
external usenet poster
 
Posts: 6
Default How to extract anitials from an email adresse?

Tusind tak, var lige hvad jeg skulle bruge!

"Per Jessen" skrev:

Hi Martin

With the email adress in A1 try this formula in B1:

=LEFT(A1;FIND("@";A1;1)-1)

Regards,
Per

"Tippo22" skrev i meddelelsen
...
Hi,

i need some help extracting initials from email adresses. All adresses
have
the same domain name @qwertyui.dk but they have different lengths of
initals,
e.g. aa or aab or aabb, but no more than 4 characters.

Hope you can help

Martin.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.