ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF With Conditions (https://www.excelbanter.com/excel-worksheet-functions/208463-countif-conditions.html)

roadkill

COUNTIF With Conditions
 
Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that range
of F3:F100 as long as the corresponding Row in Column E is equal to or less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you

RagDyeR

COUNTIF With Conditions
 

=Sumproduct((E3:E200<=30)*(F3:F200=H5))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RoadKill" wrote in message
...
Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that
range
of F3:F100 as long as the corresponding Row in Column E is equal to or
less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you




Mike H

COUNTIF With Conditions
 
Maybe this

=SUMPRODUCT((F3:F200=H5)*(E3:E200<"")*(E3:E200<=3 0))

Mike

"RoadKill" wrote:

Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that range
of F3:F100 as long as the corresponding Row in Column E is equal to or less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you


Luke M

COUNTIF With Conditions
 
=SUMPRODUCT((F3:F200=H5)*(E3:E200<=30))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"RoadKill" wrote:

Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that range
of F3:F100 as long as the corresponding Row in Column E is equal to or less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you


roadkill

COUNTIF With Conditions
 
All work great.

If you can help me one more time though. How about if in E if the number
falls between 31 and 60. From there I should be able to do the next
incarnation of 61 and 90.

Thanks much

"RoadKill" wrote:

Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that range
of F3:F100 as long as the corresponding Row in Column E is equal to or less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you


T. Valko

COUNTIF With Conditions
 
One mo

=SUMPRODUCT(--(E3:E200<""),--(E3:E200<=30),--(F3:F200=H5))

--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that
range
of F3:F100 as long as the corresponding Row in Column E is equal to or
less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you




T. Valko

COUNTIF With Conditions
 
Try this:

=SUMPRODUCT(--(E3:E200<""),--(E3:E200=31),--(E3:200<=60),--(F3:F200=H5))

Better if you use clls to hold the criteria:

A1 = 31
B1 = 60

=SUMPRODUCT(--(E3:E200<""),--(E3:E200=A1),--(E3:200<=B1),--(F3:F200=H5))


--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
All work great.

If you can help me one more time though. How about if in E if the number
falls between 31 and 60. From there I should be able to do the next
incarnation of 61 and 90.

Thanks much

"RoadKill" wrote:

Hello,

Here is my current formula: =COUNTIF(F3:F200, H5)

What I would like it to do is to count the instances of H5 within that
range
of F3:F100 as long as the corresponding Row in Column E is equal to or
less
than 30. The range of Column E is obviously the same as F so E3:E200.

So something like COUNTIF(F3:F200, H5, IF(E3:E200<=30))

Thank you





All times are GMT +1. The time now is 01:59 AM.

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