numbers only

silverxx12

Board Regular
Joined
Jan 23, 2009
Messages
99
Hi,

i have a a cell with the following format:

""12345678""

Now i want to get rid of the "" and be left with only the number

if i do find and replace, any number beginning with 0 - the first zero is dropped, which i dont want ie i want to see 0023456 not 23456

Any help much appreciated

Silver
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If all your numbers are of the same length then you can create a custom format to keep the preceding zeroes. Enter a format where you enter zeroes equalling the length of the number:

eg if number length is always 8 digits then enter 00000000 as the custom format.

You can then use find and replace to strip out the quotes without losing the zeroes.
 
Upvote 0
JD GFI's solution is probably better, because it converts the values to numbers, mine keeps them as text strings, which you may not want.
 
Upvote 0
look at SUBSITUTE
<TABLE style="WIDTH: 123pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=164><COLGROUP><COL style="WIDTH: 123pt; mso-width-source: userset; mso-width-alt: 5997" width=164><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 123pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=164>
A30 contains
""009988""
</TD></TR></TBODY></TABLE>=SUBSTITUTE(A30,"""","")
<TABLE style="WIDTH: 77pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=103><COLGROUP><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3766" width=103><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #f0f0f0; BORDER-LEFT: #f0f0f0; BACKGROUND-COLOR: transparent; WIDTH: 77pt; HEIGHT: 12.75pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: #f0f0f0" height=17 width=103>009988</TD></TR></TBODY></TABLE>
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,904
Members
452,948
Latest member
Dupuhini

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