Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 176405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:52:14+00:00 2026-05-11T13:52:14+00:00

NOTE: this question is almost a dupe of: stop Ms Excel auto-formatting numeric strings

  • 0

NOTE: this question is almost a dupe of:

stop Ms Excel auto-formatting numeric strings as numbers

I say ‘almost’ because this specific question was not asked …

Question: Is there a way to attach a ‘schema’ to a CSV file, prior to Excel import, that allows Excel to understand the correct formatting of the CSV file without requiring post-processing of the CSV file and without requiring end-user intervention in order to correctly format the fields by hand?

By schema, I mean any method whatsoever of generating a text-based definition that can be saved somewhere on Customer X’s machine and then referenced whenever the usual CSV import has to take place, including but not limited to XSD, VBMacro, or whatever conventions Excel has for this kind of operation (if any).

Background: Excel has a habit of being ‘helpful’ by modifying input data when opened from plain-text such as a CSV file.

For an example of what is meant by this, see any of the various following links:

    http://ask.metafilter.com/28449/Preventing-Excel-applying-time-formatting-to-imported-data     http://excel.tips.net/Pages/T002588_Handling_Leading_Zeros_in_CSV_Files.html     http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/aae07b39-865f-4c68-a07f-7cad2dfd6733     http://social.msdn.microsoft.com/forums/en-US/vsto/thread/80285088-b476-418f-9613-a2c499c8da7b/ 

We regularly have to send CSV files to customer X and we do not have the luxury of modifying the CSV files directly in order to ‘morph’ them into a format that Excel will render exactly as intended.

Moreover, customer X does not always have the personnel who are trained with Excel in order to do the import correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:52:15+00:00Added an answer on May 11, 2026 at 1:52 pm

    What I’ve done when facing this problem is create a macro to run after the import which ‘un-fixes’ Excel’s fixes. It’s not a great solution, but it’s a working workaround.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: Originally this question was asked for PostgreSQL, however, the answer applies to almost
(NOTE: This question is not about escaping queries, it's about escaping results) I'm using
Note this question was originally posted in 2009, before C++11 was ratified and before
Note: This question has broadened in scope from previous revisions. I have tried to
Moderator note: This question is not a good fit for our question and answer
Note: In this question I'm using the term autocomplete (or iterative search) to refer
(note that this question is not about CAS, it's about the May fail spuriously
Please note that this question is from 2008 and now is of only historic
Reading this question I found this as (note the quotation marks) code to solve
Please note: This is a question about the Eclipse plugin Subversive , and not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.