Count specific to a month

Jayfaku

New Member
Joined
Aug 21, 2018
Messages
16
In sheet 1
In column A I have dates
In column B I have drop down list - FAI, MTI, LTI, RO
In column C I have details
Column D.....

In Sheet 2 I want:

Column D count number of FAI (row4),MTI (r5), LTI (r6) for a particular month based on the dates from Sheet 1 A:A
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,

Try this and see if this helps:


Book1
CDE
312
4FAI46
5MTI44
6LTI41
Sheet2
Cell Formulas
RangeFormula
D4=SUMPRODUCT((Sheet1!$B$2:$B$31=Sheet2!$C4)*(MONTH(Sheet1!$A$2:$A$31)=D$3))
 
Upvote 0
Thank you for the response.
I am having difficulty with formula
Sheet1!$B$2:$B$31 this is the column with the entries FAI, LTI, MTI, RO
=Sheet2!$C4 this is what I am counting say FAI
Sheet1!$A$2:$A$ this is the column with dates
=D$3 What does this cell reference, is it the month

I tried using your formula with the following but it came up with error

=SUMPRODUCT(('Injury Register'!$I$2:$I$41=Dashboard!A$12)*(MONTH('Injury Register'!$C$2:$C$50)=B$10))

A$12 is FAI
B$10 is July

Thanks
 
Upvote 0
Hi,

Formula was incorrect copied.

try this and make sure evaluation and count ranges are of an equal size:

=SUMPRODUCT(('Injury Register'!$I$2:$I$41=Dashboard!A$12)*(MONTH('Injury Register'!$C$2:$C$50)=B$10))

Ranges should containe an equal number of rows so either

  1. change the range within column I to 'Injury Register'!$I$2:$I$50 formula looks like this =SUMPRODUCT(('Injury Register'!$I$2:$I$50=Dashboard!A$12)*(MONTH('Injury Register'!$C$2:$C$50)=B$10)); OR
  2. change the range within column C down to $C$2:$C$41 and formula becomes =SUMPRODUCT(('Injury Register'!$I$2:$I$41=Dashboard!A$12)*(MONTH('Injury Register'!$C$2:$C$41)=B$10))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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