Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Sorting a portion of a worksheet

*Using Office 2007*

I am using the sort function to organize a list by date and anniversary
year. That works well.

Then I insert blank lines (for readability) between groups of dates
according to weeks on the calendar. No problem.

Next, I want to sort the names alphabetically within the anniversary year
and week. Each time it asks if I want to expand the selection. I say yes so
that all of the data (name, anniv. year, anniv. date, job title, job
location) stays together for each entry. Sometimes this works. Sometimes it
doesn't.
When it works, just the names of associates celebrating 10 year
anniversaries for week 3 are alphabetized (for example), then I alphabetize
the names of associates celebrating 20 year anniversaries).

When it doesn't work, excel disregards the blank lines that I placed and
alphabetizes my whole list - no longer separated by weeks of the month. (it
clumps them all together.)

i hope this makes sense. How can I get it expand the sort to JUST the
section that was highlighted?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Sorting a portion of a worksheet

Hi Nicole,

blank rows are a bad idea in any dataset - borders improve readability
without reducing usability, and you can use Conditional Formatting to apply
them automatically*.

However, to answer your question: rather than just selecting a vertical
range, you need to select all of the data you want to sort, making sure that
the active cell is within the column you want to sort by (tab along until
the white cell is there). Then perform your sort without expanding the
selection.


*The following formula can be used in Conditional Formatting, with a bottom
border, to distinguish between weeks of the year, assuming that you want the
first week to start on the first Monday and that column C contains the full
date:

=ROUNDUP(($C1-DATE(YEAR($C1),1,1)-WEEKDAY($C1,11))/7,0)<ROUNDUP(($C2-DATE(YEAR($C2),1,1)-WEEKDAY($C2,11))/7,0)

Steve D.


"NicoleS" wrote in message
...
*Using Office 2007*

I am using the sort function to organize a list by date and anniversary
year. That works well.

Then I insert blank lines (for readability) between groups of dates
according to weeks on the calendar. No problem.

Next, I want to sort the names alphabetically within the anniversary year
and week. Each time it asks if I want to expand the selection. I say yes
so
that all of the data (name, anniv. year, anniv. date, job title, job
location) stays together for each entry. Sometimes this works. Sometimes
it
doesn't.
When it works, just the names of associates celebrating 10 year
anniversaries for week 3 are alphabetized (for example), then I
alphabetize
the names of associates celebrating 20 year anniversaries).

When it doesn't work, excel disregards the blank lines that I placed and
alphabetizes my whole list - no longer separated by weeks of the month.
(it
clumps them all together.)

i hope this makes sense. How can I get it expand the sort to JUST the
section that was highlighted?


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
making a portion of reference to a worksheet variable in a formula Celia Excel Discussion (Misc queries) 1 October 25th 09 08:27 AM
HOW DO I SAVE A PORTION OF A WORKSHEET ON A FLOPPY DISK? asifuah Excel Worksheet Functions 1 August 19th 07 12:45 PM
HOW DO I SAVE A PORTION OF A WORKSHEET ON A FLOPPY DISK? CLR Excel Worksheet Functions 0 August 17th 07 01:53 AM
excel prints only a portion of my worksheet Joe J EPRI Excel Discussion (Misc queries) 1 March 16th 06 05:16 PM
Sorting a portion of a range gbeard Excel Worksheet Functions 1 April 23rd 05 01:51 PM


All times are GMT +1. The time now is 03:27 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"