Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9626

Check of range is blank in Google Sheets

$
0
0

I want to show the average of a range if any cell is populatedHowever, my formula shows the average only if the first cell is populated

I'm using the below formula

=IF(ARRAYFORMULA(ISBLANK(A2:C2)),"",AVERAGE(A2:C2))

If A2 is populated, the formula's output is not blank, which is expected.

A2, B2, & C2 are all populated

Only B2 is blank

Only C2 is blank

And if A2:C2 is all blank, the formula's output is blank as expected

A2:C2 all blank

However, if A2 is blank while B2 and C2 are populated, the formula's output is blank, which is not what I want

Only A2 is blank

How do I get the output of the formula to be blank only if the entire range is blank?


Viewing all articles
Browse latest Browse all 9626

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>