Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract domain names from email IDs sl24 Excel Worksheet Functions 2 August 21st 07 05:05 PM
Using Advanced Filter to extract email addresses Frank Wood Excel Discussion (Misc queries) 4 March 1st 07 10:54 PM
How to extract email address in hyperlink Brossyg Excel Worksheet Functions 6 January 27th 07 03:32 PM
Extract email addresses Excel Worksheet Functions 9 December 15th 06 09:05 PM
How can I extract automat. the email from a list of hiperlinks? Rafa Excel Discussion (Misc queries) 0 October 27th 05 09:24 AM


All times are GMT +1. The time now is 08:38 PM.

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

About Us

"It's about Microsoft Excel"