+ Reply to Thread
Results 1 to 4 of 4

Yearly Planner

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Yearly Planner

    Hi,

    Similar to a previuos post (by sgt.trojan) is there anyway I could do similar with the attached planner??

    The layout is opposite months are horisontal and days vertical!!

    Thanks

    Col
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,675

    Re: Yearly Planner

    Here is the transposition. I have assumed that you will always keep this format rather than rolling months off to the left. That is, it will always show Aug-Dec of one year then Jan-July of the next.

    You need to rid of the merged cells for the weekdays. It's going to be different every year and the whole point of all this is automation; merging is manual. You may have to tweak your conditional formatting a bit.

    Per your PM:
    Do you reckon I could tweak the CF so I could have a merged cell look for the tournaments that the players are entered into??
    I'm sure this is possible. Um, what's a CF?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-24-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Yearly Planner

    Quote Originally Posted by 6StringJazzer View Post
    Here is the transposition. I have assumed that you will always keep this format rather than rolling months off to the left. That is, it will always show Aug-Dec of one year then Jan-July of the next.

    You need to rid of the merged cells for the weekdays. It's going to be different every year and the whole point of all this is automation; merging is manual. You may have to tweak your conditional formatting a bit.

    Per your PM:
    I'm sure this is possible. Um, what's a CF?
    Conditional Fornatting, being a bit lazy in not typing the the full meaning LOL.

    Can you give me a version where the cells are not merged along with the conditional formatting rules, your formulas are amazing and way above what I am capable of, it will take me eons to work out what you have done but a great opportunity for me to learn LOL

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,675

    Re: Yearly Planner

    I'll try to get back to the conditional formatting (CF--I should have known that).

    Here is the breakdown of logic used for the first week of the month. Special logic is only needed for the first week, because the first day of the month has to fall in one of the first 7 rows. After that you can simply add 1 to get the next date.

    =IF(
    WEEKDAY(B$2,2+N("Comment: 2 means that Monday=1")) This expression returns a number that corresponds to what day of the week it is for B$2, which is the first day of that month. The 2 says, "Return 1 for Monday, and so on, until 7 for Sunday." The function N returns a zero if you put text inside, so I sometimes use that to put a comment in a formula. You could just simply use
    WEEKDAY(B$2,2)
    =ROW()-3, I need to calculate the day number for the day on the current row. The first day is Monday in row 4, so if I subtract 3 it will give me a day number that I can compare to the result of the WEEKDAY function. Recall that WEEKDAY will return 1 if the day is a Monday.
    B$2, If that comparison is true, that is, if the first day of the month falls on the day of the week for this row, then the date used for this day will be the first day of the month, which is in B$2.
    IF( But if it's not true, then we have to check...
    B4="","", to see if the day before is blank. If this row is the not the first day of the month, and the row before is blank then we haven't reached the first day yet so this date will be blank too.
    B4+1) But if the previous day is nonblank, then today must be one day later, so we add 1 to it to get the date for this row.
    )
    )

    Similar logic has to be used at the end of the month as well. If the calculation for that row would go past the end of the month, then the date is just left blank.

+ 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