ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Countif if the value falls between 2 other values (https://www.excelbanter.com/new-users-excel/59310-countif-if-value-falls-between-2-other-values.html)

les8

Countif if the value falls between 2 other values
 
Need to count values that fall between two limits: for example
462
997
569
122
Need to count values between 300 and 600.
I can do if my desired value is over or under a target, but not within a
range.
Any help would be greatly appreciated.
Thanks.

Peo Sjoblom

Countif if the value falls between 2 other values
 
=COUNTIF(A:A,"=300")-COUNTIF(A:A,"600")


--

Regards,

Peo Sjoblom


"les8" wrote in message
...
Need to count values that fall between two limits: for example
462
997
569
122
Need to count values between 300 and 600.
I can do if my desired value is over or under a target, but not within a
range.
Any help would be greatly appreciated.
Thanks.




Alan

Countif if the value falls between 2 other values
 
Try
=SUMPRODUCT(--(A1:A1000=300),--(A1:A1000<=600))
Regards,
Alan.
"les8" wrote in message
...
Need to count values that fall between two limits: for example
462
997
569
122
Need to count values between 300 and 600.
I can do if my desired value is over or under a target, but not within a
range.
Any help would be greatly appreciated.
Thanks.




les8

Countif if the value falls between 2 other values
 
Thanks to both of you. It worked!

"les8" wrote:

Need to count values that fall between two limits: for example
462
997
569
122
Need to count values between 300 and 600.
I can do if my desired value is over or under a target, but not within a
range.
Any help would be greatly appreciated.
Thanks.



All times are GMT +1. The time now is 03:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com