Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Extract emails from cells with text

I have a row in column A which includes an email address in the text that I'd
like to extract to column B. Is there a formula I can use to accomplish
extracting the email address only to column B?

Here's an example of different cells in column A:

Please email to contact us......
OR
Schedule an appointment for assistance, or email
with your
questions...

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Extract emails from cells with text

Try this...

All on one line:

=TRIM(RIGHT(SUBSTITUTE(LEFT(A1,FIND
(" ",A1&" ",FIND("@",A1))-1)," ",
REPT(" ",LEN(A1))),LEN(A1)))

--
Biff
Microsoft Excel MVP


"AJexcelQuestions" wrote in
message ...
I have a row in column A which includes an email address in the text that
I'd
like to extract to column B. Is there a formula I can use to accomplish
extracting the email address only to column B?

Here's an example of different cells in column A:

Please email to contact us......
OR
Schedule an appointment for assistance, or email
with your
questions...

Thank you



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Extract emails from cells with text

Sub getemailinstr()
Set mc = Range("f4")
findat = InStr(mc, "@")
'MsgBox findat
st = InStrRev(mc, " ", findat)
'MsgBox st
es = InStr(findat, mc, " ")
'MsgBox es
mc.offset(,1).value=Mid(mc, st, es - st)
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"AJexcelQuestions" wrote in
message ...
I have a row in column A which includes an email address in the text that
I'd
like to extract to column B. Is there a formula I can use to accomplish
extracting the email address only to column B?

Here's an example of different cells in column A:

Please email
to contact us......
OR
Schedule an appointment for assistance, or email
with your
questions...

Thank you


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Extract emails from cells with text

Here is another UDF for you to consider...

Function ExtractEmail(S As String) As String
Dim Parts() As String
Parts = Split(S, "@")
ExtractEmail = Split(Parts(1))(0)
Parts = Split(Parts(0))
ExtractEmail = Parts(UBound(Parts)) & "@" & ExtractEmail
End Function

--
Rick (MVP - Excel)


"AJexcelQuestions" wrote in
message ...
I have a row in column A which includes an email address in the text that
I'd
like to extract to column B. Is there a formula I can use to accomplish
extracting the email address only to column B?

Here's an example of different cells in column A:

Please email to contact us......
OR
Schedule an appointment for assistance, or email
with your
questions...

Thank you


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 text on right of various length from cells HammerD Excel Discussion (Misc queries) 10 July 2nd 09 11:01 AM
Extract data from emails Ed[_4_] Excel Worksheet Functions 1 May 18th 09 01:41 AM
How to extract just text from cells Access Joe Excel Worksheet Functions 4 April 29th 08 09:06 PM
how do I create email list from individual emails in Excel cells? Matt W Excel Discussion (Misc queries) 2 January 26th 08 08:53 AM
sending emails from adresses in cells? BerkBrian Excel Discussion (Misc queries) 1 June 20th 05 08:37 PM


All times are GMT +1. The time now is 01:33 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"