+ Reply to Thread
Results 1 to 6 of 6

repetitive time intervals

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: repetative time intervals

    Quote Originally Posted by joeljoel
    what does the $A$1:$A$20 refer to?
    It's used to create an Array of values from 1 through 20.

    This is what I meant when I referred to the formula handling up to 20 intervals of a given period - if you wanted more/less adjust 20
    (or as implied consider using a variable based on the no. Years between the intervals - the higher the no. the lower the instances required [presumably])

    Quote Originally Posted by joeljoel
    I was thinking there was a simpler way to do this.
    I'm sure there's a more elegant approach available but above my pay grade I suspect... were interval duration never to exceed 12 months then things become simpler but the ex. implies otherwise.

  2. #2
    Registered User
    Join Date
    02-08-2010
    Location
    Madison, Wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: repetative time intervals

    So if I understand correctly, I could replace ROW($A$1:$A$20) with ROW(20) and my interval from B5 would repeat 20 times, or 80 years in the case of 4 year intervals?

    I think you understood correctly. I am trying to determine if my date in A5 will be between 3/1/2018 and 9/30/2019 or 3/1/2028 and 9/30/2029 or 3/1/2038 and 9/30/2039 etc etc.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: repetative time intervals

    Quote Originally Posted by joeljoel View Post
    So if I understand correctly, I could replace ROW($A$1:$A$20) with ROW(20) and my interval from B5 would repeat 20 times, or 80 years in the case of 4 year intervals?
    The $A$20 in ROW($A$1:$A$20) determines the upper bound of the number of interval dates generated.
    If you wanted 30 repeats you would change $A$20 to $A$30, for just 5 repeats you would use $A$5.

    ROW generates an Array of values so ROW($A$1:$A$5) -> {1;2;3;4;5} etc...

    In essence we're simply creating n pairs of interval start/end dates where n is determined by the upper ROW references as detailed above and the dates themselves increment from the previous date by the number of years specified.
    We then compare the various pairs to see if any given pair covers our actual date.
    Last edited by DonkeyOte; 11-30-2010 at 05:08 PM.

+ 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