How to Find the Last Wednesday of a Month Using Excel Formulas
Question details
The user needs an Excel formula to accurately calculate the date of the last Wednesday in a specific month, ensuring that the Thursday immediately following it remains within the same month.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating specific recurring weekdays near the end of a month for scheduling, payroll processing, or monthly reporting purposes.
- Observed behavior
- The goal is to input a reference date or specific year and month, and have Excel automatically output the correct date for that month's final Wednesday.
Ensure that your reference date cells are properly formatted as dates in Excel, and that you have a clear target cell selected to receive the calculated result.
Use EOMONTH and WEEKDAY Functions
This is the most straightforward method to find the last Wednesday of a month based on an existing date in your worksheet.
The EOMONTH function determines the last day of the target month. By combining it with the WEEKDAY function, you can dynamically calculate the exact number of days to step back to find the correct Wednesday.
Enter any valid date within your target month into cell A1. For example, enter '9/15/2026'.
Select the empty cell where you want the result to appear, and enter the formula: =EOMONTH(A1,0)-WEEKDAY(EOMONTH(A1,0)-3,1)
Press Enter to apply the formula. If the result appears as a 5-digit number (like 46300), right-click the cell, select 'Format Cells', choose 'Date' under the Number tab, and click OK.

Use the LET Function for Dynamic Year and Month Variables
Ideal for scenarios where you supply the specific year and month as separate standalone numbers rather than a full date.
Calculate Complex Dates Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced Excel functions like EOMONTH, WEEKDAY, and LET. You can seamlessly calculate specific dates, manage schedules, and open your existing Excel workbooks without losing any formatting or formula compatibility.
- 1. Download and Install: Download WPS Office for free from the official website and launch WPS Spreadsheet.
- 2. Open your workbook: Open your existing .xlsx file that contains your dates and scheduling data.
- 3. Apply date functions: Enter the EOMONTH or LET formulas directly into any cell; WPS Spreadsheet processes them exactly like Microsoft Excel.
- 4. Format cell output: Right-click your result and select 'Format Cells' to easily display your calculated serial numbers as proper dates.

Frequently Asked Questions
Why does my formula result in a 5-digit number instead of a date?
Spreadsheet software stores dates as sequential serial numbers for calculation purposes. To display it correctly, right-click the cell, select 'Format Cells', navigate to the 'Number' tab, and select a 'Date' format.
How can I modify this formula to find the last Thursday of a month instead?
You can adjust the WEEKDAY offset within the formula. To find the last Thursday, change the formula to =EOMONTH(A1,0)-WEEKDAY(EOMONTH(A1,0)-4,1).
Do EOMONTH and WEEKDAY formulas work in WPS Spreadsheet?
Yes, WPS Spreadsheet offers full compatibility with standard Excel date functions, including EOMONTH, DATE, and WEEKDAY, allowing you to copy and paste these exact same formulas without errors.




