#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default sort

How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default sort

sort the minor columns first
D-E-F
then the major columns
A-B-C

More information on sorting:
http://www.mvps.org/dmcritchie/excel/sorting.htm

If you have Excel 2003 then you will have to avoid
the Ctrl+A problem introduced with that version
http://www.mvps.org/dmcritchie/excel...x2k.htm#foobar
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

wrote in message ups.com...
How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default sort

Thanks. It breaks the row information. No? For example if I sort them
by column A, B and C. I get a excel file. Then if I sort them by D, E
and F then the rows are not correct anymore. Therefore, I get wrong
information in a row.
Since we are at it, is there possible to generate a sequence? For
example I have a excel file and I want to insert a column to the left
and fill that column with a sequence, so that each row is numbered
form 1 though the highest row number? Thanks again.


On Feb 5, 10:52 am, "David McRitchie"
wrote:
sort the minor columns first
D-E-F
then the major columns
A-B-C

More information on sorting:
http://www.mvps.org/dmcritchie/excel/sorting.htm

If you have Excel 2003 then you will have to avoid
the Ctrl+A problem introduced with that version
http://www.mvps.org/dmcritchie/excel...x2k.htm#foobar
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm



wrote in oglegroups.com...
How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? Thanks.- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default sort

If I read your second post correctly.

With all sorting you must select all columns then sort on three columns and
as David susgested the first sort is to the right columns D-E-F then sort on
columns A-B-C.

Without selecting all columns sorting on A-B-C will sort only columns A-B-C
leaving the rest as is, hence jumbelling the rows.

HTH

--
Thank you

Bob C
It cost''''''''s little to carry knowledge with you.


" wrote:

Thanks. It breaks the row information. No? For example if I sort them
by column A, B and C. I get a excel file. Then if I sort them by D, E
and F then the rows are not correct anymore. Therefore, I get wrong
information in a row.
Since we are at it, is there possible to generate a sequence? For
example I have a excel file and I want to insert a column to the left
and fill that column with a sequence, so that each row is numbered
form 1 though the highest row number? Thanks again.


On Feb 5, 10:52 am, "David McRitchie"
wrote:
sort the minor columns first
D-E-F
then the major columns
A-B-C

More information on sorting:
http://www.mvps.org/dmcritchie/excel/sorting.htm

If you have Excel 2003 then you will have to avoid
the Ctrl+A problem introduced with that version
http://www.mvps.org/dmcritchie/excel...x2k.htm#foobar
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm



wrote in oglegroups.com...
How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? Thanks.- Hide quoted text -


- Show quoted text -




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default sort

Thanks.
Since we are at it, is there possible to generate a sequence? For
example I have a excel file and I want to insert a column to the left
and fill that column with a sequence, so that each row is numbered
form 1 though the highest row number? Thanks again.

On Feb 5, 10:52 am, "David McRitchie"
wrote:
sort the minor columns first
D-E-F
then the major columns
A-B-C

More information on sorting:
http://www.mvps.org/dmcritchie/excel/sorting.htm

If you have Excel 2003 then you will have to avoid
the Ctrl+A problem introduced with that version
http://www.mvps.org/dmcritchie/excel...x2k.htm#foobar
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm



wrote in oglegroups.com...
How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? Thanks.- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default sort

For the second part of your question on generating a sequence.
See my page on using the Fill Handle
http://www.mvps.org/dmcritchie/excel/fillhand.htm

You do not want to fill your sequence down to the bottom of the
worksheet because you would make a tremendous change
in the size of your worksheet (Used Range Ctrl+End), if
that is what you are getting at. If you have a sequence number
in a column you can sort the worksheet and use the sequence
numbers later to restore the original order.

If you want to refer to the current row number you can use
=ROW() or if you want the row of data =ROW()-1 to leave out header.

If you want to refer to the previous row in a formula as in
a bank balance you would use OFFSET see
http://www.mvps.org/dmcritchie/excel/offset.htm
http://www.mvps.org/dmcritchie/excel/insrtrow.htm
which allows you to insert rows and delete rows without
messing up your formulas.

And Bob is correct you normally want to select all cells
on a page before your sort. The only exceptions really
are if you don't want to include all columns or just want
to sort a smaller rectangular range of data. The expansion of
a single cell selection in a sort is never your friend because
sooner or later it will result in loss of your data (jumbled mess).
The worst feature in Excel and made worse by one order
of magnitude when combined with change of Ctrl+A in Excel 2003.
You can use the gray button at the intersection of the
rows and columns, but unlike the historical Ctrl+A it will
change the location of the active cell (and is not a keyboard
shortcut).

Please try to pick a unique subject that properly describes
the question, Outlook Express combined your question
as if it were in the same thread as another question which
was posted in November. Google Groups is even worse
at keeping threads in order when different threads have
the same subject name.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

wrote in message
Since we are at it, is there possible to generate a sequence? For
example I have a excel file and I want to insert a column to the left
and fill that column with a sequence, so that each row is numbered
from 1 though the highest row number? Thanks again.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default sort

You could have a helper column in which all the data you want to sort are
concatenated. (=A1&B1&C1&D1). But be aware that this is text only so that,
for example date that are formatted as dates will sort OK but dates that
formatted as text and are in the form 05/02/2007 will not sort properly.
They need to be changed to 2007/02/05.

Regards.

Bill Ridgeway
Computer Solutions

wrote in message
ups.com...
How can I sort the columns in my excel file when it exceeds more than
3? Suppose I have a excel file that has 100 columns and several
thousand rows. How can I sort the file based on 10 columns? 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
Accidental Sort roselaurel Excel Discussion (Misc queries) 5 November 12th 06 03:12 PM
how to sort anything that looks like a number as a number cyndiwise notsowise Excel Discussion (Misc queries) 4 August 29th 06 08:19 PM
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM


All times are GMT +1. The time now is 03:40 PM.

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"