ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using COUNTIF & compare 2 different #'s (https://www.excelbanter.com/excel-worksheet-functions/26518-using-countif-compare-2-different-s.html)

 Linda G. May 17th 05 06:17 PM

Using COUNTIF & compare 2 different #'s

I've got a worksheet that I need to capture info between 1000 & 1080 and then
have the number of times it appears in a specific range. The last formula I
tried to input =COUNTIF(G2:AG2,"=1000")-COUNTIF(G2:AG2,"<=1080") reflects
either 0 in my target cell or gives me an error. Any help someone could give
would be greatly appreciated. Plus, please don't get to techical, I'm a
newby. Thanks!

 Duke Carey May 17th 05 06:26 PM

Maybe

=COUNTIF(G2:AG2,"<=1080") -COUNTIF(G2:AG2,"<1000")

"Linda G." wrote:

I've got a worksheet that I need to capture info between 1000 & 1080 and then
have the number of times it appears in a specific range. The last formula I
tried to input =COUNTIF(G2:AG2,"=1000")-COUNTIF(G2:AG2,"<=1080") reflects
either 0 in my target cell or gives me an error. Any help someone could give
would be greatly appreciated. Plus, please don't get to techical, I'm a
newby. Thanks!

 lggallo May 18th 05 07:14 PM

I've tried this before but with 1000 first and then 1080 second. Plus, I
didn't leave a blank space between the 1st range and the next COUNTIF. I'm
going to try the formula below and see how it goes. Will let you know what
happens. Thanks! Linda G

"Duke Carey" wrote:

Maybe

=COUNTIF(G2:AG2,"<=1080") -COUNTIF(G2:AG2,"<1000")

"Linda G." wrote:

I've got a worksheet that I need to capture info between 1000 & 1080 and then
have the number of times it appears in a specific range. The last formula I
tried to input =COUNTIF(G2:AG2,"=1000")-COUNTIF(G2:AG2,"<=1080") reflects
either 0 in my target cell or gives me an error. Any help someone could give
would be greatly appreciated. Plus, please don't get to techical, I'm a
newby. Thanks!

 lggallo May 18th 05 07:32 PM

It worked GREAT!!! Many, many thanks! Linda G

"lggallo" wrote:

I've tried this before but with 1000 first and then 1080 second. Plus, I
didn't leave a blank space between the 1st range and the next COUNTIF. I'm
going to try the formula below and see how it goes. Will let you know what
happens. Thanks! Linda G

"Duke Carey" wrote:

Maybe

=COUNTIF(G2:AG2,"<=1080") -COUNTIF(G2:AG2,"<1000")

"Linda G." wrote:

I've got a worksheet that I need to capture info between 1000 & 1080 and then
have the number of times it appears in a specific range. The last formula I
tried to input =COUNTIF(G2:AG2,"=1000")-COUNTIF(G2:AG2,"<=1080") reflects
either 0 in my target cell or gives me an error. Any help someone could give
would be greatly appreciated. Plus, please don't get to techical, I'm a
newby. Thanks!

 All times are GMT +1. The time now is 11:46 PM.