Multiply previous columns

dorinb

New Member
Joined
Oct 10, 2019
Messages
6
Hi,

For a set of percentages split by location and period , I need to obtain a detail for each location and for each period as a percentage of the previous months multiplied, as follows:[TABLE="width: 661"]
<tbody>[TR]
[TD]Data[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD="colspan: 2"]Expected result[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc[/TD]
[TD]Posting Date[/TD]
[TD]Percentage[/TD]
[TD]
[/TD]
[TD]Loc[/TD]
[TD]Posting Date[/TD]
[TD]Posting date cumulative[/TD]
[TD]Percentage[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]10%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]10.00%[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]5%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]0.50%[/TD]
[TD]%Jan * %Feb[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]17%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]5.00%[/TD]
[TD]% Feb[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Apr-18[/TD]
[TD="align: right"]83%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]0.09%[/TD]
[TD]%Jan * %Feb*% Mar[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-May-18[/TD]
[TD="align: right"]25%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]0.85%[/TD]
[TD] %Feb*% Mar[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Jun-18[/TD]
[TD="align: right"]99%[/TD]
[TD]
[/TD]
[TD]Loc 1[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]17.00%[/TD]
[TD]%Mar[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Jul-18[/TD]
[TD="align: right"]83%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Aug-18[/TD]
[TD="align: right"]73%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Sep-18[/TD]
[TD="align: right"]75%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Oct-18[/TD]
[TD="align: right"]76%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Nov-18[/TD]
[TD="align: right"]11%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 1[/TD]
[TD="align: right"]01-Dec-18[/TD]
[TD="align: right"]98%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]68%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-Feb-18[/TD]
[TD="align: right"]49%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-Mar-18[/TD]
[TD="align: right"]57%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-Apr-18[/TD]
[TD="align: right"]60%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-May-18[/TD]
[TD="align: right"]52%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Loc 2[/TD]
[TD="align: right"]01-Jun-18[/TD]
[TD="align: right"]78%[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Any suggestions?
Cheers,
Dorin
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi Dorin

Assuming column D empty, like in the table you posted, in H2:

=PRODUCT(IF($A$2:$A$19=E2,IF($B$2:$B$19<=F2,IF($B$2:$B$19>=G2,$C$2:$C$19,1))))

This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER.
Copy down
 
Upvote 0

Forum statistics

Threads
1,223,967
Messages
6,175,664
Members
452,666
Latest member
AllexDee

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