COUNTIF with 2 conditions

I want to count the # of projects in a sheet that are 'in progress'. there is a project status column; however the projects have children and i only want to count the # of parent projects in work without adding up their children. I was thinking of maybe doing a COUNTIF with 2 conditions, condition 1) countif 'in progress', condition 2) count only if column x is not blank.

Column X is the project ID number so it would be blank for the children but not the parent. How do I write the syntax?

 

Thanks 

Capture.JPG

Comments