Re: Prevent excel to auto format and auto apply formula to a cell when opening a file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dave Peterson (ec35720_at_msn.com)
Date: 02/27/04


Date: Thu, 26 Feb 2004 20:37:48 -0600

Another option:

Rename your .csv file to .txt

file|open
You'll get the wizard and you can specify text for those fields and date (mdy)
for the last.

"MikeVince <" wrote:
>
> Hi,
>
> I have this problem of mine that troubled me for days.
>
> You see, i have a CSV file which has values like :
>
> "3/1","4/2","10-20-2004"
>
> when i open the CSV file using excel, excel will automatically convert
> the values to be like:
>
> 3-1-2004 4-1-2004 10-20-2004
>
> the 10-20-2004 is okay since it is really a date but the 3/1 and 4/2
> are not dates and are not any form of equation.
>
> i just want excel to display them as exactly as seen in the CSV file.
> so i tried to right click on the rows for both 3/1 and 4/2 and selected
> "Format Cells". Inside the "Format Cells", i selected the "text"
> category in the "Number" tab. But when i do that, the value for 3/1
> will become 38047.
> I also tried Edit->Clear->All but still it didnt helped.
>
> do you guys know how to make excel display the CSV value of 3/1 as
> exactly 3/1 ?
>
> please reply to my email if you know --> michaelp@tp.edu.sg
>
> thanks for your time.
>
> ---
> Message posted from http://www.ExcelForum.com/

-- 
Dave Peterson
ec35720@msn.com


Relevant Pages

  • Re: CSV import, excel corrupts data
    ... I guess if you want to use excel, you'll have to play by its rules. ... If opening .csv files directly doesn't work for you, ... Doing the macro trick corrupts the data as described when the file is a ... empty worksheet, use the data import wizard to select the csv file, ...
    (microsoft.public.excel)
  • Re: CSV import, excel corrupts data
    ... It _does_ bring up the data import wizard. ... There really seems to be no way to accomplish this in excel. ... Doing the macro trick corrupts the data as described when the file is a ... empty worksheet, use the data import wizard to select the csv file, ...
    (microsoft.public.excel)
  • Re: Basic Program to Import a CSV file
    ... Given that the OP asked about importing a CSV file into UV, ... some Excel to MV tool to import a CSV file into UV? ... Hey, why stop at replacing the database, replace the spreadsheet tools ... The directory file may well be UV ...
    (comp.databases.pick)
  • Re: On File open - how to stop conversion of postcodes to numbers
    ... definite failing of Excel to anticipate correctly the programmers wishes. ... a space before every entry in the postcode field before the first number just ... I could write an automated macro to run the file wizard but I would forever ... When I open CSV file using Notepad the field contains "00037" so it is all ...
    (microsoft.public.excel.worksheet.functions)
  • Re: CSV import, excel corrupts data
    ... If you rename your .csv file to .txt, you can have complete control over each ... field--you can choose Text for the fields that excel thinks are dates (but ... Now Excel utterly corrupts the data and displays some numeric ... its type from standard to text and finally confirm the import at cell A1. ...
    (microsoft.public.excel)