How do I Subtotal, then Sort by Subtotal Amounts?

G

Guest

I have a few thousand row of part numbers with their costs (many part numbers
appear on multiple rows) and I have sorted them by part number, then I
subtotalled the cost column. Now I want to sort them by the subtotal amount,
so the part number group with the highest cost subtotal is first, but I want
to keep the detail in tact. How do I do this?
 
G

Guest

With your existing data in sheet1, Sub-totaled (level2-being currentlyselected)
I Highlight the full range - Edit, Goto, Special Cells button...
Visible-Cells Only select
then Copy
then go to or add sheet2 (Should be Blank)
and Paste
Then on sheet2 Datat, Sort., Cost << Desending
Your Sheet1 data is INTACT
HTH
 
G

Guest

If you collapse the outline to only display the subtotals,
you can select the entire outlined range (excluding the grand total)
and peform the sort. The detail data within the collapsed subtotals will
move with the subtotal and those details will remain in the same order.

(at least that's how XL2002 worked when I just tested it)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
G

Guest

Thanks, that helped.

Ron Coderre said:
If you collapse the outline to only display the subtotals,
you can select the entire outlined range (excluding the grand total)
and peform the sort. The detail data within the collapsed subtotals will
move with the subtotal and those details will remain in the same order.

(at least that's how XL2002 worked when I just tested it)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top