+ Reply to Thread
Results 1 to 3 of 3

Calculating a Rolling Date

Hybrid View

  1. #1
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Try

    =IF(MONTH(A16)<>MONTH(WORKDAY(A16,1)),WORKDAY(DATE(YEAR(A16)-1,MONTH(A16)+1,0),-1),WORKDAY(DATE(YEAR(A16)-1,MONTH(A16),DAY(A16)),-1))

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    Try this formula, where your original date is in A1

    =WORKDAY(IF(MONTH(A1)<>MONTH(WORKDAY(A1,1)),EOMONTH(A1,-12),EDATE(A1,-12))+1,-1)

    Note: this uses Analysis ToolPak functions WORKDAY, EOMONTH and EDATE so you need the toolpak installed. If formula gives an error try installing with

    Tools> add-ins > tick "Analysis ToolPak"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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