Help with Formula to Count if an Employee will be on a 6 day straight sched or 7 days Straight Sched

dlealb

New Member
Joined
Apr 9, 2015
Messages
14
Hi All,

Would an expert on this Please.


On Cell P3 i wanted to display a text like this "6 Days" or "7 Days" else "5 Days"

I have a schedule that looks Like this: (The name of the employee would be on Cell B2)

Cell H2 would be Sunday (This would be the Current Week)

SUNMONTUEWEDTHUFRISAT
09:00-18:0009:00-18:0009:00-18:0009:00-18:00OFFOFF09:00-18:00
09:00-18:0009:00-18:0009:00-18:0009:00-18:00OFFOFF09:00-18:00
08:00-17:0008:00-17:0008:00-17:0008:00-17:00OFFOFF08:00-17:00

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


In the table below SUN would be Cell AH2 so on and so forth (This would be employees previous week schedule)
SUNMONTUEWEDTHUFRISAT
11:00-20:0011:00-20:0011:00-20:0011:00-20:00OFFOFF11:00-20:00
11:00-20:0011:00-20:0011:00-20:0011:00-20:00OFFOFF11:00-20:00
10:00-19:0010:00-19:0010:00-19:0010:00-19:00OFFOFF10:00-19:00

<colgroup><col span="6"><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
On Cell P3 i wanted to display a text like this "6 Days" or "7 Days" else "5 Days"

But the employee is only working 4 days straight this week. Sun Mon Tue Wed with Thu Fri OFF.

"Count if an Employee will be on a 6 day straight sched or 7 days Straight Sched"
Is this irrespective of when the week starts?

"In the table below SUN would be Cell AH2 so on and so forth"
AH2 ??? Is this a typo?
So the current week is in column H but the previous week is all the way across in column AH ??? 26 columns to the right?
Whats in the remaing columns from O-AG ?

Use this and post some data so we can see the layout properly

Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
You cant attach files on this forum. There are tools on this forum for adding small spreadsheet images

https://www.mrexcel.com/forum/about-board/508133-attachments.html
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,985
Members
448,935
Latest member
ijat

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