Solved

Excel 2010 import is formatting column

Posted on 2011-03-01
3
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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 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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

734 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