Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Sort more then 65,000 rows in Excel

Hi,

I am using Excel 2003 and it is limited to 65,000 rows. I want to sort a
..csv file that has ~ 360,000 rows. I tried using the Bubble sort macro to do
this but it is too slow. Is there any way to do this using excel?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Sort more then 65,000 rows in Excel

Other than upgrading to Office 2007, there's not much you can do in Exel.

If your file source is a delimited file you could bring it into MS Word,
convert the data to a table using your delimiter as a column break and the
sort the table.


--
Kevin Backmann


"Jeff" wrote:

Hi,

I am using Excel 2003 and it is limited to 65,000 rows. I want to sort a
.csv file that has ~ 360,000 rows. I tried using the Bubble sort macro to do
this but it is too slow. Is there any way to do this using excel?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sort more then 65,000 rows in Excel

The algorithm you need is a merge sort. Assuming you have split your
file into sheet-size chunks (there is a macro to do this from MS), you
have to sort each sheet separately which you can do with the normal
sort function. Then your macro would have to examine the top row in
each of the six sheets and extract or copy the appropriate record into
a new sheet and adjust the counter/pointer for that sheet. You will
have to maintain a pointer for each sheet and increment the
appropriate pointer, so that each time around the loop you are always
looking at the six "top" records and deciding which is the next one to
take. You also have to keep a count of the number of rows you have
used in the destination sheet, so that when it is full you then start
to use a new sheet. When you have filled up your six sorted sheets,
you can remove the original 6 sheets.

Hope this helps.

Pete

On Apr 17, 2:48*pm, Jeff wrote:
Hi,

I am using Excel 2003 and it is limited to 65,000 rows. *I want to sort a
.csv file that has ~ 360,000 rows. *I tried using the Bubble sort macro to do
this but it is too slow. *Is there any way to do this using excel?

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compare and sort rows in Excel [email protected] Excel Discussion (Misc queries) 2 August 31st 06 06:58 PM
how do I sort multiple rows in excel jsmith@nisltd Excel Discussion (Misc queries) 3 August 14th 06 03:45 PM
In Excel it would help a lot to be able to sort rows by color Jeff Watkins Excel Discussion (Misc queries) 7 March 13th 06 09:06 PM
excel - sort, selected rows?? [email protected] Excel Worksheet Functions 2 December 24th 05 05:23 PM
Can Excel sort rows by color? Grant Excel Discussion (Misc queries) 2 December 16th 04 02:00 PM


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"