COUNTIF: 2 criteria: Month Column & Text Column

maychui

New Member
Joined
Sep 20, 2015
Messages
8
Hi all,

I am currently working on a turnover report and i am having some problems using the countif formula to count e.g. the number of staff resigning on a certain month with a certain title.
AB
1TitleLast day of work
2Sales Associate25-Jan-15
3Sales Associate16-Apr-15
4Senior Sales27-Jan-15

<tbody>
</tbody>
I tried to search online and found that I will have to use SUMPRODUCT instead of COUNTIF for this matter as there are the month column and text column. However, I have not too familiar with this function.
Can anyone help so that i can have the result of:
in January, there are 1 Sales Associate leaver and 1 Senior Sales leaver and 1 Sales Associate leaver in Apr

Note that I only look at the month instead of the date.
thanks for your help in advance
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try this

Excel Workbook
ABCDEF
11TitleLast day of workTitle01/01/201531/01/2015
22Sales Associate25-Jan-15Sales Associate1
33Sales Associate16-Apr-15Senior Sales1
44Senior Sales27-Jan-15
Sheet2
 
Upvote 0
Thanks for your reply. but is there a method for this that i don't need to add the E1 &F1 cell? Since my report will be showing data from January to December , there will be too much information. Is it possible to simply use the month in column c to create the formula?
 
Upvote 0
I have actually tried this: (using the table in the 1st post)
=SUMPRODUCT(--(B2:B4<>""),--(MONTH(B2:B4)=6))

It works fine and comes up with the right answer but if i want to know the separate turnover by position i tried to edit the formula to
=SUMPRODUCT(--(B2:C4<>""),--(MONTH(B2:B4)=6)),--(A2:A4="Sales Associate")

However it comes up with the VALUE error. anyone know how i can edit the formula to make it work?
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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