ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating data between two given parameters (https://www.excelbanter.com/excel-worksheet-functions/158265-calculating-data-between-two-given-parameters.html)

Craig

Calculating data between two given parameters
 
If i have a range of A1:A300 and the range of numbers within those cells
could be anything from 1 to 50 how do i count cells that contain numbers
greater than 20 but less than 31?

Thanks

Bob Phillips

Calculating data between two given parameters
 
=COUNTIF(A1:A300,"20")-COUNTIF(A1:A300,"30")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Craig" wrote in message
...
If i have a range of A1:A300 and the range of numbers within those cells
could be anything from 1 to 50 how do i count cells that contain numbers
greater than 20 but less than 31?

Thanks




David Biddulph[_2_]

Calculating data between two given parameters
 
Unless the numbers are contrained to being integers, it may be preferable to
use =COUNTIF(A1:A300,"20")-COUNTIF(A1:A300,"=31")
--
David Biddulph

"Bob Phillips" wrote in message
...
=COUNTIF(A1:A300,"20")-COUNTIF(A1:A300,"30")


"Craig" wrote in message
...
If i have a range of A1:A300 and the range of numbers within those cells
could be anything from 1 to 50 how do i count cells that contain numbers
greater than 20 but less than 31?

Thanks





All times are GMT +1. The time now is 06:48 AM.

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