'How to use ARRAYFORMULA with this formula

I'm trying to make an array formula which sums up all the rows until this row.

=IF(((M6*0,2)+(N6*0,3)+(O6*0,5))/10=0;"";((M6*0,2)+(N6*0,3)+(O6*0,5))/10)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source