Dear all,
I need to found the formula to obtain the sum of previous prices month in the column total.
Let suppose we are in March 2018 and the month is not finished then you need to compare your current data to the previous and current year month by month.
In the column "H'' I need to find a formula to sum only the previous month up to today.
And because March 2018 result isn't out yet then the calculation should stop at February for the row 2017 and 2018 as the example below
Hope you can help I can't find it.
Thank you in advance.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]year[/TD]
[TD]price 01[/TD]
[TD]volume01[/TD]
[TD]price 02[/TD]
[TD]volume 02[/TD]
[TD]price 03[/TD]
[TD]volume 03[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2017[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2017[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2017[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2018[/TD]
[TD]5[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2018[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
I need to found the formula to obtain the sum of previous prices month in the column total.
Let suppose we are in March 2018 and the month is not finished then you need to compare your current data to the previous and current year month by month.
In the column "H'' I need to find a formula to sum only the previous month up to today.
And because March 2018 result isn't out yet then the calculation should stop at February for the row 2017 and 2018 as the example below
Hope you can help I can't find it.
Thank you in advance.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]year[/TD]
[TD]price 01[/TD]
[TD]volume01[/TD]
[TD]price 02[/TD]
[TD]volume 02[/TD]
[TD]price 03[/TD]
[TD]volume 03[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2017[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2017[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2017[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2018[/TD]
[TD]5[/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]2018[/TD]
[TD]0[/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]