![]() |
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 |
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 |
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 |
All times are GMT +1. The time now is 04:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com