ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   delete leading 0 (https://www.excelbanter.com/excel-discussion-misc-queries/80170-delete-leading-0-a.html)

Hal B

delete leading 0
 
I have a download in Excel, but the numbers have leading zeros (e.g. 00796,
01234). How do I delete these?

bpeltzer

delete leading 0
 
They've apparently been imported as text strings rather than numbers. To
convert, type a 0 in some empty cell and copy it (ctrl+C). Then select your
imported data and, from the menu bar, Edit Paste Special, select Values and
Add, then click OK.

"Hal B" wrote:

I have a download in Excel, but the numbers have leading zeros (e.g. 00796,
01234). How do I delete these?


wdjsxj

delete leading 0
 
you have 3 alternatives:
1) in b1 you put in the formula :=a1+0 then copy down
2) in b1 you put in the formula :=trim(a1) then copy down
3) in b1 you put in the formula :=value(a1) then copy down

wdjsxj

€œHal B€ç¼–写:

I have a download in Excel, but the numbers have leading zeros (e.g. 00796,
01234). How do I delete these?



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com