+ Reply to Thread
Results 1 to 5 of 5

Add Days to Wednesdays and Saturdays

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Add Days to Wednesdays and Saturdays

    Hi

    I am trying to create a formula that adds three days if a date is a Wednesday and four days if it is a Saturday.

    Examples:
    Input 3/7/2019
    Output 6/7/2019
    Because the 3/07/2019 is a Wednesday the formula will add 3 days and the answer would be the 6/7/2019

    Input 6/7/2019
    Output 10/7/2019
    Because the 6/07/2019 is a Saturday the formula will add 4 days and the answer would be the 10/7/2019

    Could someone please help me?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Add Days to Wednesdays and Saturdays

    Try this...
    IF(WEEKDAY(N7,2)=3,3,IF(WEEKDAY(N7,2)=6,4))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Add Days to Wednesdays and Saturdays

    Hi Ford

    Thanks for your response.

    I've had a go but can't get the formula to work correctly.

    I've attached a simple example so that you can see what the problem is.

    Regards,

    Alan
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Add Days to Wednesdays and Saturdays

    A
    B
    C
    1
    Mon 01 Jul 2019
    Mon 01 Jul 2019
    B1: =A1 + IF(WEEKDAY(A1) = 4, 3, IF(WEEKDAY(A1) = 7, 4))
    2
    Tue 02 Jul 2019
    Tue 02 Jul 2019
    3
    Wed 03 Jul 2019
    Sat 06 Jul 2019
    4
    Thu 04 Jul 2019
    Thu 04 Jul 2019
    5
    Fri 05 Jul 2019
    Fri 05 Jul 2019
    6
    Sat 06 Jul 2019
    Wed 10 Jul 2019
    7
    Sun 07 Jul 2019
    Sun 07 Jul 2019
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    08-18-2013
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    65

    Re: Add Days to Wednesdays and Saturdays

    Hi shg

    Thanks very much that worked well .

    All the best,

    AlanL

+ 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. How many Wednesdays between 2 days
    By stavros21 in forum Excel General
    Replies: 6
    Last Post: 03-12-2015, 09:31 AM
  2. Replies: 1
    Last Post: 12-12-2014, 05:43 PM
  3. Replies: 1
    Last Post: 08-22-2012, 10:38 AM
  4. Days of the week (to exclude Saturdays/Sundays)
    By btk125 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2012, 10:08 AM
  5. [SOLVED] Calculating Business Days by excluding Saturdays/Sundays and other Public Holidays
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2008, 10:15 PM
  6. counting days excluding saturdays and sundays
    By p_dhoke in forum Excel General
    Replies: 2
    Last Post: 04-24-2007, 04:34 AM
  7. [SOLVED] 2nd and 4th Wednesdays formula?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 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