
Originally Posted by
froment
first one [or based] will keep the cell empty untill all four related cells are filled in.
@froment
If the intention is to average then we assume values are to be numeric in which case the below might be simpler:
=IF(COUNT(E28:H28)<4,"",SUM(E28:H28)/4)
or as you say
=IF(COUNT(E28:H28)<4,"",AVERAGE(E28:H28))
I think the point about use of AVERAGE is more than valid though at this stage we don't know if 3 numbers and a blank should say result in divisor of 3 or 4 ?
The answer to that determines viability of AVERAGE versus fixed divisor I think.
Whilst I am here... regards the other suggestions, FWIW, my two pennies:
Conditional Formatting is Super Volatile so I would always use this as method of last resort.
In this instance given the singular condition - if the intention is to "mask" whilst maintaining underlying numeric I would say a Number Format would be preferable.
Display Zeroes option - I would just add the caveat that this is a worksheet level setting and as such may / may not be appropriate.
Bookmarks