# countif with more than 1 criteria

#### JotSousa

##### New Member
Hi all,

I'm trying to use the countif function to do the following:

I have a table like the one below

Column A Column B Column C
Grade New/Existing Month started if New
AM New Mar-07
CSM Existing
CSM New Feb -07

etc..

Bascially, I need to be able to countif the grade is AM and the person is New and they started in Month Mar-07.

Any ideas???

Thanks so so much

JOT

### Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

#### patrickmuldoon99

##### Active Member
Create a column adjacent to your data set, that concatenates the values like so:

=A1 & "@" & B1 & "@" & C1

This will then create a concatenated field that should look like

AM@New@Mar-07

You can then do a countif on that column like so:

=COUNTIF("D1:D100","AM@New@Mar-07")

Hope this helps

Patrick

#### northwolves

##### Well-known Member
Use sumproduct to solve it as the following:
Code:
``=sumproduct((a1:a100="AM")*(B1:B100="New")*(c1:c100="Mar-07"))``

Best Regards.

#### JotSousa

##### New Member
Hi both

Thanks very much for your help. I ended up creating a table and using the dcounta function, but both of your suggestions are great and I'll use them in future.

Have a great day!

JOT :wink:

Replies
1
Views
72
Replies
2
Views
105
Replies
1
Views
61
Replies
12
Views
690
Replies
3
Views
194

1,137,366
Messages
5,681,071
Members
419,950
Latest member
BeckiJae

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