+ Reply to Thread
Results 1 to 6 of 6

sort and extract text to another excel file

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    London, England
    MS-Off Ver
    2003,2007,2010,2013
    Posts
    65

    Post sort and extract text to another excel file

    Hi,

    i have a large excel file contains about 100,000 rows of data on one column and need to be sorted and filtered to another file with three columns.

    The main file contains one column with those data, and i need to extract them to another file as shown below


    1.png

    i have attached two files for before and after.

    There some points if possible to be maintained:

    1- Save the extracted result to another excel file at the same path.

    2- Save the result file after extracting every 5000 rows to avoid crashing file because of the huge number of data as i mentioned previously, and preferred to add progress bar as this

    2.png

    and to be saved with name like this sequence: 1-5000 / 5001-10000 / 10001-15000 .....etc.



    I'm sorry if i make it long and little bit hard but i appreciate if someone can help or give me a little hint because i'm in a big trouble with that file .


    Thanks in Advance

    Cheers


    Cross Posted link: Here
    Attached Files Attached Files
    Last edited by Ethen5155; 03-13-2019 at 07:18 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: sort and extract text to another excel file

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-11-2017
    Location
    London, England
    MS-Off Ver
    2003,2007,2010,2013
    Posts
    65

    Re: sort and extract text to another excel file

    Hi Jindon,

    really i couldn't find enough words to thank you for this great help you are my savior .

    it works like magic but there is still one last point. after running code it extracts first 5000 rows and re name it with (1-5000.xls) but the second 5000 rows the code is trying to replace the old one with it

    1.png

    and it is supposed to create a new file with new name!

    kindly advise please and many thanks again for your generous efforts

    Cheers

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: sort and extract text to another excel file

    OOps
    Replace red part to bold part like below.
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2017
    Location
    London, England
    MS-Off Ver
    2003,2007,2010,2013
    Posts
    65

    Re: sort and extract text to another excel file

    SO BRILLIANT

    Many thanks for your help dear, so appreciated for it.

    Kindly Regards

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: sort and extract text to another excel file

    You are welcome and thanks for the rep.

+ 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. Extract text between two words in a text file and paste to Excel
    By rasull13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2018, 03:38 PM
  2. Extract text from an external Excel using the file path only
    By gaker10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2015, 12:30 PM
  3. Need help with macro to extract tables in a text file to excel
    By jshell82 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-27-2013, 12:57 AM
  4. VBA Extracting Specific Data from a Text File into Multiple Worksheets
    By csjung in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 12:15 PM
  5. How to extract Information from an Excel File and entering those data in a text file?
    By bikash.nitk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2012, 12:13 PM
  6. [SOLVED] How to extract cetain data from text file and import to excel
    By GamingSV in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-14-2012, 05:56 PM
  7. Replies: 0
    Last Post: 06-17-2008, 12:39 PM

Tags for this Thread

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