SOLVED

fonction SI

New Contributor

Bonjour, comment peux-t-on éventuellement simplifier la fonction suivante :

=SI(B4="";"";A4)+SI(C4="";"0";A4)+SI(D4="";"0";A4)+SI(E4="";"0";A4)

et éventuellement l'étendre aux ligne 4 à 22 ?

Merci

5 Replies

@Alain8 Started changing the original formula until I realized you asked for a simplification. Have a look at the attached file where I  used SUMPRODUCT. It should come out in French when you open the workbook.

Thank you very much@Riny_van_Eekelen , it is very nice.

Alain

best response confirmed by Alain8 (New Contributor)
Solution

@Alain8 

As variant

=A4*COUNTA(B4:E4)
Thank you Sergei, COUNTA doesn't work but NBVAL works very well.

@Alain8 

That's why I attached the file to previous post. If open it shows correct formula for the current locale.