+ Reply to Thread
Results 1 to 5 of 5

Leap Year Error Value

  1. #1
    Forum Contributor
    Join Date
    07-28-2015
    Location
    london
    MS-Off Ver
    Microsoft Office 365
    Posts
    113

    Leap Year Error Value

    Hi everyone,

    I am having trouble to auto populate March if February is on a Leap Year. I am using a formula where 29 will show up if it's a Leap Year and it won't show if it's not a Leap Year.

    Now the problem is if it's not a Leap Year then the March will show error looking for a Value.

    Please see attached screen shot.

    Thank you very much in advance and appreciate your help.

    Capture101.JPG

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Leap Year Error Value

    Do you need to have a gap there if it is not a leap year?

    If so, then you could test for BP2 being a space and increment BO2 instead if it is, i.e. in BQ2:

    =IF(BP2="",BO2+1,BP2+1)

    Hope this helps.

    Pete

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Leap Year Error Value

    Try in BP2:

    =IF(BO2="","",IF(BO2 < EOMONTH(BO2,0),BO2+1,""))

    Drag accross to the right
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    07-28-2015
    Location
    london
    MS-Off Ver
    Microsoft Office 365
    Posts
    113

    Re: Leap Year Error Value

    Hi Pete,

    Thank you very much. This worked.

    Kind regards,
    Jay

  5. #5
    Forum Contributor
    Join Date
    07-28-2015
    Location
    london
    MS-Off Ver
    Microsoft Office 365
    Posts
    113

    Re: Leap Year Error Value

    Hi bebo021999,

    Thanks for the help. Haven't tried your formula but will keep it too just in case :-)

    Kind regards,

    Jay

+ 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] Auto populate calendar with Leap Year and Non-Leap year.
    By sickreto in forum Excel General
    Replies: 11
    Last Post: 12-05-2019, 01:46 PM
  2. VBA Sub for leap year
    By farmust in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2016, 03:13 PM
  3. How to Know Leap Year?
    By IMA_Saihat in forum Tips and Tutorials
    Replies: 11
    Last Post: 04-05-2015, 03:17 PM
  4. How to Know Leap Year?
    By IMA_Saihat in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-05-2015, 03:17 PM
  5. 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
  6. 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
  7. [SOLVED] SUMPRODUCT leap year error
    By plsm5882 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-30-2013, 02:56 PM

Tags for this Thread

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