Sort within outline group

fifer

New Member
Joined
Sep 21, 2015
Messages
2
Hi all,

How do I sort within an outline group?

I have a set of data grouped by country, and would like to sort both levels of data by the same column. Using a regular sort function just sorts the country level, and doesn't sort items within. How would I do this without using VBA? Seems like should be possible......:eeek:

I have a large automated file, simplified below. Number of items within each country can change with each daily feed.

[TABLE="width: 400"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Item[/TD]
[TD]Score[/TD]
[/TR]
[TR]
[TD]Japan[/TD]
[TD][/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]abc[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]def[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]ghi[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD][/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]jkl[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]mno[/TD]
[TD]-3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]pqr[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The easiest way I can think of is to put the country name in every row where it applies. Then you can create a custom sort with country as first level and item as second level.
 
Upvote 0
Thanks - I had considered that, but as number of items within each country will change regularly would still require manual intervention(unless VBA is used).
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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