How to use WEEKDAYS function inside a COUNTIFS function

alavna

New Member
Joined
May 15, 2016
Messages
2
Hi all.
A simplified version for the purpose of this question looks like this:

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Day[/TD]
[TD]Red Room[/TD]
[TD]Blue Room[/TD]
[/TR]
[TR]
[TD]01.06.2016
[/TD]
[TD]Wednesday[/TD]
[TD]John
[/TD]
[TD]Michael[/TD]
[/TR]
[TR]
[TD]02.06.2016[/TD]
[TD]Thursday[/TD]
[TD]John[/TD]
[TD]Robert[/TD]
[/TR]
[TR]
[TD]03.06.2016[/TD]
[TD]Friday[/TD]
[TD]William[/TD]
[TD]David[/TD]
[/TR]
[TR]
[TD]04.06.2016[/TD]
[TD]Saturday[/TD]
[TD]Richard[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]05.06.2016[/TD]
[TD]Sunday[/TD]
[TD]Michael[/TD]
[TD]Robert[/TD]
[/TR]
</tbody>[/TABLE]










I want to count how many times John was in the red room and it was a sunday.
I played with COUNTIFS and checked the documentation but i am still doing it wrong.
Without the weekday condition it would be easy with countif(the range; the name)

Any suggstions?

thank you
 
If you have the DAY already listed as a Text string in column B, try

=COUNTIFS(B:B,"Sunday",C:C,"John")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,839
Messages
6,193,265
Members
453,786
Latest member
ALMALV

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