English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-04-15 21:56:58 · 8 answers · asked by John Q 1 in Computers & Internet Programming & Design

Hi. The key point here is that you can't take actions in Excel to do this (as once you have opened the file it has already lost the zeroes. I need to change the format of the actual TXT file.

2007-04-15 22:07:50 · update #1

Adding a ' keeps the ' showing in the Excel document sadly... so this doesn't seem to work...

2007-04-15 22:10:41 · update #2

Hi. Adding " does not solve the issue.

2007-04-15 22:37:06 · update #3

Hi, Yes, Sadly, I need to get users to double click it. They can't use excel consistently enough and the system will be using these files (plus data entered) to process automated into another database, so, sadly, yes they do need to double click,

2007-04-16 22:15:49 · update #4

8 answers

Mark the cells containing numbers as text.

Right Click the cell containing the numbers
Select Format Cells
Select Text from the 'Numbers' tab
Click ok

Hopefully this should do.

2007-04-15 22:02:27 · answer #1 · answered by StarChaser 5 · 0 0

Do you need to open the document by double-clicking?
You could open from the file menu. Excel will ask you whether the file is "delimited" (has columns separated by a character - normally tab or comma) or "fixed-width" (all the columns are the same number of digits.
Select fixed-width, Next, move/create/delete column lines (I'm guessing you'd need to delete them all - do this by double-clicking on them), Next, highlight the columns you want to retain the zeroes on and make sure the "column data" radio button is set to text, click finish and you should have the fil opened with leading zeroes

2007-04-16 22:13:02 · answer #2 · answered by Paxo 2 · 1 0

You have to add a single quote before the number... for example if the text file contains 000000123, make it '000000123. In excel it will initially show you the leading ', but if you double click in the cell that contains '0000000123 (after the txt is opened in excel), the ' will disappear.

HTH

2007-04-15 23:34:21 · answer #3 · answered by SmartSpider 4 · 0 0

I extremely have written quite a few purposes that output worker identity numbers and those numbers have 3 maximum well known zeros. that's complicated to handle because of the fact that Excel will constantly guess on the records sort and you could no longer tell it any in yet differently while exporting. My suggestion is to apply a definite character (like the only quote) in front of the sphere fee, which will constantly make the main well known zeros look. Then tell your different application interpreting it to bypass the 1st character. i've got performed this many cases interior the previous and it variety of feels to paintings nicely. Your different determination, of direction, is to manually upload the zeros. Yuck. solid success!

2016-12-10 03:14:29 · answer #4 · answered by ? 4 · 0 0

You may change the format of the entire column to Text, but numbers that have already been entered while the format was general will retain the original format.

You will have to reenter the numbers as text.

2007-04-17 04:06:32 · answer #5 · answered by Dilip Rao 3 · 0 0

Put a ' before the numbers in the .txt file and import in General format.

2007-04-15 22:07:17 · answer #6 · answered by Kes51 4 · 0 0

right click on the top of column eg C and then click on text

2007-04-15 21:59:49 · answer #7 · answered by mrs r 2 · 0 0

Put quotes around everything, maybe?

2007-04-15 22:35:33 · answer #8 · answered by Kasey C 7 · 0 0

fedest.com, questions and answers