logo
search
Function Problems

How to Add 30 Workdays and Find the Next Payout Date in Excel

Kushani NimanthikaKushani Nimanthika Sep 29, 2026 869 views

Question details

The user needs to calculate an eligibility date by adding 30 working days to a hire date, and then automatically find the exact or next scheduled payout date from a predefined list.

How to Calculate the Next Payout Date After 30 Workdays in Excel
Product
Excel and WPS Spreadsheet
Device & OS
not provided
Scenario
Calculating employee benefits eligibility or determining HR payroll schedules based on working days.
Observed behavior
Requires a formula combination that correctly skips weekends (and holidays) to find the 30th workday, then references an ascending list of payroll dates to return the next valid payout schedule.
Before you start

Ensure your list of scheduled payout dates is sorted in ascending order (from earliest to latest). If you need to exclude holidays from the 30-day calculation, prepare a separate column listing your company's recognized holiday dates.

Solution 1Recommended

Use a Nested WORKDAY and XLOOKUP Formula

Combine the WORKDAY function to find the 30th working day and the XLOOKUP function to match that date against your payout schedule.

The WORKDAY function calculates a future date by adding a specified number of working days, automatically skipping weekends. By wrapping this in XLOOKUP with a match mode of 1, the formula searches for that exact date in your payout schedule, or defaults to the next larger date if an exact match isn't found.

1
Set up your data ranges

Place your employee hire dates in column A (e.g., A2), and your sorted list of scheduled payout dates in column F (e.g., F2:F13).

2
Enter the base formula

Click on the target cell where you want the payout date to appear. Type the formula: =XLOOKUP(WORKDAY(A2,30),$F$2:$F$13,$F$2:$F$13,"Not Found",1) and press Enter.

3
Add custom holidays (Optional)

If you have a list of holidays in cells H2:H20, update your formula to include this range: =XLOOKUP(WORKDAY(A2,30,$H$2:$H$20),$F$2:$F$13,$F$2:$F$13,"Not Found",1).

4
Apply to multiple rows

Select the cell with the completed formula, click the small square at the bottom-right corner of the cell (fill handle), and drag it down to apply the calculation to the rest of your employee list.

Use a Nested WORKDAY and XLOOKUP Formula
Match Mode Requirement: The '1' at the end of the XLOOKUP formula is crucial. It instructs the function to return the next larger item (the upcoming payout date) if the exact 30th workday does not fall on a scheduled payout date.

Effortlessly Manage Payroll Schedules with WPS Spreadsheet

WPS Spreadsheet fully supports advanced array functions like XLOOKUP and WORKDAY. You can seamlessly calculate HR eligibility periods and payroll schedules without worrying about formula compatibility errors.

  1. 1. Open your payroll workbook: Launch WPS Office and open your HR employee roster or payroll spreadsheet.
  2. 2. Input the lookup formula: Select your target cell and type the =XLOOKUP(WORKDAY(...)) formula exactly as you would in standard spreadsheet software.
  3. 3. Format the output as a Date: If the result appears as a 5-digit number, right-click the cell, select 'Format Cells', choose the 'Date' category, and pick your preferred date style.
100% format and formula compatibility with Microsoft Excel.Supports modern functions like XLOOKUP, WORKDAY, and WORKDAY.INTL out of the box.Free, lightweight, and features a familiar tabbed interface for seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my WORKDAY formula return a random 5-digit number instead of a date?

Spreadsheet applications store dates as sequential serial numbers. If you see a number like '45210', simply right-click the cell, select 'Format Cells', and change the number format category from 'General' to 'Date'.

Can I calculate 30 workdays if my company's weekend is not Saturday and Sunday?

Yes. You can use the WORKDAY.INTL function instead of WORKDAY. It allows you to specify custom weekend parameters (for example, choosing Friday and Saturday as the weekend) while calculating your 30-day period.

What happens if my list of scheduled payout dates is not sorted?

When using XLOOKUP with a match mode of 1 (exact match or next larger item), an unsorted list may lead to incorrect results or errors. Always ensure your reference list of payout dates is sorted from earliest to latest.

Is XLOOKUP available in all versions of spreadsheet software?

XLOOKUP is available in newer versions of Excel (Office 365, Excel 2021) and is fully supported in WPS Office. If you are using an older spreadsheet version, you may need to use a combination of INDEX, MATCH, and COUNTIF instead.