Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Multiple conditions in a COUNTIF

How do I do a set up the fcn to count all cells in a range that are 0% and
<25%?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Multiple conditions in a COUNTIF

On May 24, 7:37*am, John wrote:
How do I do a set up the fcn to count all cells in a range that are 0% and
<25%?


Hi John,
Try using this: SUMPRODUCT((cellrange0)*1,(cellrange<0.25)*1)
Regards,
-AG
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Multiple conditions in a COUNTIF

=COUNTIF(A:A,"0")-COUNTIF(A1:A20,"=.25")

--
---
HTH

Bob


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



"John" wrote in message
...
How do I do a set up the fcn to count all cells in a range that are 0%
and
<25%?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Multiple conditions in a COUNTIF

That was meant to be

=COUNTIF(A:A,"0")-COUNTIF(A:A,"=.25")


--
---
HTH

Bob


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



"Bob Phillips" wrote in message
...
=COUNTIF(A:A,"0")-COUNTIF(A1:A20,"=.25")

--
---
HTH

Bob


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



"John" wrote in message
...
How do I do a set up the fcn to count all cells in a range that are 0%
and
<25%?





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Multiple conditions in a COUNTIF

=SUM(COUNTIF(A:A,{"0","=0.25"})*{1,-1})


"John" wrote:

How do I do a set up the fcn to count all cells in a range that are 0% and
<25%?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Multiple conditions in a COUNTIF



"Bob Phillips" wrote:

=COUNTIF(A:A,"0")-COUNTIF(A:A,"=.25")

This won't do the trick. It subtracts the count of all values less than
0.25 from the count of all values greater than 0. It's not the same as the
number of all values between 0 and 0.25.

I've tried

=COUNTIF(A:A, AND("0","<0.25))

but that returns 0 since it is evaluating whether a value is "TRUE".
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Multiple conditions in a COUNTIF

=COUNTIF(A:A,"0")-COUNTIF(A:A,"=.25")
This won't do the trick It subtracts the count of all
values less than 0.25 from the count of all values
greater than 0. It's not the same as the number of
all values between 0 and 0.25.


No, it literally counts all values **between** 0 and 0.25.

It counts all numbers 0 then subtracts the count of all numbers =0.25.

So, the range is in essence (out to 15 decimal places):

0.000000000000001
0.249999999999999


--
Biff
Microsoft Excel MVP


"Catenary" wrote in message
...


"Bob Phillips" wrote:

=COUNTIF(A:A,"0")-COUNTIF(A:A,"=.25")

This won't do the trick. It subtracts the count of all values less than
0.25 from the count of all values greater than 0. It's not the same as
the
number of all values between 0 and 0.25.

I've tried

=COUNTIF(A:A, AND("0","<0.25))

but that returns 0 since it is evaluating whether a value is "TRUE".



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Multiple conditions in a COUNTIF

Hi,

Did you try

=sumproduct((A5:A5000)*(A5:A500<=0.25))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Catenary" wrote in message
...


"Bob Phillips" wrote:

=COUNTIF(A:A,"0")-COUNTIF(A:A,"=.25")

This won't do the trick. It subtracts the count of all values less than
0.25 from the count of all values greater than 0. It's not the same as
the
number of all values between 0 and 0.25.

I've tried

=COUNTIF(A:A, AND("0","<0.25))

but that returns 0 since it is evaluating whether a value is "TRUE".


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF Multiple conditions stretch Excel Discussion (Misc queries) 3 May 12th 08 03:43 PM
Countif with multiple conditions torooo Excel Discussion (Misc queries) 5 December 7th 07 07:03 PM
countif multiple conditions gerryR[_2_] Excel Worksheet Functions 4 July 3rd 07 04:37 PM
CountIf with multiple conditions Thor Excel Worksheet Functions 2 September 22nd 06 08:59 PM
COUNTIF - multiple conditions allphin Excel Worksheet Functions 4 September 18th 05 04:05 PM


All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"