+ Reply to Thread
Results 1 to 9 of 9

CSV import to Excel based on specific data

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    CSV import to Excel based on specific data

    Hi
    I find this code in google
    Please Login or Register  to view this content.
    I need two things

    1 When I use the above code the data is not correct as the CSV file. I need to fix this.

    2 Is possible import to excel only data based (Código Cliente is equal to: 8160 and 144985 and 24334)?

    Thank you!
    Attached Files Attached Files
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: CSV import to Excel based on specific data

    for 1. try adding decimal separator:

    Please Login or Register  to view this content.
    for 2. you can try doing a filter, and delete all rows where Código Cliente are not what you wanted. If you have no idea how do to this step, you can import the data first, then record a macro to do it, then try to combine the 2 codes together.
    多么想要告诉你 我好喜欢你

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: CSV import to Excel based on specific data

    Hi millz, sorry, but doesn't work!

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: CSV import to Excel based on specific data

    It works when I save your "before" data into a CSV then re-import using the same macro.

    Are you able to post how your original CSV file looks like? in .csv format of course

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: CSV import to Excel based on specific data

    Look my original CSV file
    Attached Files Attached Files

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: CSV import to Excel based on specific data

    Ok, so you are using comma as the decimal separator. Try this now:

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: CSV import to Excel based on specific data

    Thanks millz, very good.
    2. you can try doing a filter, and delete all rows where Código Cliente are not what you wanted. If you have no idea how do to this step, you can import the data first, then record a macro to do it, then try to combine the 2 codes together.
    Tha second doubt. is it possible?

  8. #8
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: CSV import to Excel based on specific data

    Try this now:

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: CSV import to Excel based on specific data

    Hi.millz

    that worked brilliantly, I really appreciate your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to import excel specific data to a new workbook
    By GEMINI528 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2013, 02:35 PM
  2. import specific data from a webpage into excel with VBA
    By wolfram13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 01:26 PM
  3. import specific data from txt to excel
    By raysefo in forum Excel General
    Replies: 4
    Last Post: 07-13-2010, 07:02 AM
  4. Import data range based on specific criteria
    By pdmkh in forum Excel General
    Replies: 4
    Last Post: 10-14-2009, 02:07 AM
  5. Import Specific Data from Another Excel Worksheet
    By NewExcelUser in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2006, 07:49 AM

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