CSV file format problem

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Lorraine51

Thread Starter
Joined
Nov 10, 2011
Messages
4
I am creating a CSV file (via Excel) to create a report that will be uploaded to a government entity. One of my data requirements is a product UPC code. The file format (as specified by the state) allows for 18 digits in this particular field. My problem is when I "save" the file in the CSV format, any number in this field that is 12-digits or larger is rounded to another number when the file is saved. I have tried everything that I can think of, and nothing seems to work. Is there anything I can do to format this field so that it will accept and save 12-digit numbers? I am VERY frustrated!!! Thank you for any help that you may be able to provide.
 
Joined
Jul 29, 2001
Messages
21,334
Do they have any documentation for their CSV requirement? How is your column formatted?
 

Lorraine51

Thread Starter
Joined
Nov 10, 2011
Messages
4
My column is formatted as "general" in Excel. The only documentation they gave me is record format instructons which says the colum can have a field length of 18 and the data type is "decimal". There are no decimals in UPC codes. How can I format my colunm to reflect decimals -- maybe that would solve my problem?
 
Joined
Jul 29, 2001
Messages
21,334
Try setting the column to number with zero decimal points. Are UPC codes all numeric or are they alphanumeric?
 

Lorraine51

Thread Starter
Joined
Nov 10, 2011
Messages
4
UPC Codes are numeric only. I tried your suggestion -- still having the same problem. It only rounds the numbers that are 12-digits or more. For example, one of my UPC codes is 721733000029, and it is being rounded to 721733000000.
 
Joined
Jul 29, 2001
Messages
21,334
OHHHHH!! Set it to a custom format.

By setting the number format in the cell as "0000"
 

Lorraine51

Thread Starter
Joined
Nov 10, 2011
Messages
4
Thanks! I tried that, but as soon as I save the file, it still converts it. It also doesn't save the custom designation for the record, it changes that too. Is the problem perhaps going from Excel to CSV that is the problem?
 
Joined
Jul 29, 2001
Messages
21,334
Does it round the number still or does it convert it to something like 2.124323+e11? I am sure it is a conversion thing from out of Excel. I wonder if something like Google Apps would do a better job of not mangling exports to CSV files?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top