COUNTIF (2) Conditions

Featherk

New Member
Joined
Sep 1, 2006
Messages
4
I'm trying to count with (2) conditions: and I'm using COUNTIF
Example
Column A has 450 lines items and each line item is assigned to various people

Column B has various Delta's for days late. (i.e. <10 days late, <30 Days late, etc

My first Count I can get, My formula is COUNTIF (I1:I450, "<10") = 100

Now I want to count of the 100 how many are Jane Doe


I've tried this COUNTIF (B1:B450, "<10") and, COUNTIF (A1:A450, "<Jan Doe") - this does not work
 
The "double dash" is known as double unary minus. In this scenario it is used to co-erce an array of TRUE/FALSE values to an array of 1/0 values. SUMPRODUCT needs numeric values to calculate.

You can try a small experiment

If cell A1 is blank then this formula in another cell

=A1="" should return TRUE but if you change the formula to

=--(A1="") then the answer will be 1

You could also use

=(A1="")+0 or =(A1="")*1 or others
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,226,244
Messages
6,189,843
Members
453,575
Latest member
Taljanin

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