+ Reply to Thread
Results 1 to 10 of 10

Import text file with criteria

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

    Import text file with criteria

    Hi.


    Example of text file:
    HTML Code: 
    This data is imported into Excel and in the Sheet1 records that begin with 0 (zero) should be copied on Sheet 2, beginning with the letter "A" to Sheet3, those that begin with "C" for the Worksheet 4 with "D" for Worksheet 5, "F" for the Sheet 6, "M" for Planiha 7, with the number "1" to 8 and the sheet with the number "9" for 9 Worksheet.
    Already I am grateful for the interest and help

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

    Re: Import text file with criteria

    Hi

    Doing so is it possible?

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

    Re: Import text file with criteria

    If someone did not understand I can explain again

    Thank's

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

    Re: Import text file with criteria

    Hi

    If anyone can help me anyway I am very grateful

    Thank

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Import text file with criteria

    See attached to see if I got you...

    If raw data is in Sheet1, add a column before the raw data, and add formula:

    =LEFT(B1)&"_"&COUNTIF(B$1:B1,LEFT(B1)&"*")

    copied down.

    Then in each other sheet, in A1 enter the beginning Letter/Digit you want to list....

    Then select sheet2, hold the shift key down and select the last sheet.

    Then in A2 of any of those sheets enter formula:

    =IFERROR(INDEX(Sheet1!B:B,MATCH($A$1&"_"&ROWS($A$3:$A3),Sheet1!$A:$A,0)),"")

    copied down as far as you need and across the appropriate number of columns...

    Then right click any tab name and choose to ungroup sheets....
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: Import text file with criteria

    I'm very happy to have responded, thank you!

    There is a chance to do it via VBA?

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

    Re: Import text file with criteria

    Hi.

    I am very curious about VBA, would also be faster and more responsive.

    Thank

  8. #8
    Registered User
    Join Date
    11-17-2010
    Location
    MN, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Import text file with criteria

    here's my attempt.
    Please note that some editing will likely be needed, especially in regards to the sheet names.
    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: Import text file with criteria

    I am eternally grateful!

    I'll try but still thank you!
    Thank you!

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

    Re: Import text file with criteria

    Hi Chris Oswald, an error occurred.
    See,
    execution-time error '438 '. The object does not support this property or method at this point of execution.
    Can you help me?

+ 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