Identifying the last Friday of the Month

JayB0730

Board Regular
Joined
Oct 22, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a formula where I want to look up whether Today() is >= the 15th of the month AND less than the last Friday of the current month. I've been at it for hours and using May as an example where Today = May 30th, the formula I've been using keeps coming up as true. And that is not the case since the last Friday of the month is May 26th.

Any help is greatly appreciated!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try this

=AND(DAY(TODAY())>=15,TODAY()<WORKDAY.INTL( EOMONTH(TODAY(),0)+1,-1,"1111011"))
 
Upvote 0
Solution
Sometimes a quick walk away from the screen can help. I think I figured it out -- in case anyone is looking for the same thing:

=WORKDAY.INTL(EOMONTH(Today(),0)+1,-1, "1111011") results in 5/26/2023

  1. EOMONTH(Today(),0)+1 results in 6/1
  2. Adding WORKDAY.INTL(6/1, -1. "1111011") tells the system to go back to the first workday. "1111011," says to keep skipping weekend dates until you reach Friday which is not defined as a weekend by the "0". And "1111011" refers to Monday - Sunday.
    1. 6/1 - Starting point
    2. 5/31 - Wednesday (skip - "1')
    3. 5/30- Tuesday (skip - "1')
    4. 5/29 - Monday (skip - "1")
    5. 5/28 - Sunday (skip - "1")
    6. 5/27 - Saturday (skip) - "1")
    7. 5/26 - Friday (STOP - "0")
 
Upvote 0
That's too funny. I just figured it out and it matches yours. Thank you so much for confirming!
 
Upvote 0

Forum statistics

Threads
1,216,124
Messages
6,128,997
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top