+ Reply to Thread
Results 1 to 4 of 4

Calendar date from formula

  1. #1
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Calendar date from formula

    Hi all,

    I'm not really sure how to explain this, but what I am trying to achieve is to get a calendar layout using an array formula. The formula I'm using is from a workbook that I had found on the web and it works perfectly. It was in a general calendar layout when I downloaded it and I have adapted it to run from day 1 - the last day in a month from left to right.

    My starting day for each week is Monday (the original workbook used Sunday). The problem though is, when I get to a month that starts on a Sunday, it starts populating from the first Monday, and thus losing the 1st day of that month. I have attached an example.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calendar date from formula

    Are you particularly wedded to the single array formula approach for each month?

    If not then you could use this ordinary formula in C7 copied across and repeated on your other rows

    =IF(MONTH($B7-WEEKDAY($B7-1)+COLUMNS($C7:C7))<>MONTH($B7),"",$B7-WEEKDAY($B7-1)+COLUMNS($C7:C7))

    It doesn't use the header row for the days - if you want a Sunday start just take out the two -1s highlighted (and change the header row).

    See attached

    If you want it to work with the array formula I can fix that too, just post back.......
    Attached Files Attached Files
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: Calendar date from formula

    Hi there,

    Yes, I would prefer to use the array formula. With that said though, I am always looking to learn more, and if you would mind perhaps explaining the other formula you suggested. Might just help me in a future solution :-).

    Thanks, your help is really appreciated.
    Last edited by SalientAnimal; 12-31-2013 at 02:48 AM.

  4. #4
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    Re: Calendar date from formula

    Hi there,

    Have you been able to come up with a solution to the array as yet?

    Sorry don't mean to be a pain.


    I have now also made an change to the formula that I need. I have used the suggest formula =IF(MONTH($B7-WEEKDAY($B7-1)+COLUMNS($C7:C7))<>MONTH($B7),"",$B7-WEEKDAY($B7-1)+COLUMNS($C7:C7)), however, I have now added two columns after the Sunday for totally, which now throws out the date calculation.

    Any advice on fixing this.

    Thanks.

+ 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. [SOLVED] Calendar Formula- Date given/add 90 days/ defult - 1st day next month
    By Gower Girl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2013, 06:21 PM
  2. Excel Planner+ Calendar connected - Formula too long - don't want repeat on same date
    By RegularOfficeGuy101 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 12:25 PM
  3. Replies: 0
    Last Post: 07-03-2012, 03:52 PM
  4. formula to indicate date range on a calendar
    By bnwash in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-12-2008, 06:02 PM
  5. is there a formula to generate a calendar month date rather than .
    By lmurray in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2005, 12:06 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