Biweekly pay periods between two dates (hire date and termination date)

marshak

Board Regular
Joined
May 28, 2007
Messages
65
Hi, How can I find the number of biweekly pay periods between two dates?

Thanks so much in advance!

EDITED Headcount Report March 2018 - Feb 2022 (Present).xlsx
EFHK
1Start DateJob TitleExempt Y/NTermination Date
202/22/18N10/10/19
301/16/12SR. ACCOUNTING CLERKN03/25/22
403/25/13MQS-INSPECTORN02/28/18
502/16/10PRODUCTION SUPERVISORN03/25/22
612/01/14MATERIAL HANDLERN03/25/22
709/16/19N02/26/20
807/20/15N05/03/19
909/27/10N05/28/20
1012/10/01N02/22/19
1104/09/19N01/20/21
1203/09/20TECHNICIANN06/30/22
1309/15/97ASSEMBLERN02/18/22
1408/20/19N09/17/20
1511/26/18INSPECTOR LEVEL 3N02/18/22
1604/17/17TECHNICIANN03/25/22
1707/22/20N09/15/21
1811/18/19ASSEMBLERN03/25/22
1909/30/19N08/03/20
2001/04/99INSPECTORN03/25/22
1_Current Head Count
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Power Query solution. You can round up or down in Excel as you did not provide an expected result, I did not know which way to go.

Book1
ABCDE
1Start DateJob TitleExempt Y/NTermination DateTotal Bi-Weeks
22/22/2018N10/10/201942.5
31/16/2012SR. ACCOUNTING CLERKN3/25/2022265.7857143
43/25/2013MQS-INSPECTORN2/28/2018128.6428571
52/16/2010PRODUCTION SUPERVISORN3/25/2022315.7142857
612/1/2014MATERIAL HANDLERN3/25/2022190.7857143
79/16/2019N2/26/202011.64285714
87/20/2015N5/3/201998.78571429
99/27/2010N5/28/2020252.2142857
1012/10/2001N2/22/2019448.7857143
114/9/2019N1/20/202146.57142857
123/9/2020TECHNICIANN6/30/202260.21428571
139/15/1997ASSEMBLERN2/18/2022637.2857143
148/20/2019N9/17/202028.14285714
1511/26/2018INSPECTOR LEVEL 3N2/18/202284.28571429
164/17/2017TECHNICIANN3/25/2022128.7857143
177/22/2020N9/15/202130
1811/18/2019ASSEMBLERN3/25/202261.28571429
199/30/2019N8/3/202022
201/4/1999INSPECTORN3/25/2022605.7857143
Sheet1

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Start Date", type date}, {"Termination Date", type date}}),
    #"Inserted Date Subtraction" = Table.AddColumn(#"Changed Type", "Subtraction", each Duration.Days([Termination Date] - [Start Date]), Int64.Type),
    #"Added Custom" = Table.AddColumn(#"Inserted Date Subtraction", "Total Bi-Weeks", each [Subtraction]/14),
    #"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Total Bi-Weeks"})
in
    #"Removed Other Columns"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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