Forum Discussion

yannidakis's avatar
yannidakis
Copper Contributor
Jan 20, 2023
Solved

Sum only if there is no zero

Greetings all! I want to sum to cells (eg X16+Y16) but is one of them's value = zero, then it will return zero   example 1; 1 + 5 = 6   example 2; 1 + 0 = 0
  • Detlef_Lewin's avatar
    Jan 20, 2023

    yannidakis 

    There are many ways.

    =SUM(X16:Y16)*NOT(COUNTIFS(X16:Y16,0))

Resources