Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Sorting within Groups

In my new spreadsheet I have a list of employees in 192 departments. The
sheet is sorted by department, division, then employee name.

I have a blank line between groups--the blank line is for percentage
calculations.

I also have due dates (you may have seen my earlier post). Let's say that
I've managed to color code the due dates (way overdue, just or soon to be
overdue, and fine).

I would like to sort them with by color but keep them within the departments
and not move the blank lines.

When I try this, all the blank lines are sort together. Is there anyway, to
sort the due dates for Dept. A without interfering with the row separating it
from Dept. B. Keep in mind, I have 192 depts to deal with.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Sorting within Groups

hi
by default, excel sorts all Blank row to the bottom and as far as i know,
there is no real way around that.
if your primary sort is by Department then you could assign the blank row a
department number and that way, excel would alway sort the "Blank row" to the
bottom of each department group there by keeping your blank row between
departments...........sorta.

regards
FSt1

"randlesc" wrote:

In my new spreadsheet I have a list of employees in 192 departments. The
sheet is sorted by department, division, then employee name.

I have a blank line between groups--the blank line is for percentage
calculations.

I also have due dates (you may have seen my earlier post). Let's say that
I've managed to color code the due dates (way overdue, just or soon to be
overdue, and fine).

I would like to sort them with by color but keep them within the departments
and not move the blank lines.

When I try this, all the blank lines are sort together. Is there anyway, to
sort the due dates for Dept. A without interfering with the row separating it
from Dept. B. Keep in mind, I have 192 depts to deal with.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Sorting within Groups

On 4 Mai, 01:17, randlesc wrote:
In my new spreadsheet I have a list of employees in 192 departments. *The
sheet is sorted by department, division, then employee name.

I have a blank line between groups--the blank line is for percentage
calculations.

I also have due dates (you may have seen my earlier post). *Let's say that
I've managed to color code the due dates (way overdue, just or soon to be
overdue, and fine).

I would like to sort them with by color but keep them within the departments
and not move the blank lines.

When I try this, all the blank lines are sort together. *Is there anyway, to
sort the due dates for Dept. A without interfering with the row separating it
from Dept. B. *Keep in mind, I have 192 depts to deal with.

Thanks.


Hello,

You can run a macro to create a helper column first which is filled
(all rows of the dept, also the blank rows) with the right rank for
the whole department.
Then sort by this helper column.

Regards,
Bernd
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sorting within Groups

I've never thought it was a good idea to add those rows to the data --
especially if I have to add them manually.

I'd remove those blank lines, then see if a pivottable would work.

If no, then I'd still remove those blank lines, sort the data, and see if
data|subtotals (xl2003 menus) would work.

But in any case, you may be able to use a macro to sort each group. But I'm not
sure how the data is laid out.

Do you really have a blank row between groups? Or is that blank row now filled
with formulas? Or is there a new blank row above/below this percentage line?

If you don't really have blank rows, how do you know what rows are percentage
rows -- a common description in a field (like column A)???

And I bet there's a difference between the first group -- which doesn't have a
blank/percentage row between the data and the header row.

randlesc wrote:

In my new spreadsheet I have a list of employees in 192 departments. The
sheet is sorted by department, division, then employee name.

I have a blank line between groups--the blank line is for percentage
calculations.

I also have due dates (you may have seen my earlier post). Let's say that
I've managed to color code the due dates (way overdue, just or soon to be
overdue, and fine).

I would like to sort them with by color but keep them within the departments
and not move the blank lines.

When I try this, all the blank lines are sort together. Is there anyway, to
sort the due dates for Dept. A without interfering with the row separating it
from Dept. B. Keep in mind, I have 192 depts to deal with.

Thanks.


--

Dave Peterson
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 groups according to variance in excel Obsidian Excel Discussion (Misc queries) 0 November 20th 09 02:51 AM
Excel - Sorting groups in groups due to subtotaling [email protected] Excel Worksheet Functions 3 April 4th 08 06:13 PM
Sorting Groups of Rows Dan Excel Discussion (Misc queries) 1 November 28th 07 04:56 PM
Sorting with groups ecounts Excel Discussion (Misc queries) 0 July 19th 06 07:04 PM
Sorting by Groups grendel Excel Discussion (Misc queries) 0 March 27th 06 05:41 PM


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