counting problem

jrussell

New Member
Joined
Apr 4, 2002
Messages
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
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
On 2002-04-15 17:43, jrussell wrote:
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

in B27 put

=COUNTIF(B1:B26,"<11")-COUNTIF(B1:B26,"<=1")
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
On 2002-04-15 18:15, Ricky Morris wrote:
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.

i think you mean ctrl+shift+enter?
This message was edited by anno on 2002-04-15 19:09
This message was edited by anno on 2002-04-15 19:12
 
Upvote 0
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 <E1, <=E1....I try but fail.
 
Upvote 0
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 <E1, <=E1 ???

Thanks for your help
 
Upvote 0
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)
 
Upvote 0
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,"<E1")-COUNTIF($C$4:$M$35,"<=-E1")

The result shows up 0, which is incorrect!
I want to count withing range -1000<x<1000
Pls advise, thanks!
 
Upvote 0
On 2002-04-15 19:52, chaju wrote:
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,"<E1")-COUNTIF($C$4:$M$35,"<=-E1")

The result shows up 0, which is incorrect!
I want to count withing range -1000<x<1000
Pls advise, thanks!

Please post part of your list and your counting criteria ... nd then let us take it from there!
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top