If statement or vba code requirement

Gealer

New Member
Joined
Sep 19, 2018
Messages
19
I run a report giving me the shift patterns of colleagues.

I need to break down what shift pattern they are on so forexample we have the following. So in the 1st columns I have in A 1and then in B & C I have those starting 1 then 2 in B and in C will bethose starting on 2 then 1 and then the 3 more for those on rotation 3.


Rotation 1 – standard Mon – Fri (
Rotation 2 – those who start their shift pattern this weekand those who started last week.
Rotation 3 ect.


So my requirement is that I need to put an identifier nextto the colleague to determine the column they will allocated to.
Rotations
Shift Date
Shift Day
Shift Start
Shift End
Shift Hours
Shift Pattern ID
1
26/11/2018
Monday
09:00
17:00
7
1
1
26/11/2018
Monday
09:00
17:00
7
1
1
26/11/2018
Monday
09:00
17:00
7
1
3
26/11/2018
Monday
09:00
17:30
7.5
4
2
19/11/2018
Monday
08:00
16:30
8
3
2
26/11/2018
Monday
09:00
17:30
8
2
1
27/11/2018
Tuesday
07:45
17:15
9
1
2
19/11/2018
Monday
07:00
16:00
8
3
2
19/11/2018
Monday
08:30
17:00
7.75
3
2
26/11/2018
Monday
08:15
16:30
7.75
2
3
12/11/2018
Monday
08:00
16:30
7.5
6
3
13/11/2018
Tuesday
09:00
17:30
7.5
6
3
19/11/2018
Monday
09:00
11:00
2
5
<tbody> </tbody>

Not sue what the best option would be formula or VBA?

 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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