A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

loosing test fomat after using replace command



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2005, 01:41 PM
Richard Miller
external usenet poster
 
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  
Old October 27th, 2005, 03:46 PM
Dave Peterson
external usenet poster
 
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering with command buttons and RecordSource Christopher Glaeser Using Forms 1 December 17th, 2004 11:30 PM
Reading PictureData FaceID for Command Buttons Jeff Conrad Using Forms 4 October 10th, 2004 06:39 PM
Replace Fonts command does not recognize (list) problem font Nate Powerpoint 2 October 5th, 2004 03:24 PM
News command button "lost" and can't replace from cutomize list Wig General Discussion 1 September 28th, 2004 10:56 PM
Find Command John Kozma Using Forms 1 June 23rd, 2004 07:47 PM


All times are GMT +1. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.