+ Reply to Thread
Results 1 to 4 of 4

calculate the month using Last working day of the year

  1. #1
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    95

    calculate the month using Last working day of the year

    Hi All,
    Good Day..
    I have a scenario where i have to update month using last working day of the year.

    Date Result
    Example 12/31/2024 Mar 25
    12/30/2024 Feb 25
    3/1/2025 Mar 25

    i used the function =IF(WORKDAY(DATE(YEAR(NOW()),1,1),1)=A1,MONTH(A1+3),MONTH(A1+2)) seems it is wrong

    i have attached the file for reference.

    Thank you
    Attached Files Attached Files
    Last edited by Merrysa; 07-01-2024 at 12:50 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: calculate the month using Last working day of the year

    You could use this formula:

    =TEXT(EOMONTH($A$1,IF(AND(MONTH($A$1)=12,DAY($A$1)=31),3,2)),"mmm yy")

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,475

    Re: calculate the month using Last working day of the year

    .
    If @Pete_UK is correct in interpreting what the OP wants, this shorter formula should also work...

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I would also note that it returns a real date (well, date serial number which can be Custom Formatted to display as desired) as opposed to a text date.
    Last edited by Rick Rothstein; 07-01-2024 at 07:39 PM.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: calculate the month using Last working day of the year

    Just for fun:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-15-2022, 09:38 AM
  2. [SOLVED] Formula to calculate working days and calendar days per month-year ?
    By donny007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2018, 06:23 PM
  3. [SOLVED] Formula to calculate no. Of working days for the year 2018
    By gko_87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2017, 06:00 AM
  4. Calculate number of working days between 2 dates in a year
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2016, 09:32 AM
  5. [SOLVED] How to calculate employee working days in a year
    By nsholi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2014, 01:20 AM
  6. Replies: 3
    Last Post: 03-12-2009, 09:54 AM
  7. formula - calculate the yearly cost each year of the 10 year contract
    By Ineedxhelp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2008, 11:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1