![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 9
|
I have a series of numbers in cell B1 thru B26. Is there a way to count the numbers in this range that are >1 and <11 and have this number show up in cell B27?
The count if function will only work with one criteria. Any suggestions? Thanks in advance. Jerry |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
=COUNTIF(B1:B26,"<11")-COUNTIF(B1:B26,"<=1")
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 9
|
I applied your suggestion and modified it a bit.
The following works great. Thanks for the help. =COUNTIF(B1:B26,">0")-COUNTIF(B1:B26,">11") Jerry |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Try this:
=SUM(IF(A1:A26<11,IF(A1:A26>1,1,0),0)) This is an array formula and must be enter be pressing Ctrl-Alt-Enter together. When enter correctly Excel will put {} around the formula to identify it as an array.
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Feb 2002
Posts: 202
|
Quote:
[ This Message was edited by: anno on 2002-04-15 19:09 ] [ This Message was edited by: anno on 2002-04-15 19:12 ] |
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
In the reply from Yogi Anand,
Instead of choosing the range <11, <=1 , suppose I have 100 (say) in a cell,, can I refer the conditions to this cell? e.g |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
In the reply from Yogi Anand,
Instead of choosing the range <11, <=1 , suppose I have 100 (say) in a cell,, can I refer the conditions to this cell? e.g Thanks for your help |
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Hi Chaju:
I don't see why not! ... You see what I did was first counted all the cells that were less than 11 (this would cover if a cell were valued at 100; then from this count, I deducted the count of cells that were valued at 1 or less (meaning 0)
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
Hi! I understand the formula is ok.. but however i have 100 in cell E1 and change the formula to the bottom shown:
COUNTIF($C$4:$M$35," The result shows up 0, which is incorrect! I want to count withing range -1000 |
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|