+ Reply to Thread
Results 1 to 8 of 8

Excel Auto Formating

  1. #1
    Registered User
    Join Date
    12-01-2008
    Location
    California
    Posts
    4

    Excel Auto Formating

    If this has been asked before I'm sorry but this has been driving me nuts for awhile now.

    I run an online store where all the product details are handled by a .CSV file and naturally all the information has to be exact or it won't work at all especially UPC codes and product codes. However whenever I open the .CSV file to edit anything it auto formats several bit of information including several UPCs and product codes that begin with one or more 0's. This among many other problem I have had are all caused by excel's auto formating "tool" and I find it of absolutely no use. Is there any way at all to disable this "tool" so it will stop messing with my data every time I need to make a product change? (I have tried using the '0 trick but when I save the file and open it again later all the '0s are gone again)

    I am running Excel 2007 on Windows Vista SP1
    Last edited by Wiredkevin; 12-02-2008 at 04:55 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Record a macro of you IMPORTING that CSV file and using the format options during the import to make sure the UPC column is imported as a text column, etc. Then name that macro AUTO_OPEN and save the basically blank file....nothing in it but that macro.

    Now every time you open this file, it will import your CSV file properly. You can edit, then export the file. Close your original (macro) file without saving anything since you don't need to.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-01-2008
    Location
    California
    Posts
    4
    Ok, makes sense but every time i set it to text it turns all of the UPC codes into scientific notation [898404000067 turns into 8.98404E+11]. The only way I've been able to fix this is by setting it to number format but that brings back the "0" problem.
    Last edited by Wiredkevin; 12-02-2008 at 01:24 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    hmm, post one of the import sheets and I'll give it a try.

  5. #5
    Registered User
    Join Date
    12-01-2008
    Location
    California
    Posts
    4
    This is a list just containing the part numbers and UPC codes.

    upc codes.zip

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    That imported flawlessly for me.

    1. Data > Import External Data > Import Data, select UPC.csv
    2. Choose delimited...Next
    3. Check off Comma and Space and Treat consecutive delimiters as one...Next
    4. In the Data Preview click on the first column, then select Text in Column Data Format, them click the second column and click Text, then click the third column and select Text
    5. Click Finish and put it on your sheet

  7. #7
    Registered User
    Join Date
    12-01-2008
    Location
    California
    Posts
    4
    Ahh I get it now, I was importing it the wrong way, I wasn't using the import tool but was simply loading up the file then running the macro. Although for mine if I deselect the Comma Delimiter it merges all the data into a single column, once I use the comma delimiter if separates them properly.

    Thanks for the help, I'll be able to use this to fix all the other problems I was having as well.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Glad to help. Be sure to EDIT your original post and mark the PREFIX box, [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1