Excel 2007 COUNTIF Help

KJ2607

New Member
Joined
Aug 28, 2013
Messages
36
Hi There

I'm trying to write a formula so that if "Red" appears in the A Column, I need to count how many times "Yes" appears in the D Column:

[TABLE="width: 345"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Open/Closed?[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Red[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Yellow[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Yellow[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Red[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Green[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD]Green[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]Green[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]

I've tried writing a few versions but I just can't seem to get the formula right - Obviously I know the answer for this example would be "1" but the Worksheet I'm working on is going to have much more information that I need count.

Any help would be greatly appreciated!

Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,226,693
Messages
6,192,463
Members
453,725
Latest member
cvsdatreas

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