+ Reply to Thread
Results 1 to 8 of 8

Ho do I change the formula for this calendar to show months and years?

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Ho do I change the formula for this calendar to show months and years?

    Hi,

    I have come accross this calendar online and it suits my requirements, however, the month s currently static and the year is dynamically controlled by a spin button.

    The formulas in the relevent days are as follows

    Day 1 =IF(AND(YEAR(JanOffset+1)=calendarYear,MONTH(JanOffset+1)=1),JanOffset+1,"")
    Day 2 =IF(AND(YEAR(JanOffset+2)=calendarYear,MONTH(JanOffset+2)=1),JanOffset+2,"")

    and so on, I need the formula and the spin button the also change the month as well as the year.

    Please see attached file for details.

    Cheers

    JD
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Ho do I change the formula for this calendar to show months and years?

    b5 cell
    =IFERROR(DATE(calendarYear,VLOOKUP(LEFT($B$2,FIND(" ",$B$2)-1),{"January",1;"February",2;"March",3;"April",4;"May",5;"June",6;"July",7;"August",8;"September",9;"October",10;"November",11;"December",12},2),DAY(Sheet1!B$4)),"")
    Appreciate the help? CLICK *

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Ho do I change the formula for this calendar to show months and years?

    Hi, I need the month to change through January to december for each year as well please.

    Cheers

    JD

  4. #4
    Registered User
    Join Date
    03-30-2014
    Location
    Suzhou,China
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Ho do I change the formula for this calendar to show months and years?

    hi,see if help you

    calendar-wcymiss.xlsx

  5. #5
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Ho do I change the formula for this calendar to show months and years?

    Hi great solution but it dosent seem to advance the month in the text box at the top of the calendar

    JD

  6. #6
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Ho do I change the formula for this calendar to show months and years?

    Also is it possible to compact everything into one spin button?

    Cheers
    JD

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Ho do I change the formula for this calendar to show months and years?

    =IFERROR(DATE(calendarYear,calendarMonth,DAY(Sheet1!B4)),"")

  8. #8
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Ho do I change the formula for this calendar to show months and years?

    Hi AZ-XL that did the trick for the displayed calendar title showing the monthe and year, thanks.

    Cheers

    JD

+ 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. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  2. [SOLVED] Change from Years to Months-How?
    By barbibchn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-17-2013, 08:19 PM
  3. [SOLVED] Age based on DOB; Accounts for leap years. Years old if >2, Months if <2 years old.
    By sharpmel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2013, 04:20 PM
  4. How do i convert years to months (formula)
    By SDPMIAMI in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] How do I change months into years?
    By Kara in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2005, 04: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