Callendar 4 days on shift and 4 days off shift

ForFun

New Member
Joined
Dec 5, 2016
Messages
6
Hi all,

I have encountered a difficult formula to finish my spread sheet. I would like to generate calendar with 4 days on shift for holidays that will be divided into 4 columns, and 4 days off that will not be displayed, but it will be compressed into one column.

I have 2 tabs. First is Holidays in which I have days on shift for Green shift and I would like that it will collect dates from second tab which is calendar with generated days for whole year.


530da41d67.png


Many Thanks for all help.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

ForFun

New Member
Joined
Dec 5, 2016
Messages
6
Sorry, but I can't edit above post.
I would like to add one more picture of how do I see collection of dates.
533b25dd4d.png
 
Upvote 0

CsJHUN

Active Member
Joined
Jan 13, 2015
Messages
360
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
hi!

try this:
In C6 (or your first cell) write the starting date, then:
(please adjust the formulas to your need)

<tbody></tbody>


Excel 2010 32 bit
CDEFGHIJKLMNOP
61-Jan2-Jan3-Jan4-Jan9-Jan10-Jan11-Jan12-Jan17-Jan18-Jan19-Jan20-Jan
Sheet1
Cell Formulas
RangeFormula
D6=C6+1
E6=D6+1
F6=E6+1
H6=C6+8
I6=H6+1
J6=I6+1
K6=J6+1
M6=H6+8
N6=M6+1
O6=N6+1
P6=O6+1



Please also notice the 1st-2nd & 3rd formula are different than 5-6-7-8 formula (4th is empty), you need to copy this segment with an extra empty cell (H6:L6) to left
 
Last edited:
Upvote 0

ForFun

New Member
Joined
Dec 5, 2016
Messages
6
hi!

try this:
In C6 (or your first cell) write the starting date, then:
(please adjust the formulas to your need)

Excel 2010 32 bit
CDEFGHIJKLMNOP
61-Jan2-Jan3-Jan4-Jan9-Jan10-Jan11-Jan12-Jan17-Jan18-Jan19-Jan20-Jan

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


Worksheet Formulas
CellFormula
D6=C6+1
E6=D6+1
F6=E6+1
H6=C6+8
I6=H6+1
J6=I6+1
K6=J6+1
M6=H6+8
N6=M6+1
O6=N6+1
P6=O6+1

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>




Please also notice the 1st-2nd & 3rd formula are different than 5-6-7-8 formula (4th is empty), you need to copy this segment with an extra empty cell (H6:L6) to left

Awesome!!!
Thank you a lot for this function :)))
 
Upvote 0

Forum statistics

Threads
1,190,898
Messages
5,983,456
Members
439,843
Latest member
PlanetFitness

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
Top