countif with more than 1 criteria

JotSousa

New Member
Joined
Oct 20, 2006
Messages
2
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 :p

JOT
 

Excel Facts

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

patrickmuldoon99

Active Member
Joined
Jun 27, 2006
Messages
345
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
Joined
Jun 21, 2006
Messages
1,122
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
Joined
Oct 20, 2006
Messages
2
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:
 

Forum statistics

Threads
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.
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
Top