Calculate Cumulative total as a part of Array

CA_Punit

Well-known Member
Joined
Nov 18, 2019
Messages
941
Office Version
  1. 365
Platform
  1. Windows
I am stuck with Cumulative total of an array which is a part of Bigger formula.

I have the following

Book11.xlsx
ABCDEF
1Total SalesCategory0a
21,99,000.001.0059,700.0059,700.00 Current Want this to be
33,00,000.001.0049,600.00-10,100.001,01,000.00101000
41,99,000.001.001,02,866.6753,266.673,00,000.004,01,000.00
51,99,000.001.001,42,666.6739,800.0037,50,000.0041,51,000.00
61,99,000.001.001,82,466.6739,800.00
71,99,000.001.002,22,266.6739,800.00
8
9
10SlabCategory 1Category 2
1110.30.4
12900010.20.3
131500010.20.2
149000010.20.2
Sheet1 (3)
Cell Formulas
RangeFormula
C2:C7C2=SUM($D$1:D2)
D2:D7D2=SUM(IFERROR(LET(a,(($A$12:$A$14-$A$11:$A$13)-IF(($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))<0,0,($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))))/CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),b,IFERROR(MATCH(A2,a,1),0)+1,c,IFERROR(MATCH(A2,a,1),0),d,INDEX(a,SEQUENCE(b),1),e,IFERROR(INDEX(a,SEQUENCE(c),1),0),f,INDEX(CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),SEQUENCE(b)),IF(A2>d,d,A2-SUM(e))*f),0))
E3:E5E3=(($A$12:$A$14-$A$11:$A$13)-IF(($A$12:$A$14-$A$11:$A$13)+IF((C2-($A$12:$A$14-1))>0,0,(C2-($A$12:$A$14-1)))<0,0,($A$12:$A$14-$A$11:$A$13)+IF((C2-($A$12:$A$14-1))>0,0,(C2-($A$12:$A$14-1)))))/CHOOSE(B3,$B$11:$B$13,$C$11:$C$13)
F4F4=E4+F3
F5F5=F4+E5
Dynamic array formulas.


Since it is an part of array, I want the cumulative total to be in array.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,147,747
Messages
5,742,964
Members
423,769
Latest member
LongToast

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
Top