Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default Stripping out characters

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Stripping out characters

Copy the column to another column--just in case:

Select the column
Edit|Replace
what: *@
with: (leave blank)
replace all

(and once more)
edit|Replace
what: .*
with: (leave blank)
replace all



Stephanie wrote:

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default Stripping out characters

Sweet! And I don't need to know my RIGHT from my LEFT!

"Dave Peterson" wrote:

Copy the column to another column--just in case:

Select the column
Edit|Replace
what: *@
with: (leave blank)
replace all

(and once more)
edit|Replace
what: .*
with: (leave blank)
replace all



Stephanie wrote:

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!


--

Dave Peterson
.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Stripping out characters

Hi,
try

=RIGHT(A51,FIND("@",A51)-2)


"Stephanie" wrote:

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Stripping out characters

=MID(A1,SEARCH("@",A1)+1,SEARCH(".",A1,SEARCH("@", A1))-SEARCH("@",A1)-1)

--
Regards!
Stefi



€˛Stephanie€¯ ezt Ć*rta:

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Stripping out characters

On Thu, 3 Dec 2009 06:26:01 -0800, Stephanie
wrote:

Hi-
I have a field that contains email addresses. I would like to strip the
address down to just the domain:

= gmail
= comcast
= aol

So essentially I want to capture anything after the "@", up to the "."

I'd appreciate your suggestions!


To return everything after the "@", and up to the FIRST "." :

=LEFT(MID(A1,FIND("@",A1)+1,99),FIND(".",MID(A1,FI ND("@",A1)+1,99))-1)

--ron
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
Formula for stripping text Vicky Excel Discussion (Misc queries) 6 June 19th 09 03:19 PM
Stripping Information Kent Excel Discussion (Misc queries) 7 January 11th 08 07:27 PM
Stripping The First Four Characters from a value Rob Excel Discussion (Misc queries) 4 January 26th 07 06:31 PM
Stripping the dashes digital21st Excel Discussion (Misc queries) 4 May 23rd 06 03:43 PM
Stripping and Conversion. Rodney New Users to Excel 28 June 27th 05 05:51 AM


All times are GMT +1. The time now is 05:25 PM.

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

About Us

"It's about Microsoft Excel"