+ Reply to Thread
Results 1 to 8 of 8

Calendar formula

  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Pickering, Ontario
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Calendar formula

    Hi,
    Someone who knows Excel well prepared this Calendar for me that relates to a couple of other documents. It was years ago and has worked but even older copies have the same problem, but the dates are wrong.
    There is a problem beginning in March that changes the whole thing after that.
    Here is the offending formula, which means nothing to me. I just need someone to fix it. It is for Monday in March
    =IF(Q8<>"",Q8+1,IF(I$13>=28,1,IF(I$12>=28,1,"")))

    I have attached the document.
    Thank you so much for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Calendar formula

    Could you explain what you think is wrong with the dates?

    I can see no differences between the dates it shows and those on any other calendar.

  3. #3
    Registered User
    Join Date
    12-04-2015
    Location
    Pickering, Ontario
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Re: Calendar formula

    You are right! It didn't show properly when I first opened it. Thanks for noticing that.
    But why are there triangles showing a problem with the formula? That's why I thought there was something wrong and I don't think March showed up correctly to begin with. But it does now.

  4. #4
    Registered User
    Join Date
    12-04-2015
    Location
    Pickering, Ontario
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Re: Calendar formula

    I was quick to reply. March with the errors, is actually the right dates, but April is wrong and all thereafter.

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

    Re: Calendar formula

    See attachment.
    Attached Files Attached Files
    Quang PT

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

    Re: Calendar formula

    Quote Originally Posted by TinLizzy View Post
    I was quick to reply. March with the errors, is actually the right dates, but April is wrong and all thereafter.
    K2 can be changed to other year, and leap year can turn below formulas incorrect:
    Q6 (March) = I6+29
    Q8 (first day of March):=IF(I12<>"","",IF(O12>=28,1,""))

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Calendar formula

    I see the problem now, I even compared your calendar to another one and still missed it before.

    And I'm supposed to have an eye for detail (don't tell my boss)

    That's what happens when you let the cleaner do the job

    This version uses proper date functions rather than the methods used in your original which, as you discovered, isn't 100% reliable. Also it does away with all of that garbage at the top, you don't need to tell it when it's a leap year, or what day the week starts, it will already know that from the start date. Just enter the start of year in A6 and you're good to go.

    TinLizzy Calendar.xlsx

  8. #8
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Calendar formula

    Try this one

    Please Login or Register  to view this content.
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

+ 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: 5
    Last Post: 01-02-2020, 07:45 AM
  2. Replies: 0
    Last Post: 11-01-2015, 12:49 PM
  3. [SOLVED] macros for two push button to show up calendar/hide calendar.
    By pejoi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 04:11 AM
  4. Rolling Calendar array will not work for a completely horizontal calendar
    By Michaelwk10 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2014, 05:11 PM
  5. Calendar functions - linking work activities with formatted dates to calendar
    By SKSS in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2012, 06:38 PM
  6. Calendar VBA auto filling week and month based on calendar entry.
    By perrymagic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2011, 02:00 PM
  7. Replies: 0
    Last Post: 03-27-2008, 04:36 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