+ Reply to Thread
Results 1 to 7 of 7

Even Date Distribution Across Array

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Even Date Distribution Across Array

    Hi-

    I am trying to populate dates in a range of cells based on a number in a different cell. This is for a proposed condominium sell out schedule.

    For example, if:

    Cell A1 (start date): 9/1/2012
    Cell A2 (Sell out period length): 15 months


    I would like Cells C2:C34 (each row being a different condo unit) to automatically have an even distribution of the months between the start date and the last month of the sell out period.

    Thanks very much for your help.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Even Date Distribution Across Array

    what would want it to look like post a sample workbook easy way to create a series of months based on those 2 conditions is in c2 dragged down
    =IF(ROW(A1)>$A$2,"",EOMONTH($A$1,ROW(A1)-2)+1)
    if you want every month repeated twice then
    =IF(ROW(A1)>$A$2*2,"",EOMONTH($A$1,CEILING(ROW(A1),2)/2-2)+1)
    here are 4 ways
    Attached Files Attached Files
    Last edited by martindwilson; 07-05-2012 at 12:32 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Even Date Distribution Across Array

    Thanks for the response. Here is a sample. Columns are a little bit different. The highlighted cells in Column K are the destination cells. Essentially would like to assume a certain amount of units/month sold, evenly dividing them over the amount of months from Cell A1 and Cell A2.

    Thanks again.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Even Date Distribution Across Array

    says 12 but only 11 months covered

  5. #5
    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: Even Date Distribution Across Array

    Perhaps in K3 and copy down,

    =INT($A$1 + (EDATE($A$1, $A$2) - $A$1) * (E3-1) / 32)
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    07-05-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Even Date Distribution Across Array

    Quote Originally Posted by shg View Post
    Perhaps in K3 and copy down,

    =INT($A$1 + (EDATE($A$1, $A$2) - $A$1) * (E3-1) / 32)
    This could work I think. Any way I can make the dates it returns default to the first day of that month? So K4 would be 2/11/2014, I would like it to default to 2/1/2014.

    Thanks.

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Even Date Distribution Across Array

    Nevermind, looks like this works. Just used =eomonth( around the whole thing to have it return to the first day of the month.

    Thanks alot, this was bothering me for a while.

+ 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