Countif for more than one criteria

Linzalin

New Member
Joined
Apr 13, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Good evening everyone,
I would like some help with a formula if anyone could assist. I have searched a number of forums and not had any luck!
I have created a staffing list with various columns of information. On a separate tab, I would like to count how many times a name appears in column 'E' and in P column how many times it says 'yes'. I want to check the name and yes to appear for it to count. I have tried =COUNTIF(Staff!E:E,Complete!C3)+COUNTIF(Staff!P3:P500,"Yes")
Plus other variations. I think I'm almost there but need some help!!

Also, I have done a custom sort for two columns that needs refreshing
I have seen the new =SORT but it is not showing on my version. Is there something else that would complete this sort as date is added?

Thanks for any help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the board!

Try using the COUNTIFS function, which allows for multiple conditions.
 
Upvote 0
Thanks I've been pm here before but not got my log on! It's always useful!

Change to...?
=COUNTIFS(Staff!E:E,Complete!C3)+(Staff!P:P,"Yes")

I only want it to count if both criteria are met if possible?
 
Upvote 0
I only want it to count if both criteria are met if possible?
Yes, that is what COUNTIFS does, but you have not structured it correctly.
The format is:
=COUNTIFS(range1, condition1, range2, condition2)

Here is a link with examples: MS Excel: How to use the COUNTIFS Function (WS)

(I could do it for you, but I think you will get more out of it trying it yourself!) ;)
 
Upvote 0
Thanks I've worked it out! I thought there's got to be away!! I'm gradually learning!! Thank you for replying and helping!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,680
Members
449,116
Latest member
HypnoFant

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