0

Assume I want to calculate the weighted value of "value 2" based on the total of "value" if an indicator = 'Y' , how to do this without adding an extra column?

So essentially I want to know how I can apply an expression for each row in a certain range ("artificial column") which I can then apply e.g. a SUM on.

In the screenshot below, how can I calculate the Red Formula without adding an extra column?

screen shot of sample data

2
=sum(arrayformula(A2:A4*C2:C4*(B2:B4="Y")))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.