+ Reply to Thread
Results 1 to 9 of 9

Calendar

  1. #1
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Calendar

    I want to construct a calendar in 7 columns; all Mondays of the year to be in the first column headed "Monday", all Tuesdays of the year in the second column headed "Tuesday" and so on till the last column headed "Friday" containing all Fridays [ignoring the month titles]. Any help will be much appreciated.
    Last edited by Michael6; 10-24-2008 at 05:49 AM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Starting with cell A1, type in Monday, Tuesday, etc. across through Sunday in G1. Then in A2, copy this formula:

    =IF(ROW()=2, IF(COLUMN()=1, IF(TEXT(DATE(2008,1,1),"dddd")=A1, DATE(2008,1,1),""), IF(OFFSET(A2,0,-1)="", IF(TEXT(DATE(2008,1,1),"dddd")=A1, DATE(2008,1,1),""), OFFSET(A2,0,-1)+1)), IF(COLUMN()=1, G1+1, OFFSET(A2,0,-1)+1))

    Copy that across through column G, then down as far as you need. This will start with 1/1/2008 in the proper column.

    Is that what you are looking for?

  3. #3
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Thank you Jasoncw

    Hi Jasoncw
    I think I am almost there, but not quite. Your formula produces full dates (i.e day,month & year). I want only the day of the month (1 or 2 or 3, ...or 31) to appear in each cell. Could you please modify the formula to achieve this. Thank you.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi, formula doesn't need to change. Just format cells as "d". You will only get the day of the month

  5. #5
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98
    Hi Arthurbr
    Could you please explain to me how to format cells as "d" to get the day only of the date? I tried but could not do it. I am using Excel 2003.
    Thank you

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Highlight cells, right click, format cells..., custom, type d in the box, OK.

  7. #7
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98
    Thank you Darkyam.
    Your advice helped me out. The problem is now solved

  8. #8
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    If your problem is solved, please change your original title prefix to " solved" via Edit - Go Advanced

  9. #9
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    How about his for a revision?

    =DATE(2008,1,COLUMN()+7*(ROW()-2)-1)

    Or, a year-indifferent version (works for 2009!)
    =DATE(YEAR(NOW()),1,COLUMN()+7*(ROW()-2)-WEEKDAY(DATE(YEAR(NOW()),1,1),3)

    In every cell from A1 through G54 - format top line as "dddd", format rest as "d".

    tres neat, non?

+ 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