+ Reply to Thread
Results 1 to 2 of 2

Excel auto-formatting fields

  1. #1
    Registered User
    Join Date
    10-22-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2011
    Posts
    1

    Excel auto-formatting fields

    Hi All,

    I do a lot of work with cleaning up fixed width text files in Excel. The files include a lot of rubbish data (for example the files include pipes separating the columns) which I need to remove to get a clean csv file.

    I always import the data as text which works fine until I start cleaning it up. If I do a find/replace to remove the unwanted characters Excel then sees it as a number and auto-formats the fields to a number or date which can mean my data gets messed up (lose leading zeros etc.). If the character I am removing is at the front of the field and it is a number then I can replace it with a ' which seems to work OK, but sometimes these columns include rows with both numbers and text or the character is at the end of the field.

    Is there anyway that I can stop Excel changing the field type from text in these situations?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel auto-formatting fields

    Try formatting the entire sheet as text before you start.
    Martin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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