CountIf()

pacoonejr

Board Regular
Joined
Apr 19, 2003
Messages
138
I guess I just don't get it. I want to count on F2:F200 IF B = "Y" and F = "Z". I think (emphasis on think) I have tried every concievable way to do this. Could someone please explain this to me.

Thanks in advance.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Help I received from this board
Code:
=SUMPRODUCT(--(INDIRECT("'"&D$1&"'!$G$3:$G"&D$8)="Pass"),--(ISNUMBER(MATCH(INDIRECT("'"&D$1&"'!$I$3:$I"&D$8),{"Major","Maj"},0))))
I counting passed in column G and major in column I.
HTH,
Bruce.
 
Upvote 0
Are you looking in B1 and F1 or the Y and Z, respectively? Or are you looking in column B and Column F for occurrences of Y and Z?
 
Upvote 0
pacoonejr said:
I guess I just don't get it. I want to count on F2:F200 IF B = "Y" and F = "Z". I think (emphasis on think) I have tried every concievable way to do this. Could someone please explain this to me.

Thanks in advance.

Try --

=SUMPRODUCT(--(B2:B200="Y"),--(F2:F200="Z"),F2;F200)

for counting, use

=SUMPRODUCT(--(B2:B200="Y"),--(F2:F200="Z"))
 
Upvote 0

Forum statistics

Threads
1,203,468
Messages
6,055,597
Members
444,800
Latest member
KarenTheManager

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top