ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF Function (https://www.excelbanter.com/excel-worksheet-functions/17564-countif-function.html)

Meredith

COUNTIF Function
 
I would like to look at one column (range1) in excel and if the word
"internal" appears, I would like to then look to the next column (range2) and
count the total number of times the value is between 6 and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal to 1. Both internal
and between 6 and 10. I can do them separately but cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


Naomi

=SUMPRODUCT((A2:A4<=10)*(A2:A4=6)*(B2:B4="Interna l"))
:)

"Meredith" wrote:

I would like to look at one column (range1) in excel and if the word
"internal" appears, I would like to then look to the next column (range2) and
count the total number of times the value is between 6 and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal to 1. Both internal
and between 6 and 10. I can do them separately but cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


Meredith

Thank you so much!

"Naomi" wrote:

=SUMPRODUCT((A2:A4<=10)*(A2:A4=6)*(B2:B4="Interna l"))
:)

"Meredith" wrote:

I would like to look at one column (range1) in excel and if the word
"internal" appears, I would like to then look to the next column (range2) and
count the total number of times the value is between 6 and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal to 1. Both internal
and between 6 and 10. I can do them separately but cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.



All times are GMT +1. The time now is 10:37 PM.

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