Count days at work that were fridays

Dazzybeeguy

Board Regular
Joined
Jan 6, 2022
Messages
118
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Column A1:A24 is a list of dates
Column B is a list of names
Column D is a list of names

Q: what is the best way to count how may times a particular person worked on a Friday.

So assume column D has the filtered Unique list of name say D1:D10 and Bob Jones is in column D1

I want to put a formula in say cell E1 that says look at column A and every time Bob Jones is in column B and the date falls on a Friday, give me a total.

Mon/18/11/2024Bob JonesBob Jones????
Mon/18/11/2024Arthur AskeyArthur Askey
Mon/18/11/2024George LucasGeorge Lucas
Tue/19/11/2024Brad PittBrad Pitt
Tue/19/11/2024Bob JonesDonal Duck
Tue/19/11/2024Donal DuckMartha Jackson
Wed/20/11/2024Martha JacksonMike Hunt
Wed/20/11/2024Martha JacksonTod the Bod
Wed/20/11/2024Bob JonesLisa Lee
Thu/21/11/2024Arthur AskeyIan Jones
Thu/21/11/2024George Lucas
Thu/21/11/2024Brad Pitt
Fri/22/11/2024Mike Hunt
Fri/22/11/2024Tod the Bod
Fri/22/11/2024Lisa Lee
Sat/23/11/2024Lisa Lee
Sun/24/11/2024Bob Jones
Mon/25/11/2024Ian Jones
Mon/25/11/2024George Lucas
Mon/25/11/2024Brad Pitt
Tue/26/11/2024Bob Jones
Tue/26/11/2024Donal Duck
Tue/26/11/2024Martha Jackson
Wed/27/11/2024Bob Jones
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
If Column A is just text, then I think this will work:
Excel Formula:
=SUM(--($B$1:$B$24=D1)*(LEFT($A$1:$A$24,3)="Fri"))
 
Upvote 0
If the date column includes dates not text, try one of the following depending on which version of Excel you are using.

Dates and Time 2024.xlsm
ABCDEF
1Excel V3652010
2Mon 18-11-24Bob JonesBob Jones11
3Mon 18-11-24Arthur AskeyArthur Askey00
4Mon 18-11-24George LucasGeorge Lucas00
5Tue 19-11-24Brad PittBrad Pitt00
6Fri 15-11-24Bob JonesDonal Duck22
7Fri 22-11-24Donal DuckMartha Jackson00
8Fri 22-11-24Donal DuckMike Hunt00
5c
Cell Formulas
RangeFormula
E2:E8E2=SUMPRODUCT(--($B$2:$B$8=D2),--(WEEKDAY($A$2:$A$8,1)=6))
F2:F8F2=SUM(($B$2:$B$8=D2)*(WEEKDAY($A$2:$A$8,1)=6))
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

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