ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting weekend shifts in a sheet (https://www.excelbanter.com/excel-discussion-misc-queries/174866-counting-weekend-shifts-sheet.html)

John in Wembley

Counting weekend shifts in a sheet
 


Hi team

I have a roster (they call it a rota here in the UK)

Row A: days along the top, monday to sunday for 28 days.

Row B,C,D staff members & their shifts along each row

How can I count at the end of each row how many saturday/sunday shifts
the staff member has done?
Is Dcounta the way to go?




Pete_UK

Counting weekend shifts in a sheet
 
Do you have something like "Y" to indicate a member of staff allocated
to a particular shift?

If so, try something like this:

=SUMPRODUCT((B2:AC2="Y")*(WEEKDAY(B$1:AC$1,2)5))

You seem to be a bit confused about rows and columns, but I think this
is what you have - I've assumed a name in column A, and dates in row
1. Copy the formula down for as many staff as you have.

Hope this helps.

Pete

On Jan 29, 7:59*pm, John in Wembley wrote:
Hi team

I have a roster (they call it a rota here in the UK)

Row *A: days along the top, monday to sunday for 28 days.

Row *B,C,D staff members & their shifts along each row

How can I count at the end of each row how many saturday/sunday shifts
the staff member has done?
Is Dcounta the way to go?




All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com