Subtotal with multiple columns for "group by"?

Zel9088

New Member
Joined
Dec 5, 2016
Messages
2
I have a data table about a company having different divions. The divisions can order products to use them and they can order the same kind of things sometimes if they need them. I'd like to compare their orders from 2015 with the ones from 2016. So I need two levels of groups. The main should be divisions and under it should be product_names wich summarizes the amount of a certain product ordered in 2015 and then in 2016.

The data table is something like this:

division
product_name
amount ordered_2015
amount_ordered_2016
A
a
1
2
B
b
10
5
C
c
2
6
A
d
0
3
C
a
0
4
D
b
0
9
A
a
4
1
B
c
5
2
B
c
6
3

<tbody>
</tbody>


Is it possible to do what I want here in an easy way like subtotal? I'm only interested in a simple solution because I can summarize the data on my own in a difficult way using multiple functions, it's not what I'd like to do. I'd like to find a simpler way to do it.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I managed to group the summed data but still need a method to create a joined table to compare the data of the two years.

First I ordered the table by divisions and by product names. Then I did subtotal grouped by product names and summed the amount ordered. Then subtotal again but goup by division, sum the amount ordered again but this time without replacing the previous subtotal values.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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