ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   number format (https://www.excelbanter.com/excel-worksheet-functions/87528-number-format.html)

Aaron

number format
 
Hello,

I have some data that needs to be parsed...like this:

Z:\02\ALPHA\0025.txt

I'm trying to text to columns fixed width in order to get the 0025 number.
When I do this, the number turns into 25 rather than 0025. Any ideas on how
to keep the zeros on there? Thanks much


Dave Peterson

number format
 
Choose Text for that field--not General.

(or format that column with a custom format of 0000)

Aaron wrote:

Hello,

I have some data that needs to be parsed...like this:

Z:\02\ALPHA\0025.txt

I'm trying to text to columns fixed width in order to get the 0025 number.
When I do this, the number turns into 25 rather than 0025. Any ideas on how
to keep the zeros on there? Thanks much


--

Dave Peterson


All times are GMT +1. The time now is 10:40 PM.

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