I have an Excel Workbook that I save as a .txt file on a weekly basis. This week when I saved the .txt file it converted some of my numbers to dates. The numbers it converted have a hyphen example: 03-12225. These same types of number have been in this file for a couple of years but this is the first time it has converted them to dates. I have tried multiplying the numbers by 1, placing a single quote in front of the number (in the final version the field needs to be text), and specifying the column to be text when opening the .txt file in Excel and still the data is converted to a date. Another odd thing is not every field with type of number (with the hyphen) is converted to a date. Any ideas? Thank you
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Convert to Text File (Excel2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Convert to Text File (Excel2000)
- This topic has 2 replies, 2 voices, and was last updated 20 years, 11 months ago.
Viewing 1 reply threadAuthorReplies-
WSAndrewO
AskWoody LoungerMay 14, 2004 at 9:13 pm #827452It rather depends on what you want.
I do not believe that the export to txt will have converted to dates – almost certainly, the dates will appear as a conversion when you re-import them again into a spreadsheet. You could prove this by using notepad or Word to look at the exported text file. So long as you do not have to re-read the file in Excel you will have no issues.
If you could avoid using the hyphen and use something else instead – e.g. a tilde ~ or an underscore _ you would have absolutely no problems with date confusion. If you MUST use hyphens then it is a case of making sure that they cannot be interpretted as dates ever.
I’m unsure of your application – in particular what application needs to USE the .txt file. If it were possible to save the data as an Excel sheet and simply export a .txt file each week you’d also have no problems.
In summary, the issue probably appears when you read the file into Excel – nothing you’ve described so far says that reading a text file into Excel is necessary – I’m assuming that an alternate application or presentation requires it.
-
WSAndrewO
AskWoody LoungerMay 14, 2004 at 9:13 pm #827453It rather depends on what you want.
I do not believe that the export to txt will have converted to dates – almost certainly, the dates will appear as a conversion when you re-import them again into a spreadsheet. You could prove this by using notepad or Word to look at the exported text file. So long as you do not have to re-read the file in Excel you will have no issues.
If you could avoid using the hyphen and use something else instead – e.g. a tilde ~ or an underscore _ you would have absolutely no problems with date confusion. If you MUST use hyphens then it is a case of making sure that they cannot be interpretted as dates ever.
I’m unsure of your application – in particular what application needs to USE the .txt file. If it were possible to save the data as an Excel sheet and simply export a .txt file each week you’d also have no problems.
In summary, the issue probably appears when you read the file into Excel – nothing you’ve described so far says that reading a text file into Excel is necessary – I’m assuming that an alternate application or presentation requires it.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
35 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
5 hours, 9 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
13 hours, 40 minutes ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
14 hours, 29 minutes ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
4 hours, 28 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
9 hours, 53 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 1 hour ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 5 hours ago -
Unable to eject external hard drives
by
Robertos42
9 hours, 8 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
5 hours, 28 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
10 hours, 46 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 9 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 12 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
2 days, 15 hours ago -
Upgrade Sequence
by
doneager
2 days, 9 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
14 hours, 54 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 8 hours ago -
The incredible shrinking desktop icons
by
Thumper
3 days, 13 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
3 days, 14 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
13 hours, 39 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
7 hours, 9 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 23 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days, 4 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 12 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
4 days, 13 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 21 hours ago -
24H2 fixed??
by
CWBillow
3 days, 13 hours ago -
Uninstalr Updates
by
jv16
5 days, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.