![]() |
Is it possible to count if within a number region?
I am trying to set up a formula that will add up multiple cells and then create an average. I have no trouble with this atall .... but after generating the average i wanted it to go on and display 'yes' if 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 always either above -6 or below 6. =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)=(0-6)),"Yes","No") Can anyone offer any help? -- themax16 ------------------------------------------------------------------------ themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622 View this thread: http://www.excelforum.com/showthread...hreadid=372947 |
Try this general form. Substute your cells e.g: (C3, E3) (C3:C10).
Untested. =IF(OR(AVERAGE(cells)< -6, AVERAGE(cells)) 6, "Yes", "No") -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "themax16" wrote in message ... I am trying to set up a formula that will add up multiple cells and then create an average. I have no trouble with this atall .... but after generating the average i wanted it to go on and display 'yes' if 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 always either above -6 or below 6. =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)=(0-6)),"Yes","No") Can anyone offer any help? -- themax16 ------------------------------------------------------------------------ themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622 View this thread: http://www.excelforum.com/showthread...hreadid=372947 |
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 -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "themax16" wrote in message ... I am trying to set up a formula that will add up multiple cells and then create an average. I have no trouble with this atall .... but after generating the average i wanted it to go on and display 'yes' if 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 always either above -6 or below 6. =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)=(0-6)),"Yes","No") Can anyone offer any help? -- themax16 ------------------------------------------------------------------------ themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622 View this thread: http://www.excelforum.com/showthread...hreadid=372947 |
=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) "Bernard Liengme" wrote in message ... 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 -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "themax16" wrote in message ... I am trying to set up a formula that will add up multiple cells and then create an average. I have no trouble with this atall .... but after generating the average i wanted it to go on and display 'yes' if 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 always either above -6 or below 6. =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)=(0-6)),"Yes","No") Can anyone offer any help? -- themax16 ------------------------------------------------------------------------ themax16's Profile: http://www.excelforum.com/member.php...o&userid=23622 View this thread: http://www.excelforum.com/showthread...hreadid=372947 |
All times are GMT +1. The time now is 06:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com