Google Sheets – Average Two Numbers if Second Exists

formulasgoogle sheets

I have two columns (Google Sheets) of numbers similar to:

10.453   12.178  
12.654   0

The third column is:

  • if number higher than 0 exists in both columns, display an average of the two
  • else just display the one figure entered (in either column)

Best Answer

Another way of doing it, is by using the AVERAGEIF formula.

Formula

=AVERAGEIF(A1:B1, ">0")

Screenshot

enter image description here