say >1400 & <1500 in a range from 1200 to 1600
P Pete_UK Aug 26, 2008 #2 Try this: =COUNTIF(range,">1400") - COUNTIF(range,"<1500") Hope this helps. Pete
T T3 Aug 26, 2008 #3 Cheers Pete But this counts all numbers above 1400 and then all numbers below 1500 and the difference could be a negative value, its the number of numbers between the two values.
Cheers Pete But this counts all numbers above 1400 and then all numbers below 1500 and the difference could be a negative value, its the number of numbers between the two values.
M MartinW Aug 26, 2008 #4 Hi T3, I'm sure it was just a typo, Pete meant =COUNTIF(range,">1400") - COUNTIF(range,">1500") Depending on your requirements you may also need =COUNTIF(range,">=1400") - COUNTIF(range,">=1500") or some other slight variant HTH Martin
Hi T3, I'm sure it was just a typo, Pete meant =COUNTIF(range,">1400") - COUNTIF(range,">1500") Depending on your requirements you may also need =COUNTIF(range,">=1400") - COUNTIF(range,">=1500") or some other slight variant HTH Martin
M MartinW Aug 26, 2008 #7 LOL I'd like to claim typo too, but probably more likely the beer. <g> Cheers Martin