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:
Data


Expected result


LocPosting DatePercentage
LocPosting DatePosting date cumulativePercentageFormula
Loc 101-Jan-1810%
Loc 101-Jan-1801-Jan-1810.00%
Loc 101-Feb-185%
Loc 101-Feb-1801-Jan-180.50%%Jan * %Feb
Loc 101-Mar-1817%
Loc 101-Feb-1801-Feb-185.00%% Feb
Loc 101-Apr-1883%
Loc 101-Mar-1801-Jan-180.09%%Jan * %Feb*% Mar
Loc 101-May-1825%
Loc 101-Mar-1801-Feb-180.85% %Feb*% Mar
Loc 101-Jun-1899%
Loc 101-Mar-1801-Mar-1817.00%%Mar
Loc 101-Jul-1883%





Loc 101-Aug-1873%





Loc 101-Sep-1875%





Loc 101-Oct-1876%





Loc 101-Nov-1811%





Loc 101-Dec-1898%





Loc 201-Jan-1868%





Loc 201-Feb-1849%





Loc 201-Mar-1857%





Loc 201-Apr-1860%





Loc 201-May-1852%





Loc 201-Jun-1878%





<tbody>
</tbody>


Any suggestions?
Cheers,
Dorin
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,752
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
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,752
Sorry, didn't see it was the BI forum. Disregard my answer.
 

Forum statistics

Threads
1,082,320
Messages
5,364,543
Members
400,805
Latest member
Jonathan606

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top