+ Reply to Thread
Results 1 to 11 of 11

Help with dates

  1. #1
    Registered User
    Join Date
    05-21-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010, 2016
    Posts
    35

    Help with dates

    I am trying to get a date to line up. First cell I input a date- Cell A1: 11/19/2015

    In another cell, I need it to go to the next Wednesday. Lets call this Cell A2 (If the above date is a Wednesday then it should go to the next Wednesday.)

    I did this: =WORKDAY(B23,4,0)

    But I misunderstood the formula. It only adds 4 working days to it. I thought it was a series. (1=Sunday, 2=Monday, etc.)

    Anyone got any ideas?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Help with dates

    Try entering in A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS

    If you are not aware of it dates are numbers that Excel can format as dates for human eyes. Starting with day 1 (1/1/1900) each day is an increment of 1. Today is 12/3/2015. What Excel sees is 42341. This makes it convenient for calculating dates like yours.
    Last edited by FlameRetired; 12-03-2015 at 10:01 PM.
    Dave

  3. #3
    Registered User
    Join Date
    05-21-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010, 2016
    Posts
    35

    Re: Help with dates

    Yes but the date needs to go to the next Wednesday regardless of what date I put in there. Even if it is a Tuesday or Thursday. A2 needs to populate the calculated date as a Wednesday. This is for tracking inspection due dates. Updates on inspection corrections are due on Wednesday. Regardless of what day the inspection happens. Insepections are always during the week and never during the weekend.
    Last edited by DarthBrute; 12-03-2015 at 10:00 PM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Help with dates

    So if A1 is a Tuesday you need it to return the following day or the Wednesday of the following week?
    Last edited by FlameRetired; 12-03-2015 at 10:15 PM.

  5. #5
    Registered User
    Join Date
    05-21-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010, 2016
    Posts
    35

    Re: Help with dates

    Yes. I was going to do an IF statement but I couldn't really find anything on specifying certain days of the week.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,024

    Re: Help with dates

    =if(weekday(a1)=1,a1+10,if(weekday(a1)=2,a1+9,if(weekday(a1)=3,a1+8,if(weekday(a1)=4,a1+7,if(weekday(a1)=5,a1+6,if(weekday(a1)=6,a1+5,a1+4))))))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Help with dates

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 12-03-2015 at 10:31 PM. Reason: formula edit

  8. #8
    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,959

    Re: Help with dates

    your data is in A1, put this where you want the answer to be...
    =A1+(7-(WEEKDAY(A1,2)-3))
    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

  9. #9
    Registered User
    Join Date
    05-21-2014
    Location
    Phoenix, AZ
    MS-Off Ver
    2010, 2016
    Posts
    35

    Re: Help with dates

    All 3 worked beautifully. Thank you very much for the help!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Help with dates

    You are welcome. Thank you for the feedback.

  11. #11
    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,959

    Re: Help with dates

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to 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. Populating list of dates from another sheet with Start Dates and End Dates
    By Jesshloly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 04:07 AM
  2. Select Multiple Dates In Report Filter Pivot Table But Dates Are Not Static
    By biasedobserver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2014, 03:38 PM
  3. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  4. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  5. [SOLVED] Array of dates when tested shows no dates ......but there are dates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2012, 12:45 PM
  6. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  7. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 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