+ Reply to Thread
Results 1 to 8 of 8

Formula for Last 30 Days Excluding Saturday, but including Sunday

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    96

    Formula for Last 30 Days Excluding Saturday, but including Sunday

    I need to get the last 30 days including Sunday, but not including Saturdays. My current code is only counting workdays, and I cannot figure out how to include Sundays without including Saturdays.

    A1:
    Please Login or Register  to view this content.
    A2:
    Please Login or Register  to view this content.
    A3:
    Please Login or Register  to view this content.
    ETC, ETC, onto Cell A30

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    Try

    =WORKDAY.INTL(A1,-30,17)

  3. #3
    Registered User
    Join Date
    04-30-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    Does this go into Cell A1? If so, what would go into A2?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    The formula goes where ever you want it. Where you want the resulting Date.
    A1 is the date your looking to subtract 30 from.

  5. #5
    Registered User
    Join Date
    04-30-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    Please see attachment. I am not able to get a list of the last 30 days, excluding Sundays to display.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    OK, I didn't understand that you were looking for the LIST..
    I thought you just wanted to calculate what date was 30 days ago..

    In A1, put
    =TODAY()

    then in A2 and filled down to A30 put
    =WORKDAY.INTL(A1,-1,17)

  7. #7
    Registered User
    Join Date
    04-30-2013
    Location
    Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    Thanks this works.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Last 30 Days Excluding Saturday, but including Sunday

    Glad to help..

    Just an FYI, the WORKDAY.INTL function is only available in XL2010+
    If you share the book with others that don't have this version, then you'll need another method.

    This method might even be better anyway

    A1: =TODAY()
    A2: =IF(WEEKDAY(A1)=1,A1-2,A1-1)
    Fill down to A30

+ 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