Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 251
Default "Replace all" changes formatting

I have formatted a column to text. Currently in the column is a list copy
and pasted from MAS 500. Contents of each cell look something like this:
SO-0000001016. With the column formatted as text, I did Edit/Replace,
replacing SO- with nothing, intending to remove simply the SO- and leave the
six zeros. However, it wipes out the six zeros, as well, leaving simply
1016. If I manually remove SO- on every number, the six zeros remain. What
gives?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default "Replace all" changes formatting

Yes, Excel is a great document tool but it has its limitations as well. The
zeros before a number value has always been a little fussy. For example, zip
codes on the east coast.

In order to preserve your data with minimizing re-typing in numerous fields,
this is the "work around". There may be a more elegant solution, but this is
the only way I know how to get what you want done, done.

1. Your MAS-500 is most likely outputting the file to a .txt or .csv or some
other simple text file. Open up that file, select everything and then just
put it in a Word document (use paste special, unformatted text)

2. In Word, do the find/replace and replace the SO- with "nothing"

3. Copy all of the data onto the clipboard

4. Open up an Excel file and format a column to "text"

5. Use Paste Special, Text, and copy into the column.

------------------

Text formatting is one of the most common ways to preserve zeros before a
number. However, this will have limitations as it is a text value and not a
numeric value. In order to preserve a numeric value with zeros in front,
another option is to use the "custom" format and just put in 10 0's in your
case.

Hope this helps, cheers!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default "Replace all" changes formatting

Still using SO- in the "Find what" field... instead of using nothing in the
"Replace with" field, try using an apostrophe (') instead.

--
Rick (MVP - Excel)


"Connie Martin" wrote in message
...
I have formatted a column to text. Currently in the column is a list copy
and pasted from MAS 500. Contents of each cell look something like this:
SO-0000001016. With the column formatted as text, I did Edit/Replace,
replacing SO- with nothing, intending to remove simply the SO- and leave
the
six zeros. However, it wipes out the six zeros, as well, leaving simply
1016. If I manually remove SO- on every number, the six zeros remain.
What
gives?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default "Replace all" changes formatting

ah snap, forgot to mention that if you're going to use the custom format and
paste into it, you'll have to use edit, paste special, values to preserve the
formatting
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 251
Default "Replace all" changes formatting

You know what? I had thought of that, but because I have LOOKUP's in this
spreadsheet I didn't know if '0000001016 would be seen the same as
0000001016, which is in another worksheet from where it does the lookup. I
should've tried it because it works! Thank you! Connie

"Rick Rothstein" wrote:

Still using SO- in the "Find what" field... instead of using nothing in the
"Replace with" field, try using an apostrophe (') instead.

--
Rick (MVP - Excel)


"Connie Martin" wrote in message
...
I have formatted a column to text. Currently in the column is a list copy
and pasted from MAS 500. Contents of each cell look something like this:
SO-0000001016. With the column formatted as text, I did Edit/Replace,
replacing SO- with nothing, intending to remove simply the SO- and leave
the
six zeros. However, it wipes out the six zeros, as well, leaving simply
1016. If I manually remove SO- on every number, the six zeros remain.
What
gives?


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 251
Default "Replace all" changes formatting

Kevin, thank you for replying. Your method would work too, but I'll go for
the shorter one. Appreciate your input. Connie

"Kevin Barrios" wrote:

ah snap, forgot to mention that if you're going to use the custom format and
paste into it, you'll have to use edit, paste special, values to preserve the
formatting

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
Replace "/" with "-" in a number formatting Sherry Excel Discussion (Misc queries) 10 February 6th 09 09:07 PM
Replace "/" with "-" in a number formatting Teethless mama Excel Discussion (Misc queries) 0 February 5th 09 08:21 PM
"Find" a wildcard as a place marker and "replace" with original va Eric Excel Discussion (Misc queries) 1 January 27th 09 06:00 PM
How do I replace decimals starting with "." to "0." in excel? Julio Excel Discussion (Misc queries) 2 November 1st 08 07:48 AM
Replace dialog should put focus on "Find What" not "Replace With" Michael Williams Excel Discussion (Misc queries) 0 May 24th 06 12:45 PM


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