Reverse mutiplication

themev

Board Regular
Joined
Aug 13, 2007
Messages
83
I am trying to build a model that includes depleting assets.

The rates are in cells C3:I3 representing Year 1 to Year 7
1.0%2.0%5.0%10.0%15.0%20.0%20.0%

I have annual values in cells C12:I12 with I12 representing year 7.
36,211 49,037 55,356 42,809 72,941 90,768 119,528

So in year 7, the formula I would want is (119,528 * 1%) + (90,768 * 2%) + (72,941 * 5%) + (42,809 * 10%) + (55,356 * 15%) + (49,037 * 20%) + (36,211 * 20%). I can enter it manually, but I was wondering if there are some formulas I could use to make this easier and to also be able to extend the values beyond year 7, but still have it multiply by the rates in C3:I3.

Any help would be appreciated.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
To flip the second list, consider this:
Book20200515.xlsx
ABCD
11234
21234
3
420
Sheet13
Cell Formulas
RangeFormula
A4A4=SUMPRODUCT(A1:D1,INDEX(A2:D2,N(IF({1},MAX(COLUMN(A2:D2))-COLUMN(A2:D2)+1))))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
I was curious about whether this could be done without an array formula. Here is another option that doesn't use an array formula in A5.
Book20200515.xlsx
ABCDE
112345
212345
3
435array formula
535non-array formula
Sheet13
Cell Formulas
RangeFormula
A4A4=SUMPRODUCT(A1:E1,INDEX(A2:E2,N(IF({1},MAX(COLUMN(A2:E2))-COLUMN(A2:E2)+1))))
A5A5=SUMPRODUCT(A1:E1,MMULT(A2:E2,(ROW(INDEX(A:A,1):INDEX(A:A,COLUMNS(A2:E2)))=(COLUMN(INDEX(1:1,COLUMNS(A2:E2)))-COLUMN(INDEX(1:1,1):INDEX(1:1,COLUMNS(A2:E2)))+1))+0))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
Normally-entered (just press Enter as usual):

=SUMPRODUCT(C3:I3, C12:I12)
 
Upvote 0
Another non-CSE formula, using KRice's layout:

=SUMPRODUCT(A1:E1,SUBTOTAL(9,OFFSET(A2,0,COLUMN($E2)-COLUMN($A2:$E2))))

Although I thought the MMULT formula was pretty clever.
 
Upvote 0
Here is a summary of the options that reverse the order of the 2nd array adjusted for the ranges of interest. I like Eric's solution the best, shown in A17...thanks Eric!
Book20200515.xlsx
ABCDEFGHI
1
2
31234567
4
5
6
7
8
9
10
11
121234567
13
1484array formula
1584non-array formula84<--CHECK
16
1784Eric W's formula
Sheet13
Cell Formulas
RangeFormula
A14A14=SUMPRODUCT(C3:I3,INDEX(C12:I12,N(IF({1},MAX(COLUMN(C12:I12))-COLUMN(C12:I12)+1))))
A15A15=SUMPRODUCT(C3:I3,MMULT(C12:I12,(ROW(INDEX(A:A,1):INDEX(A:A,COLUMNS(C12:I12)))=(COLUMN(INDEX(1:1,COLUMNS(C12:I12)))-COLUMN(INDEX(1:1,1):INDEX(1:1,COLUMNS(C12:I12)))+1))+0))
D15D15=C3*I12+D3*H12+E3*G12+F3*F12+G3*E12+H3*D12+I3*C12
A17A17=SUMPRODUCT(C3:I3,SUBTOTAL(9,OFFSET(C12,0,COLUMN($I12)-COLUMN($C12:$I12))))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0
One last option (hopefully!): This version will adapt if you add more columns to your table:

Book1
ABCDEFGHIJK
1Year 1Year 2Year 3Year 4Year 5Year 6Year 7Year 8Year 9Year 10
2Rate1%2%5%10%15%20%20%
3Value362114903755356428097294190768119528
4
5Product36291.59
6column-changing Product36291.59
Sheet24
Cell Formulas
RangeFormula
B5B5=SUMPRODUCT(B2:H2,SUBTOTAL(9,OFFSET(B3,0,COLUMN(H3)-COLUMN($B3:$H3))))
B6B6=SUMPRODUCT(B2:K2,IFERROR(SUBTOTAL(9,OFFSET(A3,0,LOOKUP(9^99,B3:K3,COLUMN(B3:K3))-COLUMN($B3:$K3)+1)),0))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


If you add data in I2:I3, the B6 formula will handle it without needing to change the ranges, as long as the initial ranges encompass the maximum extent of the table. But it does require the CSE entry.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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