Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Does anyone knows how can I use CountIf with two criteria conditions. For example if I want to Count numbers with the following criteria: =40 and <45. What shall I write in the criteria field I tried using & or and in the criteria field but it didn't work Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
=COUNTIF(A1:A100,"=40") - COUNTIF(A1:A100,"=45") another: =SUMPRODUCT(--(A1:A100=40),--(A1:A100<45)) In article , Eze wrote: Hi, Does anyone knows how can I use CountIf with two criteria conditions. For example if I want to Count numbers with the following criteria: =40 and <45. What shall I write in the criteria field I tried using & or and in the criteria field but it didn't work Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thanks. This helped me but I thought that there was a way to write both
conditions in the same line, for example =COUNTIF(A1:A100,"=40&<45") but it seems that there is not "JE McGimpsey" wrote: One way: =COUNTIF(A1:A100,"=40") - COUNTIF(A1:A100,"=45") another: =SUMPRODUCT(--(A1:A100=40),--(A1:A100<45)) In article , Eze wrote: Hi, Does anyone knows how can I use CountIf with two criteria conditions. For example if I want to Count numbers with the following criteria: =40 and <45. What shall I write in the criteria field I tried using & or and in the criteria field but it didn't work Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF | Excel Discussion (Misc queries) | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |