Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default How do I remove the apostrophe(') in front of zeros

I have alot of data that has an apostrophe in front of the numbers with
leading zeros.

How can i remove the apostrophe and keep the zeros in front.

For example:

'00012345 -- 00012345
'00123456 -- 00123456
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default How do I remove the apostrophe(') in front of zeros

First custom format with 00000000
Then find and replace
Find '0
Replace with 0


"Tommy" wrote in message
...
I have alot of data that has an apostrophe in front of the numbers with
leading zeros.

How can i remove the apostrophe and keep the zeros in front.

For example:

'00012345 -- 00012345
'00123456 -- 00123456



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How do I remove the apostrophe(') in front of zeros

hi
you don't. AND keep the leading zeros.
mathmaticly leading zeros are unnecessary so excel strips them off and the
"number" becomes a true number. now can do mathmatical things to it like add,
divide, ect.
"numbers" with leading zeros are usually identification nomenclatures such
as part "numbers" or phone "numbers" or SS "numbers" and you usually don't
want to do mathmatical things to them. have you ever had a reason to divide
your phone number by 2 or add 1 to your street address. these are not true
numbers. they are IDs.
i have seen many posts from individuls want to know how to add leading zeros
to some id number they have and the responce is always the same. Pre-format
the cell as text or preceed the entry with an apostrophe.
the apostrophe is only visible in the formula bar. is there any reason why
this is perticularly offensive to you???

regards
FSt1


"Tommy" wrote:

I have alot of data that has an apostrophe in front of the numbers with
leading zeros.

How can i remove the apostrophe and keep the zeros in front.

For example:

'00012345 -- 00012345
'00123456 -- 00123456

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default How do I remove the apostrophe(') in front of zeros

try this, select the cells, then run the macro

Sub clean_it()
Dim r As Range
For Each r In Selection
r.Value = r.Text
Next r
End Sub


On Oct 23, 8:51*am, Tommy wrote:
I have alot of data that has an apostrophe in front of the numbers with
leading zeros.

How can i remove the apostrophe and keep the zeros in front.

For example:

'00012345 -- 00012345
'00123456 -- 00123456


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
apostrophe and leading zeros Yvonne Excel Discussion (Misc queries) 3 April 8th 09 01:44 PM
how do I get an apostrophe deleted from in front of all entries gayle Excel Discussion (Misc queries) 2 March 13th 07 03:00 PM
What does an apostrophe (') in front of a word mean? Youzhong Li Excel Worksheet Functions 2 May 31st 06 11:10 AM
why is an apostrophe in front of text mlu Excel Discussion (Misc queries) 6 March 20th 06 07:59 PM
How do I add an apostrophe in front of existing column in Excel? Carlah2 Excel Discussion (Misc queries) 2 December 7th 05 03:56 PM


All times are GMT +1. The time now is 02:38 AM.

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"