ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count IF problem (https://www.excelbanter.com/excel-worksheet-functions/44127-count-if-problem.html)

[email protected]

Count IF problem
 
I have the following numbers in a excel sheet:
45 56 57 60 58 67 50 70 32 65

I want to count the number of numbers that are =50 but <65.
i used =COUNTIF(A3:J3,"<65")-COUNTIF(A1:J3,"<=50") and instead of the
number in the column being 5 it shows as 4.

Did i mess up on the function? Or what?

Any help would be appreciated.

Thanks
Karl


Sandy Mann

Karl,

You want to count number that are 50 so your ,"<=50" should read ,"<50") and
it will then count 50's

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk


wrote in message
ups.com...
I have the following numbers in a excel sheet:
45 56 57 60 58 67 50 70 32 65

I want to count the number of numbers that are =50 but <65.
i used =COUNTIF(A3:J3,"<65")-COUNTIF(A1:J3,"<=50") and instead of the
number in the column being 5 it shows as 4.

Did i mess up on the function? Or what?

Any help would be appreciated.

Thanks
Karl




[email protected]

Thanks, that got it working.



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

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