Is it possible to count if within a number region?

T

themax16

I am trying to set up a formula that will add up multiple cells and the
create an average. I have no trouble with this atall .... but afte
generating the average i wanted it to go on and display 'yes' i
between -6 and 6. and 'no' if it is out of this region.
This was my first attempt but this always displays 'Yes' as its alway
either above -6 or below 6.
=IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)>=(0-6)),"Yes","No")

Can anyone offer any help
 
E

Earl Kiosterud

Try this general form. Substute your cells e.g: (C3, E3) (C3:C10).
Untested.

=IF(OR(AVERAGE(cells)< -6, AVERAGE(cells)) > 6, "Yes", "No")
 
B

Bernard Liengme

Try this =IF(AND((C3+E3)/2>=-6,(C3+E3)/2<=6),"Yes","No")
If you can live with FALSE and TRUE, a simpler version is
=AND((C3+E3)/2>=-6,(C3+E3)/2<=6)
best wishes
 
B

Bob Phillips

=IF(ABS(AVERAGE(C3,E3))<6,"Yes","No")

or

=ABS(AVERAGE(C3,E3))<6

in line with Bernie's two options

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top