LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Lisleb
 
Posts: n/a
Default

Thanks very much to all of you. Your suggestions worked very well.
Thanks again.
--
lisle


"Stefi" wrote:

Sorry, there was a mistake in my message. The right one is:

=IF(MID(A2,3,1)="-",SUBSTITUTE(A2,"-","",1),IF(MID(A2,3,1)="
",SUBSTITUTE(A2," ","",1),A2))

I have read Dave's and Duke's messages but I don't see the problem so hard.
My suggestion will correct the errors of the two types you explicitly
mentioned and won't do anything else. If you find other types of errors, send
a new message, and we shall find the solution.

Regards,
Stefi


€˛Stefi€¯ ezt Ć*rta:

Suppose wrong data are in column A.
Write in an unused helper column, row 2 (supposed you have a header row)

=IF(MID(A2,3,1)="-",SUBSTITUTE(A2,"-",""),IF(MID(A2,3,1)=" ",SUBSTITUTE(A2," ","",1),A2))

and fill down as necessary!

If you need the corrected data in the original column A, copy the helper
column and paste special (values only) to column A!

Regards,
Stefi


€˛Lisleb€¯ ezt Ć*rta:

I have some data in excel 03 where addresses are written as 32-59 85 Ave or
32 59 85 Ave. How do I get Excel to correct this data to remove the dash or
the space to express the address as 3259 85 Ave.
Thanks.
--
lisle

 
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



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