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
-
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
13 hours, 45 minutes ago -
Small desktops
by
Susan Bradley
1 hour, 12 minutes ago -
Totally disable Bitlocker
by
CWBillow
8 hours, 36 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
22 hours, 24 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
1 day ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 3 hours ago -
Mystical Desktop
by
CWBillow
1 day, 3 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
8 hours, 55 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
14 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
1 day, 18 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 21 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
1 day, 19 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 12 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
2 days, 7 hours ago -
Location, location, location
by
Susan Bradley
21 hours, 36 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
2 days, 8 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 23 hours ago -
June 2025 Office non-Security Updates
by
PKCano
2 days, 19 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
21 hours, 57 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
2 days, 19 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
3 days, 5 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
2 days, 8 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
3 days, 14 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
3 days, 14 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
3 days, 4 hours ago -
Firefox 139
by
Charlie
2 days, 20 hours ago -
Who knows what?
by
Will Fastie
1 day, 23 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 hour, 38 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
1 day, 8 hours ago -
Misbehaving devices
by
Susan Bradley
2 days, 10 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.