Google Answers Logo
View Question
 
Q: excel formula ( Answered 5 out of 5 stars,   4 Comments )
Question  
Subject: excel formula
Category: Computers > Software
Asked by: tych2nel-ga
List Price: $10.00
Posted: 06 Aug 2004 13:47 PDT
Expires: 05 Sep 2004 13:47 PDT
Question ID: 384510
in mcrosoft excel how do i convert 04-00-00-00 to 04 00 00 00
basically replace the dash with spaces
Answer  
Subject: Re: excel formula
Answered By: hummer-ga on 06 Aug 2004 15:28 PDT
Rated:5 out of 5 stars
 
Hi tych2nel,

1) Highlight the columns (or rows) you want to fix.

2) Click Edit / Replace

3) Find what?: - (hit the dash key)

4) Replace with?: hit the space bar

5) Select Search by Columns (or Rows)

6) Replace *All*

Additional Link of Interest:

Excel Tips, Tricks, Formula & Functions and General Usage:
http://www.ozgrid.com/Excel/default.htm

That should do it - I tried it out and it worked perfectly for me. If
you have any questions, please post a clarification request before
closing/rating my answer and I'll be happy to reply. I'm sorry it took
so long to post this but my computer has not been cooperating.

Thank you,
hummer
tych2nel-ga rated this answer:5 out of 5 stars
OMG Thank You so much, how about vice versa eg. 004 00 00 00  to 004-00-00-00

Comments  
Subject: Re: excel formula
From: norblits-ga on 06 Aug 2004 19:27 PDT
 
Replace [Tap once on your space bar to create a SPACE] with "-"
Subject: Re: excel formula
From: tych2nel-ga on 06 Aug 2004 20:16 PDT
 
Thank You for your  Help!!
Subject: Re: excel formula
From: hummer-ga on 07 Aug 2004 03:42 PDT
 
Thank you for your thank you and nice rating, tych2nel. To do the
reverse, just switch steps 3 & 4:

2) Ctrl+H (Replace)

3) Find what?: hit the space bar

4) Replace with?: - (hit the dash key)

Regards, hummer
Subject: Re: excel formula
From: anvil19-ga on 10 Aug 2004 04:54 PDT
 
Hi tych2nel-ga 

You could use an actual Excel function, Substitute.

=Substitute(A1,"-"," ") [assuming your string is in cell A1] will
replace all the -'s with spaces.

To replace just the first instance of a dash you would use it like so:

=Substitute(A1,"-"," ",1).

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy