Identify Pattern in a grid

excel1404

New Member
Joined
Mar 27, 2013
Messages
19
Hello Gurus,

Hoping to get some solution to the issue below.
In the production facility that I am working on, we have thousands of these working shift patterns and it is just getting challenging to understand what are the working patterns.

See below: Pattern 1 is simple and visually possible to see & understand: it says every 10th day - a recurrence happens (OFF on monday is a seperate 10th recurrence, OFF on Tuesday is another recurrence (Therefore technically, different type).

Pattern 2: Recurrence seems not possible. Therefore, Every 4th week the 1st week pattern recurs. Kind of a loop.

Pattern 3: seems to be similar as pattern 2. May be some deviations.

My challenge is to identify these and also then list them in another column what is the pattern for each of these types. If I am able to get this, then perhaps, I want to list that based on date.

Working ShiftPattern Start dateWeekMondayTuesdayWednesdayThursdayFridaySaturdaySunday
Pattern 12018-01-011OFFOFFOFFOFFN8N8N8
Pattern 12018-01-082N8N8N8OFFOFFOFFOFF
Pattern 12018-01-153N8N8N8N8N8N8OFF
Pattern 12018-01-224OFFOFFOFFN8N8N8N8
Pattern 12018-01-295N8N8OFFOFFOFFOFFN8
Pattern 12018-02-056N8N8N8N8N8OFFOFF
Pattern 12018-02-127OFFOFFN8N8N8N8N8
Pattern 12018-02-198N8OFFOFFOFFOFFN8N8
Pattern 12018-02-269N8N8N8N8OFFOFFOFF
Pattern 12018-03-0510OFFN8N8N8N8N8N8
Pattern 22018-01-011N8N8N8OFFN8OFFOFF
Pattern 22018-01-082N8N8N8N8N8OFFOFF
Pattern 22018-01-153N8N8N8N8OFFOFFOFF
Pattern 22018-01-224N8N8N8N8N8OFFOFF
Pattern 32018-01-011AAAAARR
Pattern 32018-01-082MMMMMRR
Pattern 32018-01-153AAAAARR
Pattern 32018-01-224MMMMMRR
Pattern 32018-01-295RRRRRRR
Pattern 32018-02-056MMMMMRR
Pattern 32018-02-127AAAAARR
Pattern 32018-02-198MMMMMRR
Pattern 32018-02-269AAAAARR
Pattern 32018-03-0510RRRRRRR

<tbody>
</tbody>


Hope the expert Gurus can help here.

Thanks much.

Regards
excel1404
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If your sample Table is pasted to a workbook beginning at cell A1, an input cell for a Pattern is located at L1 and another input cell for the desired date, then the following array formula will pull the appropriate working pattern(?) from the field.

Code:
=INDEX($D$1:$J$25,MATCH(L1&(MOD(WEEKNUM(L2,2),10)),A1:A25&$C$1:$C$25,0),WEEKDAY(WEEKNUM(L2,2),2))
Use CTRL+SHIFT+ENTER to make as array formula.
 
Upvote 0
Thanks Spiller... It just went over the head on this friday evening here.... am not an advanced excel user... Perhaps, possible for you to indicate where I should put what in terms of an image? Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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