Count the amount of times a month appears in a range

halloyd

New Member
Joined
Sep 14, 2018
Messages
17
I tried the formulas here, but they are all returning #VALUE .

https://www.mrexcel.com/forum/excel...umber-times-specific-month-appears-range.html

Please note that I am referencing a separate workbook ('[2018 Claim Status Sheet.xlsx]Active Claims') which has the dates in it.

This is an example of my info plugged into one of the formulas:
Code:
=SUMPRODUCT(--(MONTH('[2018 Claim Status Sheet.xlsx]Active Claims'!$F1:$F500)=9),'[2018 Claim Status Sheet.xlsx]Active Claims'!$F1:$F500<>"")

Thanks!
 
Thank you!

New question:
This formula is counting blanks as January (1), so it says I currently have a lot of claims from January open when I actually have none.
Code:
=SUMPRODUCT(--(MONTH('[2018 Claim Status Sheet.xlsx]Active Claims'!$G3:$G500)=1))
Any idea how to fix?

Control+shift+enter, not just enter:

=SUM(IF(ISNUMBER('[2018 Claim Status Sheet.xlsx]Active Claims'!$G3:$G500),IF(MONTH('[2018 Claim Status Sheet.xlsx]Active Claims'!$G3:$G500)=1,1)))


Just enter:

=SUMPRODUCT(--ISNUMBER('[2018 Claim Status Sheet.xlsx]Active Claims'!$G3:$G500),--(MONTH('[2018 Claim Status Sheet.xlsx]Active Claims'!$G3:$G500)=1))

Both are array-processing formulas and equally expensive.
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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