Philippe de Vlaminck
New Member
- Joined
- Feb 16, 2016
- Messages
- 21
Hey evryone,
I have question regarding following issue. My pivot table looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Asset[/TD]
[TD]Order[/TD]
[TD]Sub parcel for order[/TD]
[TD]Occupation of asset[/TD]
[TD]Occupation for one order[/TD]
[TD]Month sum[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]A[/TD]
[TD]prod A[/TD]
[TD]21:30h[/TD]
[TD]21:30h[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]A[/TD]
[TD]prod B[/TD]
[TD]21:30h[/TD]
[TD]0[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]B[/TD]
[TD]prod A[/TD]
[TD]10:03h[/TD]
[TD]10:03h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S1[/TD]
[TD]C[/TD]
[TD]Prod C[/TD]
[TD]17:14h[/TD]
[TD]17:14h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod Z[/TD]
[TD]46:10h[/TD]
[TD]46:10h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod Y[/TD]
[TD]46:10h[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod A[/TD]
[TD]46:10h[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S1[/TD]
[TD]E[/TD]
[TD]Prod B[/TD]
[TD]16:50h[/TD]
[TD]16:50h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]....[/TD]
[TD]....[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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
I have question regarding following issue. My pivot table looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Asset[/TD]
[TD]Order[/TD]
[TD]Sub parcel for order[/TD]
[TD]Occupation of asset[/TD]
[TD]Occupation for one order[/TD]
[TD]Month sum[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]A[/TD]
[TD]prod A[/TD]
[TD]21:30h[/TD]
[TD]21:30h[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]A[/TD]
[TD]prod B[/TD]
[TD]21:30h[/TD]
[TD]0[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]S2[/TD]
[TD]B[/TD]
[TD]prod A[/TD]
[TD]10:03h[/TD]
[TD]10:03h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S1[/TD]
[TD]C[/TD]
[TD]Prod C[/TD]
[TD]17:14h[/TD]
[TD]17:14h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod Z[/TD]
[TD]46:10h[/TD]
[TD]46:10h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod Y[/TD]
[TD]46:10h[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S2[/TD]
[TD]D[/TD]
[TD]Prod A[/TD]
[TD]46:10h[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]S1[/TD]
[TD]E[/TD]
[TD]Prod B[/TD]
[TD]16:50h[/TD]
[TD]16:50h[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]....[/TD]
[TD]....[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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: