Solved

Excel 2010 import is formatting column

Posted on 2011-03-01
3
195 Views
Last Modified: 2012-05-11
I am importing a CSV file into Excel 2010 as text.

When I import, I choose that I want to take it as text so that the numbers remain the same e.g. 0005 is imported as 0005.

The import however is losing the zeros and importing 5 into the column.

I have ensured that I have the import setting to text and have also set the column properties to text but it still loses the zeros.

I have uploaded a section of the file I am uploading. The line foto 0005 is an example


example.csv
0
Comment
Question by:aideb
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 35006103
Hello,

I cannot re-create the problem with Excel 2010. I used both File - Open and Data - From Text, specified the file as delimited, with commas, and set the third column to be text. Attached is the result. No issues with missing leading zeros. See attached.

Can you detail the steps that you are taking?

cheers, teylyn
Book4.xlsx
0
 
LVL 2

Author Closing Comment

by:aideb
ID: 35006156
I worked out what was happening. As the first column was so large, I didn't see that I needed to select the 3rd column to be text. I thought every column was selected.

User error!

Thanks for your help
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 35006179
Hah! That first column threw me too, at first. I thought there was something wrong with the data, seeing that the first column starts with a " quote and I first thought that this was the reason that all the data was in one column only.

Until I decided to scroll to the right.  :-))

Thanks for the grade and I'm glad I was able to put you on the right track.

cheers, teylyn
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question