Payroll overlapping Dates

CaptArt

New Member
Joined
Dec 2, 2022
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I am a ship captain. Our crew works 28 days on, 28 days off. Payroll is every 14 days starting with the first Monday of the year. Our rotations are in the middle of the week mostly, and therefore in the middle of a pay period. I manually entered the "Days Pay". I have a formula to calculate the first monday of the year. The crew can enter their first rotation. I just need to be able to saw the "Days pay" accurately and dynamically.

Pay DatesDays PayGross Pay
1/5/202414$0
1/19/20243.5$0
2/2/20240$0
2/16/202410.5$0
3/1/202414$0
3/15/20243.5$0
3/29/20240$0
4/12/202410.5$0
4/26/202414$0
5/10/20243.5$0
5/24/20240$0
6/7/202410.5$0
6/21/202414$0
7/5/20243.5$0
7/19/20240$0
8/2/202410.5$0
8/16/202414$0
8/30/20243.5$0
9/13/20240$0
9/27/202410.5$0
10/11/202414$0
10/25/20243.5$0
11/8/20240$0
11/22/202410.5$0
12/6/202414$0
12/20/20243.5$0
1/3/20250$0
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Pls check this

Difference between shift change date and start of every fortnight taken
Modulus of that v 56 (28+28= the on+off cycle) calculated
vlookup against the number of days which should be there in each week would give the result

Cell Formulas
RangeFormula
C2:C9C2=MOD(A2-$K$2,56)
D2:D9D2=VLOOKUP(C2,$G$2:$H$8,2,1)
E2:E9E2=A2-$K$2
B2:B5B2=TEXT(A2,"ddd")
K3:K7K3=K2+28
A3:A9A3=A2+14
 
Upvote 1
Solution

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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