1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

CSV file format problem

Discussion in 'Business Applications' started by Lorraine51, Nov 10, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. Lorraine51

    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.
     
  2. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    Do they have any documentation for their CSV requirement? How is your column formatted?
     
  3. Lorraine51

    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?
     
  4. Rockn

    Rockn

    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?
     
  5. Lorraine51

    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.
     
  6. Rockn

    Rockn

    Joined:
    Jul 29, 2001
    Messages:
    21,334
    OHHHHH!! Set it to a custom format.

    By setting the number format in the cell as "0000"
     
  7. Lorraine51

    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?
     
  8. Rockn

    Rockn

    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?
     
  9. Sponsor

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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1026308

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice