Need help with stack multiplication

exceluser1609

New Member
Joined
Nov 2, 2017
Messages
3
I have following data that varies by time:

The table below shows the base cashflows at each time

t
1
2
3
4
5
6
7
8
9
10
11
12
Cashflows
CF1
CF2
CF3
CF4
CF4
CF5
CF7
CF8
CF9
CF10
CF11
CF12

<tbody>
</tbody>

The table below shows the scaling factor that varies by time and are used to scale up the cashflows:

t
1
2
3
4
5
6
Scaling factor
SF1
SF2
SF3
SF4
SF4
SF5

<tbody>
</tbody>

Looking for a formula to do stack multiplication at each time, with the following required output

t
Output
1
SF1*CF1
2
SF1*CF2 + SF2*CF1
3
SF1*CF3 + SF2*CF2 + SF3*CF1
4
SF1*CF4 + SF2*CF3 + SF3*CF2 + SF4*CF1
5
SF1*CF5 + SF2*CF4 + SF3*CF3 + SF4*CF2 + SF5*CF1
6
SF1*CF6 + SF2*CF5 + SF3*CF4 + SF4*CF3 + SF5*CF2 + SF6*CF1
and so on
SF1*CFn + SF2*CF(n-1) +………………………………..+ SFn*CF1

<tbody>
</tbody>

Please let me know if there is any formula to do this quickly and if further details are required.

Thank you
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to the board.

Maybe:

Excel 2012
ABCDEFGHIJKLM
1
2t123456789101112
3Cashflows123456789101112
4
5t
6Scaling Factor123456
711.11.21.31.41.5
8
9tOutput
1011
1123.1
1236.4
13411
14517
15624.5

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B10=SUMPRODUCT(SUBTOTAL(9,OFFSET($B$7,0,ROW(INDIRECT("1:"&A10))-1))*SUBTOTAL(9,OFFSET($B$3,0,A10-ROW(INDIRECT("1:"&A10)))))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Welcome to the board.

Maybe:

Excel 2012
ABCDEFGHIJKLM
1
2t123456789101112
3Cashflows123456789101112
4
5t
6Scaling Factor123456
711.11.21.31.41.5
8
9tOutput
1011
1123.1
1236.4
13411
14517
15624.5

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B10=SUMPRODUCT(SUBTOTAL(9,OFFSET($B$7,0,ROW(INDIRECT("1:"&A10))-1))*SUBTOTAL(9,OFFSET($B$3,0,A10-ROW(INDIRECT("1:"&A10)))))

<tbody>
</tbody>

<tbody>
</tbody>

thank you so much.. very helpful
 
Upvote 0
=SUMPRODUCT(SUBTOTAL(9,OFFSET($B$7,0,ROW(INDIRECT("1:"&A10))-1))*SUBTOTAL(9,OFFSET($B$3,0,A10-ROW(INDIRECT("1:"&A10)))))

... which given your helper column could be simplified to:

=SUMPRODUCT(SUBTOTAL(9,OFFSET($B$7,0,A$10:A10-1))*SUBTOTAL(9,OFFSET($B$3,0,A10-A$10:A10)))

or even more succinctly:

=SUMPRODUCT(N(OFFSET(B$7,,A$10:A10-1)),N(OFFSET(B$3,,A10-A$10:A10)))
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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