ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   In Excel find 5 digit number and replace with leading zero (https://www.excelbanter.com/excel-discussion-misc-queries/242402-excel-find-5-digit-number-replace-leading-zero.html)

CDPalmer

In Excel find 5 digit number and replace with leading zero
 
I have a column of 5 digit numbers which I would like to replace with the
same number with a leading zero.
--
CDP

Mike H

In Excel find 5 digit number and replace with leading zero
 
Hi,

Apply a custom format of 000000 that's 6 zeroes

Mike

"CDPalmer" wrote:

I have a column of 5 digit numbers which I would like to replace with the
same number with a leading zero.
--
CDP


Fred Smith[_4_]

In Excel find 5 digit number and replace with leading zero
 
If you want to *display* the leading zero, use a custom format of 000000
(that's 6 zeros)

If you want the leading zero stored in the spreadsheet, convert your numbers
to text using:
=text(a1,"000000")

Regards,
Fred.

"CDPalmer" wrote in message
...
I have a column of 5 digit numbers which I would like to replace with the
same number with a leading zero.
--
CDP




All times are GMT +1. The time now is 06:36 AM.

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