#1   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.



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 08:56 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"