Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
themax16
 
Posts: n/a
Default 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

  #2   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

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



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

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



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i count the number of conditional formatted cells? kate Excel Discussion (Misc queries) 2 May 16th 05 10:47 PM
Count number of occurences in 1 column only if something in anothe Wenster Excel Worksheet Functions 2 February 7th 05 09:58 PM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM
Count the number of worksheets in a workbook Vincdc Excel Discussion (Misc queries) 7 January 17th 05 11:57 PM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM


All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"