Function Problems

How to Find the Last Wednesday of a Month Using Excel Formulas

Adam DavisAdam Davis Nov 10, 2026 869 views

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.

How to Find the Last Wednesday of a Month Using Excel Formulas
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.
Before you start

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.

Solution 1Recommended

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.

1
Prepare your reference date

Enter any valid date within your target month into cell A1. For example, enter '9/15/2026'.

2
Enter the formula

Select the empty cell where you want the result to appear, and enter the formula: =EOMONTH(A1,0)-WEEKDAY(EOMONTH(A1,0)-3,1)

3
Format as a Date

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 EOMONTH and WEEKDAY Functions
Formula Breakdown: The 'EOMONTH(A1,0)' part finds the last day of the current month. Subtracting the WEEKDAY calculation adjusts this end-of-month date backwards until it lands squarely on a Wednesday.
Free Microsoft Office alternative

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. 1. Download and Install: Download WPS Office for free from the official website and launch WPS Spreadsheet.
  2. 2. Open your workbook: Open your existing .xlsx file that contains your dates and scheduling data.
  3. 3. Apply date functions: Enter the EOMONTH or LET formulas directly into any cell; WPS Spreadsheet processes them exactly like Microsoft Excel.
  4. 4. Format cell output: Right-click your result and select 'Format Cells' to easily display your calculated serial numbers as proper dates.
Fully compatible with Microsoft Excel (.xlsx) formulas and file formats.Seamlessly supports advanced date calculations like EOMONTH, WEEKDAY, and dynamic arrays.Free, lightweight, and fast to process complex schedules.Familiar user interface ensuring zero learning curve for Excel users.
microsoft office alternative - wps office

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.