COUNTIFS for reocurring Date Entries

Greenies08

New Member
Joined
Apr 4, 2011
Messages
22
Hi, I have data where by the row is dates and there are multiple columns underneath with data in.
I wish to count the number of times any entry is not blank for a whole month.

So for Nov, the answer would be 14, Dec would be 17

I used COUNTIFS(A2:A7,"<>""",INDEX(B2:H7,,MATCH(M4,B1:H1,0)),">0")

M4 is whatever month I put in on a separate cell

Thank you in advance

[TABLE="width: 345"]
<colgroup><col width="109" style="width: 82pt; mso-width-source: userset; mso-width-alt: 3986;"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;" span="3"> <col width="49" style="width: 37pt; mso-width-source: userset; mso-width-alt: 1792;" span="3"> <tbody>[TR]
[TD="width: 109, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] "]Primary Division[/TD]
[TD="width: 51, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]26-Nov[/TD]
[TD="width: 51, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]27-Nov[/TD]
[TD="width: 51, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]28-Nov[/TD]
[TD="width: 51, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]29-Nov[/TD]
[TD="width: 49, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]03-Dec[/TD]
[TD="width: 49, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]04-Dec[/TD]
[TD="width: 49, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFC000]#FFC000[/URL] , align: right"]05-Dec[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Motorsport[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]New Business[/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]13[/TD]
[TD="bgcolor: transparent, align: right"]16[/TD]
[TD="bgcolor: transparent, align: right"]20[/TD]
[TD="bgcolor: transparent, align: right"]50[/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Brewery[/TD]
[TD="bgcolor: transparent, align: right"]16[/TD]
[TD="bgcolor: transparent, align: right"]19[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent, align: right"]25[/TD]
[TD="bgcolor: transparent, align: right"]17[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]General[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]15[/TD]
[TD="bgcolor: transparent, align: right"]12[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Equestrian[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]7[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Motorsport[/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: #A6A6A6"] [/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]General[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent, align: right"]7[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent, align: right"]9[/TD]
[TD="bgcolor: transparent, align: right"]18[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about


Excel 2013/2016
ABCDEFGHIJKLMN
1Primary Division26-Nov27-Nov28-Nov29-Nov03-Dec04-Dec05-Dec
2Motorsport444
3New Business96131620509
4Brewery1619912251701/12/201917
5General34615124
6Equestrian367
7Motorsport00
8General17021918
Sheet2
Cell Formulas
RangeFormula
N4=SUMPRODUCT((MONTH(B1:H1)=MONTH(M4))*(B2:H8>0))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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