Complex COUNTIF

bkelly

Active Member
Joined
Jan 28, 2005
Messages
465
My spreadsheet uses the following formula

=COUNTIF(D3:D84,"1")

This works, but I need to add some more qualifications. Try as I might, I cannot find the right syntax. Here is what I need:

=COUNTIF( (D3:D84,"1") AND (F3:F84="Tom") AND (I3:I84="OPEN" ) )

Goal: This is a spreadsheet of issues (problems). This example is to count the number of priority 1 issues assigned to Tom that are open.

Thanks for your time
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try using Sumproduct

=SUMPRODUCT(--(D3:D84,1),--(F3:F84,"Tom"),--(I3:I84,"OPEN"))
 
Upvote 0
Try this one:

=SUMPRODUCT((D3:D84=1)*(F3:F84="Tom")*(I3:I84="OPEN"))

Greetz,

Koen
 
Upvote 0
NBVC said:
Try using Sumproduct

=SUMPRODUCT(--(D3:D84,1),--(F3:F84,"Tom"),--(I3:I84,"OPEN"))

Sorry, was thinking of countif at same time:

Should be
=SUMPRODUCT(--(D3:D84=1),--(F3:F84="Tom"),--(I3:I84="OPEN"))
 
Upvote 0
I grabbed the one from NVBC, pasted it in, and (of course) it worked.
thank you.

BTW: what is the purpose of the two dashes in each segment?

Thanks again
 
Upvote 0
bkelly said:
I grabbed the one from NVBC, pasted it in, and (of course) it worked.
thank you.

BTW: what is the purpose of the two dashes in each segment?

Thanks again

If you search for "coersion" in this site, I am sure you will find some good explanations, but basically it forces True/False to quickly convert to 1 and 0, respectively for more efficient counting (or summing) when processing the formula.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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