Sum Product and Count IF . is this possible?

Raj1313

Board Regular
Joined
Nov 20, 2014
Messages
125
HI I have the below formula working fine :

=SUMPRODUCT((MONTH(A:A=$C$64)*1)) - This finds all entries which are December in a list of dates.

I want to add a count IF to it which is =COUNTIF(A:A,D57) - is this possible?
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Unless the D57 has a date in December it will produce 0 or if in December the countif can be used on its own from what I can see. You are testing the same range with both formulae.
 
Upvote 0
C64 relates to December and D57 is just text. I need the formula to find all the text (D57) from column (B;B) MTD and also only include records MTD from the date column (A:A). if that makes sense
 
Upvote 0
C64 relates to December? What does that mean? What is in cell C64 exactly?
 
Upvote 0
What appears in the formula bar? We need the cell value not its appearance after formatting. MMM should produce Dec not December.
 
Upvote 0
The Cell Value is =Today() which produces December after formatting it to mmmm
 
Last edited:
Upvote 0
Try:

=COUNTIFS(B:B,D57,A:A,">="&EOMONTH(C64,-1)+1,A:A,"<"&EOMONTH(C64,0)+1)
 
Upvote 0

Forum statistics

Threads
1,213,495
Messages
6,113,992
Members
448,538
Latest member
alex78

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