+ Reply to Thread
Results 1 to 3 of 3

Preserve formatting Leading Zeros in CSV

  1. #1
    Registered User
    Join Date
    09-01-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    31

    Preserve formatting Leading Zeros in CSV

    I have CSV contains 04, 05, 00234, etc in columns

    I want to preserve format Leading Zeros in numbers.

    I added '04, formated a text field still format is getting loss ad answer is 4

    What can be done to preserve formatting in CSV?

    Also is there is alternate way to use with VBA?

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Preserve formatting Leading Zeros in CSV

    Hello , Have a look at
    http://www.upenn.edu/computing/da/bo...dingZeros.html

    To preserve zeros you need to tick text in column option
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Preserve formatting Leading Zeros in CSV

    Hi,

    I'm assuming you are reading the csv data into an Excel workbook. In which case select the field in question when you get the option to parse the csv file and mark that field as 'text'.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Preserve leading zeros in a varying length number when converting it to text
    By Paulymon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2013, 12:48 AM
  2. [SOLVED] CSV data has leading zeros - how can I open in Excel to preserve them?
    By Hang Glider in forum Excel General
    Replies: 4
    Last Post: 01-29-2013, 07:47 PM
  3. Formatting a Number with leading zeros
    By btamulis in forum Excel General
    Replies: 7
    Last Post: 02-11-2012, 12:09 PM
  4. Preserve leading zeros
    By BCRose in forum Excel General
    Replies: 3
    Last Post: 10-18-2009, 04:34 PM
  5. Formatting query, incremental values with leading zeros
    By shockeroo in forum Excel General
    Replies: 5
    Last Post: 04-08-2009, 08:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1