If you want to ignore zeros then you could use this:
=(G8+G13+G18)/((G8<>0)+(G13<>0)+(G18<>0))