ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   counting values within given interval - countif? (https://www.excelbanter.com/excel-discussion-misc-queries/25088-counting-values-within-given-interval-countif.html)

A_F

counting values within given interval - countif?
 
in a column L i have values that range from 1,3 to 3,5,.
I want to count how many values are between lets say 2 and 2,5.
i tried with this expression: =COUNTIF(L2:L450;AND("2";"<2,5"))and it
returns me 0.
is it possible to count just how many values lies between given
interval (2<2,5) and how can i do this?

Franz

"A_F" ha scritto nel messaggio

in a column L i have values that range from 1,3 to 3,5,.
I want to count how many values are between lets say 2 and 2,5.
i tried with this expression: =COUNTIF(L2:L450;AND("2";"<2,5"))and it
returns me 0.
is it possible to count just how many values lies between given
interval (2<2,5) and how can i do this?



Youi can try this formula:

=SUMPRODUCT((L2:L4502)*(L2:L450<2,5))


--
Hoping to be helpful...

Regards

Franz

----------------------------------------------------------------------------------------
To reply translate from italian InVento (no capital letters)
----------------------------------------------------------------------------------------



A_F


Franz wrote:
Youi can try this formula:

=SUMPRODUCT((L2:L4502)*(L2:L450<2,5))


yes, it works, thanks a lot

Bob Phillips

=COUNTIF(L2:L450;"<2,5")-COUNTIF(L2:L450;"<=2")

--
HTH

Bob Phillips

"A_F" wrote in message ...
in a column L i have values that range from 1,3 to 3,5,.
I want to count how many values are between lets say 2 and 2,5.
i tried with this expression: =COUNTIF(L2:L450;AND("2";"<2,5"))and it
returns me 0.
is it possible to count just how many values lies between given
interval (2<2,5) and how can i do this?




Franz

"A_F" ha scritto nel messaggio

Franz wrote:
Youi can try this formula:

=SUMPRODUCT((L2:L4502)*(L2:L450<2,5))


yes, it works, thanks a lot


You're welcome. Thanks for the feedback
--
Hoping to be helpful...

Regards

Franz

----------------------------------------------------------------------------------------
To reply translate from italian InVento (no capital letters)
----------------------------------------------------------------------------------------




All times are GMT +1. The time now is 08:19 PM.

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