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, 7 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
-
89 million Steam account details just got leaked,
by
Alex5723
6 hours, 31 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
6 hours, 39 minutes ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
1 hour, 5 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 minute ago -
Installer program can’t read my registry
by
Peobody
7 hours, 54 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
20 hours, 9 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
2 hours, 45 minutes ago -
False error message from eMClient
by
WSSebastian42
17 hours, 47 minutes ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 2 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 4 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
40 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 day, 7 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
8 hours, 38 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 13 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
1 day, 18 hours ago -
Another big Microsoft layoff
by
Charlie
1 day, 18 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
21 hours, 32 minutes ago -
May 2025 updates are out
by
Susan Bradley
11 hours, 10 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days ago -
Drivers suggested via Windows Update
by
Tex265
2 days ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
1 day, 21 hours ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 days, 7 hours ago -
Apple releases 18.5
by
Susan Bradley
2 days, 1 hour ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
2 days, 8 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 days, 9 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
17 hours, 30 minutes ago -
No HP software folders
by
fpefpe
2 days, 16 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 day, 14 hours ago -
Stay connected anywhere
by
Peter Deegan
2 days, 22 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.