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

Primary Division26-Nov27-Nov28-Nov29-Nov03-Dec04-Dec05-Dec
Motorsport 4 4 4
New Business96131620509
Brewery1619 9122517
General 34615124
Equestrian 367
Motorsport 00
General17021918
<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> </tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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, kind Fluff, are a superstar! Was driving me insane and you've made it so simple. Thanks ever so much.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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