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 do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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