+ Reply to Thread
Results 1 to 12 of 12

Csv to excel

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Csv to excel

    Hi guys
    Am new to forum. I never actually work so much with excel nor I know it.

    I have one time job/task to do:
    I have File.csv file that looks like:
    -----------------------------------------------
    "Time","One","Two",...."UpTo40"
    08/27/2010 12:45:42,77,56,44,55,77,86...until_40
    -----------------------------------------------

    Text from above is linked to value below eg:
    One=77
    Two=56
    Tree=44 etc..

    What I would like to make is to:
    Load all these text/digit values to its own columns in excel on click of button:
    B10 = text example One
    C11 = value blow which is 77

    B11 = text example Two
    C12 = value below which is 56

    ....and so until B50 C50..


    Can someone help?
    Thanks in advance


    :

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Csv to excel

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Ok Roy m8..
    I'll make those two..

  4. #4
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Ok, here are both file:
    csv (read from file)
    parser (which actually looks like what am trying to make)


    Thanks in advance
    Attached Files Attached Files

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Csv to excel

    Is it one line of data per csv?

  6. #6
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Yes Roy.
    Only one csv file to read from to Excel file.
    Only one line. Actually first line is "text" second is digit.

    Thanks m8

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Csv to excel

    I can't see why you don't just manually copy from the csv then paste special -> transpose, or do you have several files to do this with?

  8. #8
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Roy, 'cos it needs to be like that, automatically

    This *.csv is generated by other software, and it generate file every month (a csv file).
    Jan\File.csv
    Feb\File.csv
    etc...

    I just need this "base of parsing from-to".. so i can add more stuff to it, example:
    Run it automatically every 30days and read from last month file.csv and save to
    C:\Report\Jan\Report.whatever.html.doc etc..
    But this in "future" .-))

    I hope you understand what am trying :-))

  9. #9
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    anybody :-((

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Csv to excel

    Start by using the Macro Recorder., post back for help with the generated code

  11. #11
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Roy, i did some homework.. i got something but its not quite working... ((

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    08-27-2010
    Location
    AU
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Csv to excel

    Got it with macro recorder, easy.
    However I got another problem. If I modify text/value in csv, the same values are inserted in cells.
    How to modify code to copy what is btw " ".

    File csv content:
    "Time","Ole","Two","Tree","Four"


    Please Login or Register  to view this content.
    ActiveCell.FormulaR1C1 = ?

+ 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