Solved

Text / CSV File Open in Excel (Leading zeros)

Posted on 2016-09-14
10
41 Views
Last Modified: 2016-09-15
Is there something I can put in the Text/CSV File so that when the operator opens it in Excel by double clicking it, it won't remove the leading zeros in one of the number fields...they want to see the leading zeros...but want to double click it to open it.

Thanks,
Mark
0
Comment
Question by:smithmrk
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 41798666
You can put an apostrophe (') at the beginning of the value.

Excel will treat the value as text instead of a number.
0
 

Author Comment

by:smithmrk
ID: 41798675
Yes, but when you double click the csv file the apostrophe (') shows in the field...is there a way to do it so the apostrophe (') doesn't show when you open the file?  I know in older version of Excel it would drop the apostrophe (') and leave the leading zeros, but new versions don't do that it shows it in the cell.

Mark
0
 
LVL 11

Expert Comment

by:loftyworm
ID: 41798685
I suspect it is not directly possible as you state it, this would seem to support that position;
http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/how-to-format-notepads-differently/06b37b6d-a463-e011-8dfc-68b599b31bf5?auth=1

But, You may be able to setup the defaults inside excel to always read cells in a specific way.

my 2 cents
0
 
LVL 11

Accepted Solution

by:
loftyworm earned 500 total points
ID: 41798687
0
 

Author Closing Comment

by:smithmrk
ID: 41798719
Well that is close enough...Thanks!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 26

Expert Comment

by:Shaun Kline
ID: 41798722
I ran across a "hack" that might work for you. If you include a tab after the number, Excel treats the field as a text. It is not viewable by the user unless they edit the field.
1
 

Author Comment

by:smithmrk
ID: 41798728
Oh Crap...Sorry Shaun I didn't give you enough time to post that answer before I awarded the points to the other expert.

I will try that and I'm totally sorry for not giving you more time to find that and for me to get you some points.

Thanks,
Mark
0
 

Author Comment

by:smithmrk
ID: 41798740
OK Shaun...

I tried the Tab thing after the number and it puts a small square box after the number in the cell.

Thanks,
Mark
0
 
LVL 12

Expert Comment

by:tel2
ID: 41798940
In Excel 2007 I also get that small square box (with a "?" inside it), smithmrk.
What version of Excel are you using, anyway?
0
 

Author Comment

by:smithmrk
ID: 41799750
I'm using Excel 2010, just the square box for me.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now