Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Find and Replace

I have a problem with Find and replace.
I need to replace some characters in a Email adress.
Text is as follow:
EMAIL/ANNEMAIL/CHRISTINE.ANDERSSON*DOMAIN.COM
and I want it to be:
EMAIL/ANN-CHRISTINE.ANDERSSON*DOMAIN.COM
What I have tried is
Search for
EMAIL/*EMAIL/*
And here come the problem I want it to be like this (but it doesent work)
EMAIL/*-*

Hope you understand what I mean.

Regards Lotta

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Find and Replace

Assuming source in A1 down

Try in B1:
="EMAIL/"&RIGHT(SUBSTITUTE(A1,"EMAIL/","-"),LEN(SUBSTITUTE(A1,"EMAIL/","-"))-1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lotta" wrote:
I have a problem with Find and replace.
I need to replace some characters in a Email adress.
Text is as follow:
EMAIL/ANNEMAIL/CHRISTINE.ANDERSSON*DOMAIN.COM
and I want it to be:
EMAIL/ANN-CHRISTINE.ANDERSSON*DOMAIN.COM
What I have tried is
Search for
EMAIL/*EMAIL/*
And here come the problem I want it to be like this (but it doesent work)
EMAIL/*-*

Hope you understand what I mean.

Regards Lotta

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 208
Default Find and Replace

=SUBSTITUTE( A1, "EMAIL/", "-", 2 )
--
Regards,
Luc.

"Festina Lente"


"Max" wrote:

Assuming source in A1 down

Try in B1:
="EMAIL/"&RIGHT(SUBSTITUTE(A1,"EMAIL/","-"),LEN(SUBSTITUTE(A1,"EMAIL/","-"))-1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lotta" wrote:
I have a problem with Find and replace.
I need to replace some characters in a Email adress.
Text is as follow:
EMAIL/ANNEMAIL/CHRISTINE.ANDERSSON*DOMAIN.COM
and I want it to be:
EMAIL/ANN-CHRISTINE.ANDERSSON*DOMAIN.COM
What I have tried is
Search for
EMAIL/*EMAIL/*
And here come the problem I want it to be like this (but it doesent work)
EMAIL/*-*

Hope you understand what I mean.

Regards Lotta

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Find and Replace

=SUBSTITUTE( A1, "EMAIL/", "-", 2 )

A far better suggestion, Luc !
Now, why didn't I think of that earlier .. <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Find and Replace

Thansk alot this was greate.

Lotta

"PapaDos" skrev:

=SUBSTITUTE( A1, "EMAIL/", "-", 2 )
--
Regards,
Luc.

"Festina Lente"


"Max" wrote:

Assuming source in A1 down

Try in B1:
="EMAIL/"&RIGHT(SUBSTITUTE(A1,"EMAIL/","-"),LEN(SUBSTITUTE(A1,"EMAIL/","-"))-1)
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lotta" wrote:
I have a problem with Find and replace.
I need to replace some characters in a Email adress.
Text is as follow:
EMAIL/ANNEMAIL/CHRISTINE.ANDERSSON*DOMAIN.COM
and I want it to be:
EMAIL/ANN-CHRISTINE.ANDERSSON*DOMAIN.COM
What I have tried is
Search for
EMAIL/*EMAIL/*
And here come the problem I want it to be like this (but it doesent work)
EMAIL/*-*

Hope you understand what I mean.

Regards Lotta

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
find and replace jason2444 Excel Discussion (Misc queries) 1 November 17th 06 04:13 PM
How to cancel a find & replace command "midstream"? Matt from GVA Excel Worksheet Functions 4 September 4th 06 05:47 PM
Macro: Find and replace Bertie Excel Discussion (Misc queries) 1 May 29th 06 02:01 PM
Find and replace of word causes change of font formatting jwa90010 New Users to Excel 4 July 22nd 05 08:10 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 11:24 AM.

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"