Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Richard Miller
 
Posts: n/a
Default loosing test fomat after using replace command

we are importing payroll information which includes a SS number formatted
with the dashes (xxx-xx-xxxx). The infomation is used to upload to the state
which requires the data to be in CSV format with no dashes in the SS number.
If we format the SS column as TEXT and apply the replace all to the column
reqursting that (-) be replaced with ( ), the dashes are sucessfully removed,
but the fromat seems to revert to general and any SS number that has a
leading 0 has the zero dropped.

Any suggestion as to how to now loose the leading zero thru the process?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default loosing test fomat after using replace command

If you format the resulting cell as: 000000000
You'll see your leading 0's.

And if you save as a .csv, then open that .csv in Notepad, you'll be able to see
how it worked.

Or...

Use a helper column of formulas:
=substitute(a1,"-","")
And drag down.

This will return a string.



Richard Miller wrote:

we are importing payroll information which includes a SS number formatted
with the dashes (xxx-xx-xxxx). The infomation is used to upload to the state
which requires the data to be in CSV format with no dashes in the SS number.
If we format the SS column as TEXT and apply the replace all to the column
reqursting that (-) be replaced with ( ), the dashes are sucessfully removed,
but the fromat seems to revert to general and any SS number that has a
leading 0 has the zero dropped.

Any suggestion as to how to now loose the leading zero thru the process?


--

Dave Peterson
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
What is the command to replace a cell's formula with it's value? Cindy Excel Discussion (Misc queries) 8 May 15th 09 07:26 PM
use replace command to change the contents of formulas Jordan Excel Discussion (Misc queries) 3 June 27th 05 04:51 PM
Keyboard command to replace double clicking the fill handle Pat Excel Discussion (Misc queries) 1 May 18th 05 05:50 PM
replace command Jean-Francois Excel Discussion (Misc queries) 2 January 11th 05 04:43 PM


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