The title probable isnt the best discription but i didnt know how to explain it,

what i want to due is add 3 cells and divide by 3, but if only 2 of the cells had a value then only divide by 2

=SUM(G8+G13+G18)/3