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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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
 
Upvote 0
Use sumproduct to solve it as the following:
Code:
=sumproduct((a1:a100="AM")*(B1:B100="New")*(c1:c100="Mar-07"))

Best Regards.
 
Upvote 0
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:
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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