+ Reply to Thread
Results 1 to 4 of 4

Populate cell with 15th of following month, or next week day

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Populate cell with 15th of following month, or next week day

    I'm trying to populate a cell with a date (15th day of the following month), but if that day is a Saturday or Sunday, I want it to return the next business day instead. I want the dates to remain static. I currently am able to get the cell to populate with the 15th of the following month by referencing another cell, but I don't know how to incorporate the weekend issue. Here is what I'm using to populate the 15th of the following month:

    A1 = 5/1/14

    Formula in B1: =DATE(YEAR(A1),MONTH(A1)+1,15)
    Returns: 6/15/14

    Problem: 6/15/14 is a Sunday, so I want the cell to return 6/16/14 (Monday), which is the next business day.

    Any help would be appreciated.
    Thanks!
    Vanessa

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Populate cell with 15th of following month, or next week day

    Try this

    =WORKDAY(DATE(YEAR(A1)-1,MONTH(A1)+1,15)-1,1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Populate cell with 15th of following month, or next week day

    try:
    =WORKDAY(DATE(YEAR(A1),MONTH(A1)+1,14),1)
    it will take 14th and find next working day so if 15 is sat or sun - just next monday.

    moreover - you could use optional third parameter to this function to exclude not only weekends but also bank holidays.
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    04-29-2014
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Populate cell with 15th of following month, or next week day

    That worked...thank you!!!

+ 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. [SOLVED] Populate 15th of month or next business day
    By tntmm6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 02:48 PM
  2. Replies: 5
    Last Post: 07-09-2011, 03:51 AM
  3. Need to add income only between 1st and 15th of each month
    By RickyP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2008, 02:29 PM
  4. Formatting for 15th and last day of the month
    By Emilio Guerra in forum Excel General
    Replies: 1
    Last Post: 12-01-2005, 11:20 AM

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