Formula for counting data per month

Akumar28

New Member
Joined
Nov 20, 2018
Messages
3
Hi

I am trying to get a formula to calculate the amount of Y's and N's for one month i.e. April 18 per project and my dates vary from the beginning and ending of the month.

My data is below:

Project Name11 April 201825 April 201809 May 201823 May 201806 June 201820 June 201804 July 201818 July 201801 August 201815 August 201829 August 201812 September 201826 September 201810 October 201824 October 201807 November 201821 November 201805 December 201819 December 2018
Project 1NYNYNNYYA/LYNYNYYN
Project 2YYYYYYYYYYNYYYYY
Project 3N/ANN/ANN/AYYN/AN/AYN/AYN/AYN/AN/A
Project 4YYYYYA/LYYYYYYYYYY

<colgroup><col><col><col><col><col><col><col><col><col span="2"><col><col><col><col><col><col span="2"><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Project Name11-Apr-1825-Apr-1809-May-1823-May-1806-Jun-1820-Jun-18row 1
Project 1NYNYNN
Project 2YYYYYY
Project 3N/ANN/ANN/AY
Project 4YYYYYA/L
col F
month01/04/2018
end day30/04/2018
NYrow 21
Project 111
Project 202
Project 310
Project 402
project 1 N=1 formula
=SUMPRODUCT(($B$1:$G$1>=$F$16)*($B$1:$G$1<=$F$17)*(B2:G2=E$21))

<colgroup><col><col span="2"><col><col><col><col span="8"></colgroup><tbody>
</tbody>
 
Upvote 0
How about


Excel 2013/2016
ABCDEFGHIJKLMNOPQRST
1Project Name11-Apr-1825-Apr-1809-May-1823-May-1806-Jun-1820-Jun-1804-Jul-1818-Jul-1801-Aug-1815-Aug-1829-Aug-1812-Sep-1826-Sep-1810-Oct-1824-Oct-1807-Nov-1821-Nov-1805-Dec-1819-Dec-18
2Project 1NYNYNNYYA/LYNYNYYN
3Project 2YYYYYYYYYYNYYYYY
4Project 3N/ANN/ANN/AYYN/AN/AYN/AYN/AYN/AN/A
5Project 4YYYYYA/LYYYYYYYYYY
6
7
801/04/201801/04/2018
9YN
1052
PFB 003
Cell Formulas
RangeFormula
B10=SUMPRODUCT((MONTH($B$1:$T$1)=MONTH(B$8))*($B$2:$T$5=B$9))
C10=SUMPRODUCT((MONTH($B$1:$T$1)=MONTH(C$8))*($B$2:$T$5=C$9))
 
Upvote 0
Thanks Aladin I have found your formula to be most useful and I will now just edit the dates for the other months I require. Many thanks !
 
Upvote 0
With the help of the Forum I have now managed to work out a formula to use. Many Thanks to all who helped.:)
 
Upvote 0

Forum statistics

Threads
1,213,492
Messages
6,113,967
Members
448,537
Latest member
Et_Cetera

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