I would like to obtain the cumulated products of an array, also calculated through an array formula.
What that means is, assuming I have an array of numeric values, I want to do a row-wise multiplication of all values up to that row. The following screenshot might clarify the task:
I was trying to do it as follows, where the range of 'rates' in the screenshot above is named 'Rates'. I split the vector of n values into an n-times-n matrix where each column includes one more value than the previous one:
Here using the formula:
=(ROW(Rates)<TRANSPOSE(ROW(Rates))+1)*Rates
And then I would have to take the product of each column (value > 0 condition) through an array formula, but I didn't find a way to that yet.
Notes:
- I'm using Office 365 (x64), but
BYCOL()
andBYROW()
are not available to me. - All values of the 'rates' vector are strictly positive.
- I'm trying to avoid VBA to keep the file in .xlsx format since it is often removed from emails otherwise.
- I want to use the table as a template where the 'rates' vector would come in various sizes in the future, hence a dynamic array solution would be best.
I'd appreciate your input.