# COOUNT IF statement with AND?

#### gg

##### Well-known Member
Can I have a Count if "AND" statement? Together?

Countif(AND(.......?

Two criteria must be met before the count?

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Do you have a detailed example in mind?

Given the paucity of information, a general formula:

=SUMPRODUCT(--(Range1=Cond1),--(Range2=Cond2))

Ok I may need to go into some detail.

I have table that has 4 columns
A = Dates
B = Names
C = Names2
D = Scores

I want to be able to identify when
Name X had a score for today and yesterday ( Today-1)

also 3 scores in 4 days
and 4 scores in 5 days.

I am trying to determine the effect of being over worked if you will.

In summary I want to know effects of
back to back days.
3 scores in 4 days
4 scores in 5 days

So I am trying to come up with a moving array that I can drag down and it automatically compute.

Make sense?

I need these to be in different columns
BTB,3N4,4N5

Currently the formula that Aladin above gave me working good for the
back to Back.

I am just trying to understand how I can apply it to the others.

3 in 4 days
4 in 5 days

???Any ideas?

Aboot time you posted your layout, eh?

Replies
20
Views
449
Replies
4
Views
505
Replies
3
Views
182
Replies
5
Views
149
Replies
1
Views
227

1,221,216
Messages
6,158,585
Members
451,501
Latest member
andysacko

### 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.

### Which adblocker are you using?

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

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