Diagonal Sum Product If Formula

sweetmetrics

New Member
Joined
Apr 29, 2011
Messages
22
I am stumped on coming up with a dynamic formula that calculates a value based on an increasing number of "sums of products". Specifically, I need to calculate the total number of repeat users based on a "decaying' repeat rate. In other words, I need it to calculate = Sum[... +(d5*f5)+(d4*g4)+(d3*h3)]

or in equation form for you math folks like me out there:
screenshot20120831at314.png

where
n = (1, "infinity")
and
i = {1, 2, ... (n-1)}

with
"Xn" is the calculated value of repeat users for month "n" (output/result cell)
"mi" is the number of new users (in month i)
"Nn-i" is the column 'number' of the repeat rate value (%) multiplier

Here is a screenshot of the first couple rows to illustrate:

screenshot20120831at308.png



I actually have about 70 months of data (rows) and roughly the same amount of columns representing a decaying repeat rate (70 or so) and these will be increasing as time goes on so I need this formula to be dynamic (i.e. - copy it down the column of (# of repeat users)

I am using Excel for Mac 2011.

Thanks in advance for any help! :)
 
Untested, but nicely done, Marcelo
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Thanks SHG, but I really think that a solution like yours (with the correction you posted) is the way to go. This was more for fun.

Nice one Marcelo. I was avoiding a volatile solution but if the worksheet does not have heavy calculations your formula will be much easier to implement, and will probably work for bigger tables than mine.

I'm not sure my formula would work for a big table, it might need too many resources.
 
Upvote 0
PGC

Thanks SHG, but I really think that a solution like yours (with the correction you posted) is the way to go. This was more for fun.

Agree! :)

Nice one Marcelo. I was avoiding a volatile solution but if the worksheet does not have heavy calculations your formula will be much easier to implement, and will probably work for bigger tables than mine.

Thank you!

Yes, I tried all ways to avoid OFFSET (volatile) but without success...

M.
 
Upvote 0
Forgot to say.

Sweetmetrics,

Thanks for the very interesting thread. Come back often!

M.
 
Upvote 0
The one line could be simplified (and improved) to

Code:
        SM = SM + rCol(i).Value * rCol(i, n - i + 1).Value
Yikes! I meant

Code:
        SM = SM + rCol(i).Value * [COLOR=#ff0000]rTbl[/COLOR](i, n - i + 1).Value
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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