Syntax of COUNTIF() with 3 criteria

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
426
Office Version
  1. 365
Platform
  1. Windows
How can I use COUNTIF() with 3 criterias to meet. Example I want to count the number of employee who are "Resigned" under "H"R dept." and with "Indian Nationality". My table is: A1-Emp Name B1-Status(Resigned or Active), C1-Department, D1-Nationality...help please
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Try this:

=SUMPRODUCT(--(B1:B1000="Resigned"),--(C1:C1000="HR"),--(D1:D1000="Indian"))
 

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
426
Office Version
  1. 365
Platform
  1. Windows
The formula works okay thanks for that...what if i wanted to change one of the criteria, let us say all employee number that starts to 1. thanks
 

Forum statistics

Threads
1,181,102
Messages
5,928,067
Members
436,586
Latest member
latintxn

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