To calculate biweekly pay periods in Excel, use a formula that finds the number of days between your start date and a given date, divides by 14, and rounds down. For example, with a start date in A1 and a date in B1, =INT((B1-A1)/14)+1 returns the pay period number (1, 2, 3, ...). To get the start date of the period containing B1, use =A1+14*INT((B1-A1)/14). To get the end date, add 13 days to that start date. These formulas work because biweekly periods are exactly 14 days long, so integer division gives a clean period count.
What You'll Need
- Excel 2016 or later (desktop or web) or Microsoft 365. The formulas below use only standard functions available in all versions.
- A known anchor date: the first day of a pay period you can verify from a pay stub or HR calendar. This is critical because biweekly schedules are not universal; a wrong anchor shifts every result.
- Dates entered as real Excel dates (not text). If a date is left-aligned in the cell, Excel may be treating it as text and the formulas will fail.
Step-by-Step
- Set up your anchor date. In cell A1, type the first day of a known pay period, for example
1/5/2024. Format it as a date (Home > Number Format > Short Date). This is the reference point for every calculation. - Enter the date you want to evaluate. In B1, type the date you need the pay period for, such as a timesheet date or invoice date. Format it as a date too.
- Calculate the pay period number. In C1, enter
=INT((B1-A1)/14)+1. This returns 1 for dates in the first period, 2 for the second, and so on. TheINTfunction rounds down, so any date within the same 14-day window returns the same number. - Calculate the period start date. In D1, enter
=A1+14*INT((B1-A1)/14). This gives the first day of the biweekly period that contains B1. - Calculate the period end date. In E1, enter
=D1+13. Because a biweekly period spans 14 days inclusive, the end date is the start date plus 13 days. - Test with a second date. Change B1 to a date 15 days after A1. The period number should become 2, and the start date should be A1+14. This confirms the formula is working before you fill it down a column.
- Fill the formulas down. Select C1:E1, drag the fill handle down to cover your list of dates in column B. Each row now shows its period number, start date, and end date.
- Add a payday column if needed. If payday is, say, the Friday after the period ends, enter
=E1+5(or whatever offset matches your schedule) and format as a date. Verify against one real pay stub before relying on it. - Format the output. Apply Short Date to the date columns and General or Number to the period column. Optionally use conditional formatting to highlight the current period based on
=TODAY().
Common Mistakes
- Using the wrong anchor date. If A1 is not actually the first day of a pay period, every result shifts. Confirm with a pay stub or HR calendar before building the sheet.
- Dates stored as text. If
B1-A1returns a#VALUE!error, one or both cells are text. Re-enter them as dates or use Date > Text to Columns to convert. - Forgetting the +1 in the period number. Without it, the first period is numbered 0, which confuses most payroll reports.
- Adding 14 instead of 13 for the end date. A 14-day period that starts on the 1st ends on the 14th, not the 15th. Off-by-one errors here throw off payday calculations.
- Assuming all biweekly schedules share the same anchor. They do not. Two companies can both pay biweekly on different weeks; the anchor date is what makes the formula correct for your schedule.
Tips
- Put the anchor date in a single named cell (Formulas > Define Name, e.g.
AnchorDate) and reference it in every formula. Changing the anchor then updates the whole sheet. - Use
=TODAY()in place of B1 to see which period you are currently in. - To list every period start date in a column, enter the anchor in the first cell and
=previous+14below it, then fill down. - If your payroll uses a fiscal calendar or a different period length, the same INT pattern works: replace 14 with the number of days in the period.
- Keep a hidden helper column with the raw date subtraction if you need to audit results; it makes debugging far easier than tracing nested formulas.
Troubleshooting
- #VALUE! error: A date is stored as text. Select the cell, check alignment (text is left-aligned by default), and re-enter the date or convert it via Date > Text to Columns.
- Results are off by one period: Your anchor date is one day off, or it is the last day of a period rather than the first. Adjust A1 by one day and recheck.
- All rows show the same period number: The formula likely references a fixed cell (e.g.
$B$1) instead of the row-relative cell. Remove the dollar signs on the date reference. - Dates display as numbers like 45292: The cell format is General or Number. Apply Short Date from the Home tab.
- Formulas break after inserting rows: Named ranges and absolute references usually survive, but relative references can shift. Recheck the first and last rows after structural edits.
Frequently Asked Questions
How do I find the pay period number for today's date?
Use =INT((TODAY()-A1)/14)+1, where A1 holds your anchor date. The result updates automatically each time the workbook recalculates.
Can I calculate biweekly periods without an anchor date?
Not reliably. Biweekly schedules are offset by company, so you need at least one known period start date to align the formula. Guessing the anchor produces wrong paydays.
Why does my end date come out one day late?
You are probably adding 14 instead of 13. A 14-day period inclusive of both start and end dates ends on start+13.
Does this work for semimonthly pay instead of biweekly?
No. Semimonthly periods are calendar-based (typically the 1st and 16th), not fixed 14-day cycles, so they need different formulas using EOMONTH and DAY.
Can I use this formula in Google Sheets?
Yes. The same INT and date arithmetic works identically in Google Sheets, and cell references behave the same way.
How do I handle a pay period that crosses a year boundary?
Nothing special is required. Excel stores dates as serial numbers, so subtraction and division work across year boundaries without adjustment.