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.[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Title[/TD]
[TD]Last day of work[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sales Associate[/TD]
[TD]25-Jan-15[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Sales Associate[/TD]
[TD]16-Apr-15[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Senior Sales[/TD]
[TD]27-Jan-15[/TD]
[/TR]
</tbody>[/TABLE]
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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