I have a spreadsheet with this formula. I am able to understand the condition checking part, the calculation of ($R7/$O7) and default value if condition does not satisfy. What exactly happens inside the PRODUCT(1+($U7:Z7)))-1 ?
{=IF($T7>=AA$5,($R7/$O7)/(PRODUCT(1+($U7:Z7)))-1,"")}
Also, why do we have {}? If I manually type the formula in some cell, it does not work.
I am trying to convert this formula to python. This is the code I have:
df.loc[(df['T'] >= df['AA']), 'x'] = (df['R']/df['O'])/PRODUCT()-1
My question is how do I compute the PRODUCT part of this calculation?
CTRL-SHIFT-ENTER.(PRODUCT(1+($U7:Z7)))calculates the product of every value+1 in cells U7 to Z7. The{}is needed for adding 1 to every value before calculating the product. The last -1 simply subtracts 1 from the product. CSE-formulas basically works like it first calculates one array (in this case an array where 1 is added to every value) and then performs some other calculation on that array, in this case the product.