Count number of times a word appears during a date range

ashbeigh

New Member
Joined
Jan 10, 2013
Messages
9
I had the formula and things were working great until I saved over it all and now I have tried, unsuccessfully, to find the formula I used online again. I need help!

I have a list of grants with different names. I need to count the number of times they appear between 9/1/2012 and 12/31/2012 in one row and in another row I need to count the number of times those same grants appears during the month of January, so 1/1/2013 to 1/31/2013. I had tried to recreate the formula I had found with this:

=SUMPRODUCT(--(E3:E127,"MCP"),--(B3:B127,=DATEVALUE>="9/1/2012"),--(B3:B127,=DATEVALUE<="12/31/2012"))

MCP is the grant name.

I am not a huge excel person and need some help! Please help me figure out where my errors are!!!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
=sumproduct(--(e3:e127="mcp"), ...
 
Upvote 0
Welcome to the board!

Try:
=SUMPRODUCT(--(E3:E127="MCP"),--(B3:B127 > =DATE(2012,9,1)),--(B3:B127 < =DATE(2012,12,31)))
or if you are using Excel 2007 or later:
=COUNTIFS(E3:E127,"MCP",B3:B127," > =9/1/2012",B3:B127," < =12/31/2012")
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,004
Members
449,203
Latest member
Daymo66

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