Opening a text or CSV file in Excel :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Opening a text or CSV file in Excel
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

LISAR
Board Regular


Joined: 11 Aug 2002
Posts: 64
Location: Workcover

Status: Offline

 Reply with quote  

Opening a text or CSV file in Excel

Hi,

I have a CSV file where one of the field's is a number field which has 17 characters/numbers in. The file when opening is substituting the last 2 digits as 00, instead of what they should be. Example is below.

20020407080000334

it opens in excel as

20020407080000300

Any suggestions would be greatly appreciated. icon_help.gif

Post Wed May 28, 2003 4:52 am 
 View user's profile Send private message

PaddyD
MrExcel MVP


Joined: 02 May 2002
Posts: 5907


Status: Offline

 Reply with quote  

Re: Opening a text or CSV file in Excel

change the file extension to txt, open from excel - you should get the 'text to cols' dialogue box. make sure you select text as the data type for the column - the prob you've got is that the string is being interpreted as a number & is falling victim to excel's 15 digit number precision limit.

paddy

Post Wed May 28, 2003 5:17 am 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.