Count if question

Morfi

Board Regular
Joined
Jun 16, 2009
Messages
97
I am trying to create a formula that will count all of the "yes" entries in one column and from that total will subtract any that come under the heading NFA in another column i.e.

The worksheet is called Apr-Jun

Column S - entry will be Yes or No
Column J - entry can be a number of options one of which is NFA

I want a formula on a different worksheet that will count all of the Yes entries in column S but won't include any that are noted as NFA in column J. To count the yes entries at the moment I have the following formula:

=COUNTIF('Apr-Jun'!S2:S16, "Y")

Is there something I can add to this or would I need an entire new formula? If so, ant suggestions ars to what it should be?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
That works thanks.

I also need to count the number of entries that are over 40 and discount any that are NFAs. I tried using the same formula but ir doesn't seem to work.

Column J - entry can be a number of options one of which is NFA
Column R = Number of days

The formula I have tried is:

=SUMPRODUCT(--('Apr-Jun'!R2:R16=">40"),--('Apr-Jun'!J2:J16<>"NFA"))

Is it something to do with the >40 part that stops it from working?
 
Upvote 0
The entries in column R are:

43
5
-2
-4
-4
-5
-19
-15

I want the formula to return the answer of 1 as only 1 is greater than 40 but it's coming back with 5.
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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