#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Sorting a csv

Hi,

I have a csv that has around 250,000 rows. I have an excel macro that reads
data from the csv, but it expects the csv to be sorted. So I want to sort
the csv file using excel, (I could sort in access and export but this would
not be automated) I want the process automated.

Since the csv is 250,000 rows I cannot open it in excel and sort, because I
have excel 2003 it has a maximum row of 65,000. Does anyone know how to do
this, I tried looking online but could find nothing.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 348
Default Sorting a csv

Jeff wrote:
Hi,

I have a csv that has around 250,000 rows. I have an excel macro that reads
data from the csv, but it expects the csv to be sorted. So I want to sort
the csv file using excel, (I could sort in access and export but this would
not be automated) I want the process automated.

Since the csv is 250,000 rows I cannot open it in excel and sort, because I
have excel 2003 it has a maximum row of 65,000. Does anyone know how to do
this, I tried looking online but could find nothing.

Thanks

You may be able to sort a csv file using the "sort" command prompt. Type
sort /? at a command prompt for help. Not sure if this will handle
250,000 rows.
Other choice is to upgrade to Excel 2007 or use Quattro Pro, which allow
1,000,000 rows.

Bill

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sorting a csv

Microsoft has a macro he

http://support.microsoft.com/default...;EN-US;q120596

which enables you to import files with more than 65k rows - they get
put into separate sheets. You could then sort each sheet.

But, you would then need another macro to carry out a merge sort from
the 4 sheets and to produce your text file, as saving in csv format
from Excel will be limited to a single sheet.

Given that you will need macros to automate all this, wouldn't Access
be a better tool to use anyway? Try posting in one of the Access
groups.

Hope this helps.

Pete

On Mar 5, 12:08*am, Bill Sharpe wrote:
Jeff wrote:
Hi,


I have a csv that has around 250,000 rows. *I have an excel macro that reads
data from the csv, but it expects the csv to *be sorted. *So I want to sort
the csv file using excel, (I could sort in access and export but this would
not be automated) I want the process automated.


Since the csv is 250,000 rows I cannot open it in excel and sort, because I
have excel 2003 it has a maximum row of 65,000. *Does anyone know how to do
this, I tried looking online but could find nothing.


Thanks


You may be able to sort a csv file using the "sort" command prompt. Type
sort /? at a command prompt for help. Not sure if this will handle
250,000 rows.
Other choice is to upgrade to Excel 2007 or use Quattro Pro, which allow
1,000,000 rows.

Bill


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
Sorting VLookup vs Sorting SumProduct Lauren Excel Discussion (Misc queries) 1 August 21st 07 12:19 AM
Sorting TimB via OfficeKB.com Charts and Charting in Excel 1 March 19th 07 04:21 PM
Sorting zil New Users to Excel 2 March 13th 07 06:43 PM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM
sorting Harsha Excel Discussion (Misc queries) 1 March 23rd 06 12:55 PM


All times are GMT +1. The time now is 12:22 AM.

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

About Us

"It's about Microsoft Excel"