Sorting Rows while keeping rows Grouped by a specific column (Excel 2010)

robynn

New Member
Joined
Sep 24, 2014
Messages
2
Hi,

Below are the results of two columns of data (Red Zone Days and Project) which I sorted 3 times in in excel. The first 2 groups I used the integrated Excel sort function. The last group was sorted manually and is essentially what I am trying to achieve either through excels sort function, macro or vba routine. Does anyone have any suggestions? Also, just a note I'm trying to stay away from Excel's group functions as this spreadsheet contains large amounts of data which have to be sorted many different ways. Any suggestions are appreciated. :)



RED ZONE
DAYS
PROJECTRED ZONE
DAYS
PROJECTRED ZONE
DAYS
PROJECT
8 A7 CCC7 CCC
8 BB8 A9 CCC
9 BB8 BB9 CCC
7 CCC9 BB9 CCC
9 CCC9 CCC8 A
9 CCC9 CCC8 BB
9 CCC9 CCC9 BB
Sorted by:

Project (A to Z)
Red Zone Days (Small to Large)

Result: Projects are sorted alphabetically and do not float the Projects with the smallest Red Zone Days to the Top.
Sorted by:

Red Zone Days (Small to Large)
Project (A to Z)

Result: Projects Rows are no longer grouped together
Sorted by:

Manually

Result: Project rows are kept together yet sorted so that Projects which have the smallest number of Red Zone Days are sorted first. (So essentially, RedZone days are sorted from smallest to largest within the projects and then the project "groups" are sorted by Projects from the smallest to largest number of Red Zone days .

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,216,799
Messages
6,132,770
Members
449,760
Latest member
letonuslepus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top