+ Reply to Thread
Results 1 to 5 of 5

Need help fixing calendar (leap year)

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    7

    Need help fixing calendar (leap year)

    Hi! I'm new here. I have attached a sheet that is driving me crazy. you will see two tabs. one for 2016, and one for 2017. In creating the 2017 tab, I merely copied 2016 forgetting about leap year. Now everything starting on the 29th of February is screwed up. Can someone take a look at it for me and fix? or tell me how to fix? thank you so much!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Need help fixing calendar (leap year)

    post removed
    Last edited by philaugust2004; 03-23-2017 at 06:45 PM.

  3. #3
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Need help fixing calendar (leap year)

    In the formula tab go to Name Manager
    For the names Jansun Febsun etc add +1 right after te Jansun, febsun etc
    so JanSun changes from =DATE(CalendarYear,1,1)-WEEKDAY(DATE(CalendarYear,1,1))
    to
    =DATE(CalendarYear+1,1,1)-WEEKDAY(DATE(CalendarYear+1,1,1))

  4. #4
    Registered User
    Join Date
    08-18-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Need help fixing calendar (leap year)

    Quote Originally Posted by philaugust2004 View Post
    In the formula tab go to Name Manager
    For the names Jansun Febsun etc add +1 right after te Jansun, febsun etc
    so JanSun changes from =DATE(CalendarYear,1,1)-WEEKDAY(DATE(CalendarYear,1,1))
    to
    =DATE(CalendarYear+1,1,1)-WEEKDAY(DATE(CalendarYear+1,1,1))
    Thank you!!!

  5. #5
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Need help fixing calendar (leap year)

    You're welcome. Glad it worked

+ 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. VBA Sub for leap year
    By farmust in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2016, 03:13 PM
  2. How to Know Leap Year?
    By IMA_Saihat in forum Tips and Tutorials
    Replies: 11
    Last Post: 04-05-2015, 03:17 PM
  3. How to Know Leap Year?
    By IMA_Saihat in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-05-2015, 03:17 PM
  4. How to check if a year in a cell is a leap year
    By Azuko in forum Excel General
    Replies: 2
    Last Post: 01-31-2014, 07:08 AM
  5. How to check if a year in a cell is a leap year
    By Azuko in forum Excel General
    Replies: 1
    Last Post: 01-27-2014, 03:20 AM
  6. Leap year
    By samirz10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2008, 06:11 PM
  7. Leap year
    By ianma in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-03-2008, 03:26 AM

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