Counting days

Jayfaku

New Member
Joined
Aug 21, 2018
Messages
16
In column B2:B157 I have dates
In column C2:C157 I have =CHOOSE(WEEKDAY(B3),"Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"), to give me the day, B3 is a specific date

What I want to do in another worksheet is count number of mon, tues, wed,... in a given month.

So the result should tell me 5 reports made on Mon in June, etc.....

Can you please help?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
.
Paste in F2 and copy down :
Code:
=COUNTIF(C2:C157,E2)




A
B
C
D
E
F
1
2
1/1/2018​
Tue​
Mon
22​
3
1/2/2018​
Wed​
Tue
22​
4
1/3/2018​
Thu​
Wed
21​
5
1/4/2018​
Fri​
Thu
21​
6
1/5/2018​
Sat​
Fri
21​
7
1/6/2018​
Sun​
Sat
22​
8
1/7/2018​
Mon​
Sun
21​
9
1/8/2018​
Tue​
10
1/9/2018​
Wed​
 
Upvote 0
In column B2:B157 I have dates
In column C2:C157 I have =CHOOSE(WEEKDAY(B3),"Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"), to give me the day, B3 is a specific date
If you really need this (text) column, a much simpler formula is

=TEXT(B3,"ddd")



.. count number of mon, tues, wed,... in a given month.
Can you confirm whether you want ..
a) The actual number of Mondays in a calendar of a particular month, or
b) The number of dates in your list B2:B157 that are actually, say, a Monday in June? If this is it, does your list of dates cover dates in more than one year so that you might have 4 June 2018 and 26 June 2016 and if so, might we count both of thos if looking at June or would we be just looking at, say, June 2018?
 
Upvote 0
The year runs from July 2017 to June 2018, so month is not repeated.
The result should give me NUMBER of reports in June that was on Mon, Tues...

Just to help me understand which day it is being reported I have entered the day formula in column C

Thanks
 
Upvote 0
Just to help me understand which day it is being reported I have entered the day formula in column C
Fair enough, though if you want that, the formula I gave is a very simple one to do that.

For your counting question I have used those column C values in my column F formula below, but note the alternative (shorter) formula in column G that doesn't require column C to get the same result. :)

Excel Workbook
BCDEFG
1June
21/05/2018TueMon22
33/05/2018ThuTue11
45/05/2018SatWed22
57/05/2018MonThu11
69/05/2018WedFri11
711/05/2018FriSat22
813/05/2018SunSun11
915/05/2018Tue
1017/05/2018Thu
1119/05/2018Sat
1221/05/2018Mon
1323/05/2018Wed
1425/05/2018Fri
1527/05/2018Sun
1629/05/2018Tue
1731/05/2018Thu
182/06/2018Sat
194/06/2018Mon
206/06/2018Wed
218/06/2018Fri
2210/06/2018Sun
2312/06/2018Tue
2414/06/2018Thu
2516/06/2018Sat
2618/06/2018Mon
2720/06/2018Wed
Dates
 
Upvote 0

Forum statistics

Threads
1,214,851
Messages
6,121,931
Members
449,056
Latest member
denissimo

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