+ Reply to Thread
Results 1 to 6 of 6

Date calcuation

  1. #1
    Registered User
    Join Date
    01-16-2016
    Location
    Hampton Roads, VA
    MS-Off Ver
    2010, 2013 and 2016
    Posts
    3

    Date calcuation

    I need to find the most recent date given the following:

    1. Start date.
    2. Interval in weeks between occurrences.

    Result. the most recent occurrence.

  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
    53,044

    Re: Date calcuation

    You will need to give much more info and data than that. Keep in mind that we have NO clue what you want, what you are working with, and what need to be done.

    Upload a small sample workbook, showing before and after
    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
    01-16-2016
    Location
    Hampton Roads, VA
    MS-Off Ver
    2010, 2013 and 2016
    Posts
    3

    Re: Date calcuation

    I'll try to create a small sample. I tried to attach the uploaded file, but it wouldn't move to the bottom of the dialog.

    Date (formated as dd/mm/YYYY) Interval (number of weeks for the event to repeat) Most recent occurrence of the event

    03/02/2011 1 01/13/2016
    11/15/2015 3 01/15/2016

    The most recent occurrence is what I'm trying to calculate. I only need to do it one time. We have a job that failed to run and I need to find the instances that should have run last week.
    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
    2010, 2019
    Posts
    40,689

    Re: Date calcuation

    Row\Col
    A
    B
    C
    D
    2
    Start Date
    Week Interval
    Last Occurrence
    3
    Wed 02 Mar 2011
    1
    Wed 13 Jan 2016
    C3: =A3 + (7 * B3) * INT((TODAY() - A3) / (7 * B3))
    4
    Sun 15 Nov 2015
    3
    Sun 27 Dec 2015
    5
    Tue 03 May 2011
    1
    Tue 12 Jan 2016
    Last edited by shg; 01-16-2016 at 09:13 PM.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    01-16-2016
    Location
    Hampton Roads, VA
    MS-Off Ver
    2010, 2013 and 2016
    Posts
    3

    Re: Date calcuation

    Thanks... that worked.

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

    Re: Date calcuation

    You're welcome.

+ 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. Calcuation based on checkbox value
    By MOHAMMESALMAN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2015, 10:44 AM
  2. Time calcuation
    By Kshari in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-20-2014, 07:49 PM
  3. need help making excel for 4 sum calcuation in 1 short
    By samj221 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-02-2012, 10:26 AM
  4. Excel 2007 : Spread of Hours Calcuation
    By Lfrat in forum Excel General
    Replies: 3
    Last Post: 06-08-2012, 08:42 AM
  5. Disalbe the Calcuation in Excel after vaildety date
    By Vikky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2006, 05:28 AM
  6. [SOLVED] holding a value after first calcuation
    By spence in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2006, 08:00 PM
  7. How do I keep Excel in manual calcuation?
    By iumike2004 in forum Excel General
    Replies: 2
    Last Post: 02-28-2006, 05:40 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