Average Formula

F

ferg

Need a formula to average a range of cells but only if there are numbers
so I dont get a zero.
=AVERAGE(IF(E8:N8,E8:N8)) this is what I'v tried but I just get
#VALUE!
Thanx :confused:
 
D

Dav

the normal average function will ignore non numeric values

if there are no numbers in the range

if(iserror(average(e8:n8)),"",average(e8:n8))

otherwise the previous post but it will give 0 if the range is blank,
it depends what youwant

Regards

Dav
 
F

ferg

Yeah Rafeeks leaves a 0 as u said Dav so I want a blank cell if no
nums
So Thanx heeps guys worxs spot on :)
 
Top