Skip to main content

Excel Formula: Find Last Weekday of Month

Author: Sun Last Modified: 2021-10-29

doc convert date to julia 1

This tutorial provides a formula to find the last specific weekday of the current month based on the given date in Excel.

If you want to follow along with this tutorial, please download the example spreadsheet.
doc convert date to julia 1

Generic formula:

EOMONTH(date,0)+1-WEEKDAY(EOMONTH(date,0)+1-weekday_num))

Syntaxt and Arguments

Date: the date that you want to find its last specific weekday of the month.
Weekday_num: the number 1-7 to indicate the specific weekday that you want to find.

Weekday Number

Weekday Number   Weekday
 1  Sunday
 2  Monday
 3  Tuesday
 4  Wednesday
 5  Thursday
 6  Friday
 7  Saturday


Return Value

The formula returns to a numeric value, for directly viewing the date, please format the result as date format.

Error

If the argument date is not a valid date (a text value or a date before 1/1/1900), the formula returns to the error value #VALUE!.

How this formula works

In cell B3 is the date that you use, and in cell C3 contains the weekday number that you want to find of the month, please use below formula in cell D3:

=EOMONTH(B3,0)+1-WEEKDAY(EOMONTH(B3,0)+1-C3)

Press Enter key, then drag auto fill handle down to the cells needed.
doc convert date to julia 1
doc convert date to julia 1

Then click Home tab to go to the Number group, click the arrow of Number Format, then choose Short Date or Long Date from the drop-down list. Then the results have been formatted as date.
doc convert date to julia 1

Explanation

EOMONTH function: to find the last day of the month.

WEEKDAY function: to get the day of week as number 1-7.

=EOMONTH(B3,0)+1-WEEKDAY(EOMONTH(B3,0)+1-C3)
=EOMONTH(B3,0)+1-WEEKDAY(1/31/2021+1-1)
=EOMONTH(B3,0)+1-WEEKDAY(1/31/2021)
=2/1/2021-1
=1/31/2021


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations