1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Another Excel thread

Discussion in 'BBS Hangout' started by ClutchCityReturns, Dec 16, 2008.

  1. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    Maybe we should have an official "Excel Help" thread :eek:

    Anyway, I'm having some trouble getting a column formatted correctly. Basically, I need the numbers to look like this...

    09
    01
    09
    09
    09
    09
    01
    01

    NOT like this...

    9
    1
    9
    9
    9
    9
    1
    1

    To achieve this, I went to "Custom" under cell formatting and selected the "0" option, then edited it to be "00". This works. The problem is in the next step, when I save as .CSV. I get the warning that some features may be lost when going to .CSV and that particular formatting is apparently one of them.

    I know that this can be done, because I did a similar import last week! I can't figure out what I did differently this time. And yes, I have to save to .CSV for the program I'm importing to.
     
  2. Space Ghost

    Space Ghost Contributing Member

    Joined:
    Feb 14, 1999
    Messages:
    15,113
    Likes Received:
    6,272
    i always put an apostrophe ' before my entry if I don't want excel correcting it for me. Dunno why it works, it just works.

    Edit: The apostrophe stores the number as text, but still treats it as a number. It won't show the apostrophe.
     
  3. ScriboErgoSum

    ScriboErgoSum Contributing Member

    Joined:
    Aug 5, 2002
    Messages:
    3,138
    Likes Received:
    355
    You'll have to use another colmun to format them.

    If you need leading zeroes, just paste the following formula in (Assuming the original data was in Column A)

    =RIGHT("000000", A1, 2).

    You can change that number if you need them to be more than 2 characters long.

    Paste it down, and you'll have your data formatted. Just range value it to where you need it.
     
  4. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    Dang. It seemed to work, but when I saved the .CSV and re-opened it, the changes were gone. Thanks though.
     
  5. arkoe

    arkoe (ง'̀-'́)ง

    Joined:
    Dec 13, 2001
    Messages:
    10,372
    Likes Received:
    1,589
    Right click on the cell, choose format cells and then switch from General to Text.
     
  6. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    Not that simple, my friend. :(

    Thanks though.
     
  7. Porsche576

    Porsche576 Member

    Joined:
    Jun 12, 2002
    Messages:
    61
    Likes Received:
    0
    cant you just right click "format cells" go to CUSTOM and type 0#?
     
  8. Rule0001

    Rule0001 Contributing Member

    Joined:
    Oct 25, 2003
    Messages:
    2,801
    Likes Received:
    1
    Hopefully this thread will let us all EXCEL. You get it? LOL!
     
  9. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    Sure I could do that (I did something similar) but it doesn't help me at all when I go to save it as a .CSV file.
     
  10. arkoe

    arkoe (ง'̀-'́)ง

    Joined:
    Dec 13, 2001
    Messages:
    10,372
    Likes Received:
    1,589
    Open the .csv in notepad and see if it shows the way you expect. Excel may be displaying it funny...
     
  11. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    The text file does show the correct format, but I did a test import with this .CSV file last night and it came up incorrect.
     
  12. JuanValdez

    JuanValdez Contributing Member

    Joined:
    Feb 14, 1999
    Messages:
    34,166
    Likes Received:
    13,593
    Did you try kicking the crap out of your computer? It never really works for me, but damn it feels good sometimes!
     
  13. ScriboErgoSum

    ScriboErgoSum Contributing Member

    Joined:
    Aug 5, 2002
    Messages:
    3,138
    Likes Received:
    355
    Try renaming your CSV file to a TXT file. If you File->Open that through Excel, you can specify that it's comma delimited. If you specify that column to be text, it bring in the leading zeroes.

    I just tested that, and it worked.
     
  14. durvasa

    durvasa Contributing Member

    Joined:
    Feb 11, 2006
    Messages:
    38,011
    Likes Received:
    15,482
    After you prepend the 0 by formatting the cells (which you've done),you can copy the column into notepad, and then paste it from notepad back into the column and use "text to column". Set the particular column to text.

    Now when you export to CSV, it will have the 0s.
     
  15. Dr of Dunk

    Dr of Dunk Clutch Crew

    Joined:
    Aug 27, 1999
    Messages:
    45,191
    Likes Received:
    31,157
    This is what I've done in the past and it seems to work.
     
  16. mrdave543

    mrdave543 Contributing Member

    Joined:
    Dec 23, 2002
    Messages:
    3,434
    Likes Received:
    60
    just as a tip for excel here is a free add-in that helps with a lot of formatting with excel

    www.asap-utilities.com
     
  17. Tenchi

    Tenchi Contributing Member

    Joined:
    Feb 14, 1999
    Messages:
    2,257
    Likes Received:
    486
    How'd you get the data? You're importing the data into Excel or trying to save it as a CSV to import it into another application like Access or something?

    Try dropping an X underneath the column header. Then when you save it as a .CSV file itll save the column as a Text column.
     
  18. ClutchCityReturns

    ClutchCityReturns Contributing Member

    Joined:
    Apr 26, 2005
    Messages:
    13,321
    Likes Received:
    2,442
    Thanks for the help everybody. Turns out I basically had it right to begin with, but when I opened it in Excel it was omitting the 0's. When I opened it in Notepad they were there. I just couldn't test the import until everyone was gone for the day.
     

Share This Page

  • About ClutchFans

    Since 1996, ClutchFans has been loud and proud covering the Houston Rockets, helping set an industry standard for team fan sites. The forums have been a home for Houston sports fans as well as basketball fanatics around the globe.

  • Support ClutchFans!

    If you find that ClutchFans is a valuable resource for you, please consider becoming a Supporting Member. Supporting Members can upload photos and attachments directly to their posts, customize their user title and more. Gold Supporters see zero ads!


    Upgrade Now