Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default sorting by groups of rows

I have a spreadsheet that needs to be sorted based on several
conditions, but I need to keep certain rows grouped together.
Basically, here is a snapshot of what the sheet looks like:

Style ID Mat ID Color ID Total
8BN164 UPR F0AFB OH 2
8BN164 UPR F0AFB WSS 34.3
8BN164 UPR F0AFB Sold 1
8BN165 XN3 F0AEP OH 0
8BN165 XN3 F0AEP WSS 0
8BN165 XN3 F0AEP Sold 0
8BN165 UPF F0AEE OH 8
8BN165 UPF F0AEE WSS 137.1
8BN165 UPF F0AEE Sold 1


I will need to sort this sheet maintaining certain conditions. I need
the three rows of OH, WSS, and Sold to stay grouped together for each
Style/Mat/Color. Is this possible?

I really appreciate any help you can provide. Thanks!

Danielle

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default sorting by groups of rows

If I understand your question, nothing beyond using the Data | Sort
menu is required. Sort firstly on the OH/WSS/Sold column. Sort
secondly or higher on any other columns you want.

Hth,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default sorting by groups of rows

On May 3, 7:50 pm, merjet wrote:
If I understand your question, nothing beyond using the Data | Sort
menu is required. Sort firstly on the OH/WSS/Sold column. Sort
secondly or higher on any other columns you want.

Hth,
Merjet


I don't think I explained myself very well... the spreadsheet actually
has about 30 more columns, and the classifications that I need to sort
by are not included in the snapshot I provided (there wasn't space in
the post). So, if I sort by Group, Permanent/Sea, Material, and Color
(not shown in my snapshot) how do I keep the OH, WSS, and Sld in the
correct order?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default sorting by groups of rows

You still haven't explained yourself well. :-) What does "in the
correct order" mean? I guess it doesn't mean all OH together, all WSS
together, all Sold together, since that is what my prior answer does.
So I will guess again. After being sorted otherwise, you want the
order to be OH, WSS, Sold. Since they aren't in alphabetic order,
maybe you need to add a dummy column which has 1 if OH, 2 if WSS, or 3
if Sold, and use that as your last sort criteria.

Hth,
Merjet


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sorting by groups of rows

I'd do what merjet suggested.

But another option would be to create a custom list that you could sort by.

Tools|Options|Custom Lists tab

Then use that as the sequence when you do the sort (click on the Options button
on the data|sort dialog).

merjet wrote:

You still haven't explained yourself well. :-) What does "in the
correct order" mean? I guess it doesn't mean all OH together, all WSS
together, all Sold together, since that is what my prior answer does.
So I will guess again. After being sorted otherwise, you want the
order to be OH, WSS, Sold. Since they aren't in alphabetic order,
maybe you need to add a dummy column which has 1 if OH, 2 if WSS, or 3
if Sold, and use that as your last sort criteria.

Hth,
Merjet


--

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 of multiple rows Mel Excel Discussion (Misc queries) 2 June 19th 09 08:40 PM
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 Dan Excel Programming 4 September 8th 06 12:05 PM
Sorting with groups ecounts Excel Discussion (Misc queries) 0 July 19th 06 07:04 PM


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