Numbers can't be divided by zero using average function
Simple problem.
I'm a visual guy so I'll show the screenshot first.
The goal is to get the average of the numbers entered in column A & B into column C.
As you can tell from the screenshot,
- row 1 with numbers in column A & B works fine,
- row 2 with numbers in column A only technically works fine,
- row 3 with no numbers in column A & B generate an error.
This is done using the simple =AVERAGE(A1:B2) function.
What I want is to be able to write the conditional function where the result leaves the answer blank.
I do not quite understand how to write the conditional function. I get the concept, but not how to write it. I have been able to successfully do a conditional based on a single cell, but not on an average for multiple cells.
If I understand the logic right, I'm trying to create a formula that says if blank, return blank, if not blank, return average.
I see there's an IF function, IFERROR, ISERROR, and a AVERAGEIF function. I tried playing with all these functions but I can't wrap my head around it.
All I want is to be able to write the function that makes this possible. I'd appreciate the simple answer to a simple solution. I'm sure you get it. I just don't. Thanks.
MacBook Pro with Retina display, iOS 10.3.3