ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1 (https://www.excelbanter.com/excel-worksheet-functions/8212-countif-meeting-two-criteria-eg%3E5-%3C10-1-a.html)

John Higgins

COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1
 
I have a range of values. I wish to count the number of values in this row
that are between 5 and 10.1.

How do I do this?

Don Guillett

try
=sumproduct((a2:a22=5)*(a2:a22<10.1))

--
Don Guillett
SalesAid Software

"John Higgins" <John
wrote in message
...
I have a range of values. I wish to count the number of values in this row
that are between 5 and 10.1.

How do I do this?




Gord Dibben

John


=COUNTIF(A1:T1,"5")-COUNTIF(A1:T1,"10.09999") for a range.

OR

=COUNTIF(1:1,"5")-COUNTIF(1:1,"10.09999") for entire row.


Gord Dibben Excel MVP

On Tue, 21 Dec 2004 17:01:02 -0800, John Higgins <John
wrote:

I have a range of values. I wish to count the number of values in this row
that are between 5 and 10.1.

How do I do this?




All times are GMT +1. The time now is 08:51 AM.

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