+ Reply to Thread
Results 1 to 4 of 4

Non Leap Years I want to show 28, leap years show 29 in an"IF"

Hybrid View

  1. #1
    bob@toyota-lift
    Guest

    Non Leap Years I want to show 28, leap years show 29 in an"IF"

    B3 contains the month
    b4 contains an if/or stmt for the last day of the month
    b5 is the year
    b6 contains an if/or stmt for the last day of the next month
    How can I get "b4"+"b6" to know when its a leap year

  2. #2
    Duke Carey
    Guest

    RE: Non Leap Years I want to show 28, leap years show 29 in an"IF"

    You could just use

    =eomonth(B4,1) to get the last day of the next month

    Requires the Analysis Toolpak ... Tools->Add ins... and check Analysis
    Toolpak

    "bob@toyota-lift" wrote:

    > B3 contains the month
    > b4 contains an if/or stmt for the last day of the month
    > b5 is the year
    > b6 contains an if/or stmt for the last day of the next month
    > How can I get "b4"+"b6" to know when its a leap year


  3. #3
    Ron Rosenfeld
    Guest

    Re: Non Leap Years I want to show 28, leap years show 29 in an"IF"

    On Thu, 19 Jan 2006 10:17:02 -0800, bob@toyota-lift
    <bob@toyota-lift@discussions.microsoft.com> wrote:

    >B3 contains the month
    >b4 contains an if/or stmt for the last day of the month
    >b5 is the year
    >b6 contains an if/or stmt for the last day of the next month
    >How can I get "b4"+"b6" to know when its a leap year


    From what you write, it's hard to tell what you are doing.

    Perhaps if you give examples of your data and formulas, we could better assist.


    --ron

  4. #4
    bplumhoff@gmail.com
    Guest

    Re: Non Leap Years I want to show 28, leap years show 29 in an"IF"

    Hi Bob,

    write into B4:
    =DAY(DATE($B$5,$B$3+1,0))

    and into B6:
    =DAY(DATE($B$5,$B$3+2,0))

    HTH,
    Bernd


+ 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