Sum for 2 criteria from Pivot table

Joined
Feb 16, 2016
Messages
21
Hey evryone,

I have question regarding following issue. My pivot table looks like this:

MonthAssetOrderSub parcel for orderOccupation of assetOccupation for one orderMonth sum
JanS2Aprod A21:30h21:30h???
JanS2Aprod B21:30h0???
JanS2Bprod A10:03h10:03h
FebS1CProd C17:14h17:14h
FebS2DProd Z46:10h46:10h
FebS2DProd Y46:10h0
FebS2DProd A46:10h0
FebS1EProd B16:50h16:50h
........

<tbody>
</tbody>


What I need to do is: for each month per asset determine the asset occupation for all orders.
I have already split the time for one order as they are repeated in the order occupation.

So i need to add all Jan times for asset S2 from the column 'Occupation for one order', all Jan times for asset S1 from the column 'Occupation for one order', all feb times for asset S1 from the column 'Occupation for one order', all feb times for asset S2 from the column 'Occupation for one order', ..... . And these values need to populate the last column.

I manage to work out a formula for one month and one asset with sumifs but would have to repeat each piece of code for each month and asset. I was thinking there must be an easier way with array formulas but am not that experienced with them.
Any help would be much appreciated. =)

Kind regards,
Philippe de Vlaminck
 
Last edited:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I have found a solution that works:

1. Created a pivot table from the current table
2. Extra column after original table with index match array formula: =INDEX('Pivot jetty occ'!$A$3:$F$15,MATCH(TRUE,('Pivot jetty occ'!$A$3:$A$15='Jetty occupation sheet'!$B6),0),MATCH(TRUE,('Pivot jetty occ'!$A$3:$F$3='Jetty occupation sheet'!$C6),0))
3. CTRL-SHIFT-ENTER and copy down

If there is a solution without making an extra pivot table it would still be welcome :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,038
Latest member
apwr

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