Leading apostrophe

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
793
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a very large data set. where data that leads with zero will also lead with an apostrophe example ('0781). i tried different ways to try to resolve. copy and paste values, text to columns, comma delimited. with no success. if i double click manually into the cell it yields the result I need. problem is the data set is 10,000 rows so i can't do that. Does anyone have a quick way to resolve? I am open for VBA or anything at this point
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Have you considered find and replace. Find the apostrophe and replace with nothing.
 
Upvote 0
Change the format of the cells to include a leading zero

"0"#
 
Upvote 0
Are the numbers always the same length? If Yes try this:

Select the cells and use Format Cells, select Custom and in the option type in the amount of zeros to represent your desired numbers.

So if the cells have a max of six numbers and some start with maybe 2 zeroes by using this format it should still keep the 2 zeroes.
 
Upvote 0
Are the numbers always the same length? If Yes try this:

Select the cells and use Format Cells, select Custom and in the option type in the amount of zeros to represent your desired numbers.

So if the cells have a max of six numbers and some start with maybe 2 zeroes by using this format it should still keep the 2 zeroes.
so my characters will always be 4. then the digits will vary. but they will all be 4
 
Upvote 0
Changing the custom format should give you what you want as described in #6
0000
 
Upvote 0
Just the zeros as indicated no speech Mark's or extras. Format custom

0000
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,654
Members
449,113
Latest member
Hochanz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top