Forum Discussion

leochan2003's avatar
leochan2003
Copper Contributor
Oct 07, 2020
Solved

How to write a formula to sum cells with certain criteria?

Dear all,   I would like to sum cells that are not blank to fulfill the following criteria: 1. when the sum range is blank, then blank 2. when the sum range equals to zero, then 0   Your help w...
  • leochan2003 

    If you want to sum the range say A2:A10, you may try something like this...

    =IF(COUNTA(A2:A10)=0,"",SUM(A2:A10))

     

Resources