We get a flat file from our client in cvs format. It contains numbers that are from 10 to 17 characters in length. When we try to import the file into Excel or Access the number is imported as 123457E+16. How can we make sure that if we change the format the number will not be rounded or changed in any manner.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Convert cvs to excel (Excel XP)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Convert cvs to excel (Excel XP)
- This topic has 18 replies, 5 voices, and was last updated 21 years, 8 months ago.
Viewing 5 reply threadsAuthorReplies-
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 7:54 pm #719567I don’t know about Access, but in Excel the number shouldn’t be changed at all. If you make the Excel column wider, I suspect that you will see the correct number. You could also click on a cell and see what number shows up in the formula bar.
I’ve only done a little bit with Access, but I suspect it wouldn’t change the number either.
-
H. Legare Coleman
AskWoody Plus -
WSchipshot
AskWoody Lounger -
H. Legare Coleman
AskWoody Plus -
H. Legare Coleman
AskWoody Plus
-
-
WSchipshot
AskWoody Lounger
-
-
H. Legare Coleman
AskWoody Plus
-
-
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 7:54 pm #719568I don’t know about Access, but in Excel the number shouldn’t be changed at all. If you make the Excel column wider, I suspect that you will see the correct number. You could also click on a cell and see what number shows up in the formula bar.
I’ve only done a little bit with Access, but I suspect it wouldn’t change the number either.
-
H. Legare Coleman
AskWoody PlusSeptember 24, 2003 at 7:54 pm #719569Excel has a limit of 15 digits for any numeric value (and I believe that Access does also). To import that data and not lose anything, you will have to import that field as text. To do this, do the following:
1- Rename the file from .CSV to .TXT.
2- Open Excel to the worksheet where you want to import the data.
3- Select “Get Extermal Data” from the Data menu and then click on “Import text file” on the flyout menu.
4- Select the file and click on the Import button.
5- In the dialog box click on Delimited and then on the Next button.
6- Click on Comma and any other appropriate delimiters then click on Next.
7- Click on the column header above the column with the 17 digit numbers and then click on Text. If any other columns need special data type, click on those column headers and then on the appropriate data type.
8- Select where you want the data placed and click on OK.
You should now have the data imported with that column as text.
-
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 8:52 pm #719640I thought I’d play around with Excel 97’s limits for internal calcs and tried the following:
cell A1: =VALUE(“1234567890123456”)
cell B1: various values
cell C1: =A1+B1When B1=5, C1=1,234,567,890,123,450
When B1=6, C1=1,234,567,890,123,460
When B1=5.12, C1=1,234,567,890,123,450
When B1=5.13, C1=1,234,567,890,123,460Can you explain this?
-
WSsdckapr
AskWoody LoungerSeptember 24, 2003 at 9:18 pm #719650Excel has only 15 digits MAX of precision and it has “rounding errors” in the last place.
=VALUE(“1234567890123456”) = 1234567890123450 (it TRUNCATES it does NOT round)
1234567890123450 + 5 = 1234567890123455 gets rounded to 1234567890123450 (ZERO is just a placeholder NOT a significant figure)
1234567890123450 + 6 = 1234567890123456 gets rounded to 1234567890123460
1234567890123450 + 5.13 = 123456789012345513 gets rounded to 1234567890123460The only 1 “wrong” is:
1234567890123450 + 5.12 = 123456789012345512 gets rounded to 1234567890123450 instead of the “correct” 1234567890123460, but off 1 digit in 10^15 is not a too bad a rounding error. Remember it also uses base 2 not base 10 as we are doing.Steve
-
WSsdckapr
AskWoody LoungerSeptember 24, 2003 at 9:18 pm #719651Excel has only 15 digits MAX of precision and it has “rounding errors” in the last place.
=VALUE(“1234567890123456”) = 1234567890123450 (it TRUNCATES it does NOT round)
1234567890123450 + 5 = 1234567890123455 gets rounded to 1234567890123450 (ZERO is just a placeholder NOT a significant figure)
1234567890123450 + 6 = 1234567890123456 gets rounded to 1234567890123460
1234567890123450 + 5.13 = 123456789012345513 gets rounded to 1234567890123460The only 1 “wrong” is:
1234567890123450 + 5.12 = 123456789012345512 gets rounded to 1234567890123450 instead of the “correct” 1234567890123460, but off 1 digit in 10^15 is not a too bad a rounding error. Remember it also uses base 2 not base 10 as we are doing.Steve
-
H. Legare Coleman
AskWoody PlusSeptember 24, 2003 at 11:47 pm #719698Steve explained it pretty well. Just to add a little to his discussion. This is caused by the fact that the computer works in binary, not decimal. Therefore, the number of significant digits is not exactly 15 decimal digits, it is a little more than 15. So, the differences you are seeing are caused by where the hardware loses binary digits. when converted back to decimal, you get the rounding errors that you see.
-
H. Legare Coleman
AskWoody PlusSeptember 24, 2003 at 11:47 pm #719699Steve explained it pretty well. Just to add a little to his discussion. This is caused by the fact that the computer works in binary, not decimal. Therefore, the number of significant digits is not exactly 15 decimal digits, it is a little more than 15. So, the differences you are seeing are caused by where the hardware loses binary digits. when converted back to decimal, you get the rounding errors that you see.
-
-
WSchipshot
AskWoody LoungerSeptember 24, 2003 at 8:52 pm #719641I thought I’d play around with Excel 97’s limits for internal calcs and tried the following:
cell A1: =VALUE(“1234567890123456”)
cell B1: various values
cell C1: =A1+B1When B1=5, C1=1,234,567,890,123,450
When B1=6, C1=1,234,567,890,123,460
When B1=5.12, C1=1,234,567,890,123,450
When B1=5.13, C1=1,234,567,890,123,460Can you explain this?
-
-
H. Legare Coleman
AskWoody PlusSeptember 24, 2003 at 7:54 pm #719570Excel has a limit of 15 digits for any numeric value (and I believe that Access does also). To import that data and not lose anything, you will have to import that field as text. To do this, do the following:
1- Rename the file from .CSV to .TXT.
2- Open Excel to the worksheet where you want to import the data.
3- Select “Get Extermal Data” from the Data menu and then click on “Import text file” on the flyout menu.
4- Select the file and click on the Import button.
5- In the dialog box click on Delimited and then on the Next button.
6- Click on Comma and any other appropriate delimiters then click on Next.
7- Click on the column header above the column with the 17 digit numbers and then click on Text. If any other columns need special data type, click on those column headers and then on the appropriate data type.
8- Select where you want the data placed and click on OK.
You should now have the data imported with that column as text.
-
macropod
AskWoody_MVPSeptember 25, 2003 at 6:37 am #719761Now that you know why this occurs, you might also like a relatively simple work-around: Simply place a tick mark in front of all of the data with more than 15 digits – or in front of all data, if that suits. What this does is to convert the number to a text string, and Excel can handle text strings over 1000 charatcers.
Of course, if you need to do math with the imported values, you’ll need to extract the numbers from the text strings. With a bit of effort (or maybe a lot if you’re doing anything complex), though, you’ll be able to do this woithout losing any precision.
Cheers
Cheers,
Paul Edstein
[Fmr MS MVP - Word] -
macropod
AskWoody_MVPSeptember 25, 2003 at 6:37 am #719762Now that you know why this occurs, you might also like a relatively simple work-around: Simply place a tick mark in front of all of the data with more than 15 digits – or in front of all data, if that suits. What this does is to convert the number to a text string, and Excel can handle text strings over 1000 charatcers.
Of course, if you need to do math with the imported values, you’ll need to extract the numbers from the text strings. With a bit of effort (or maybe a lot if you’re doing anything complex), though, you’ll be able to do this woithout losing any precision.
Cheers
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Viewing 5 reply threads -

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
-
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
24 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
1 hour, 24 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
2 hours, 35 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
13 hours, 32 minutes ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
3 hours, 4 minutes ago -
System Restore and Updates Paused
by
veteran
16 hours, 2 minutes ago -
Windows 10/11 clock app
by
Kathy Stevens
3 hours, 8 minutes ago -
Turn off right-click draw
by
Charles Billow
19 hours, 16 minutes ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
22 hours, 47 minutes ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
42 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
1 day ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
3 hours, 17 minutes ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
1 day, 6 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 10 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
1 day, 13 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
6 hours, 7 minutes ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
2 days, 2 hours ago -
June 2025 updates are out
by
Susan Bradley
34 minutes ago -
Mozilla shutting Deep Fake Detector
by
Alex5723
2 days, 16 hours ago -
Windows-Maintenance-Tool (.bat)
by
Alex5723
2 days, 2 hours ago -
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
2 days, 19 hours ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
2 days, 19 hours ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
2 days, 19 hours ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
2 days, 11 hours ago -
re-install Windows Security
by
CWBillow
2 days, 22 hours ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
3 days, 2 hours ago -
macOS Tahoe 26
by
Alex5723
2 days, 20 hours ago -
Migrating from win10 to win11, instructions coming?
by
astro46
11 hours, 14 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
2 days, 11 hours ago -
Recommended watching : Mountainhead movie
by
Alex5723
2 days, 11 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.