Sorting

P

Paul

Besides selecting the row and cells, is there a way to prevent a row from
being included in a sort? When using the sort feature it will select all
cells; however, my last row contains totals and I don't want this sorted.
Thanks
 
F

Frank Kabel

Hi
AFAIK you only have two options:
- first select the cells before sorting
-create a macro which does this for you
 
D

David McRitchie

Hi Paul,

See
http://www.mvps.org/dmcritchie/excel/sorting.htm#activate
copy both macros as indicated change the G2 and E2
to the columns you are sorting on. It will leave the first
row and the last row alone the last row is determined
by going up from the bottom and looking for content

Worksheet will be sorted whenever the sheet is activated
or whenever you double click.
 
M

Myrna Larson

Put a blank row between the data and the totals. You can hide it or make it
very short.
 
K

K.S.Warrier

Hi,
While sorting ,if the row ,containing the totals, is also not included, the
other rows will be sorted but the corresponding total cannot be
located.First, select the row you want to sort (as first priority)& then
other rows without lifting the mouse button.The row containing totals (if
that also to be included in sorting) may also be included along with other
rows,if required.
Thank you,
K.S.Warrier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top