+ Reply to Thread
Results 1 to 15 of 15

If then syntax

  1. #1
    RL
    Guest

    If then syntax

    I want to use the If then function to have it look at a cell and if the date
    in the cell is between the beginning and end of the current Fiscal year,
    enter a 1 in my cell. My logic was, IF (test cell) >=Date(2004,10,1) and
    <=Date(2005,9,30),1,0). I seem to do just fine with the first half, but as
    soon as I add the "and" I end up getting an invalid. Can someone tell me
    the proper syntax for meeting two conditions?

    Thanks

  2. #2
    Jason Morin
    Guest

    RE: If then syntax

    =IF(AND(A1>=DATE(2004,10,1),A1<=DATE(2005,9,30)),1,0)

    Or

    =(A1>=DATE(2004,10,1))*(A1<=DATE(2005,9,30))

    HTH
    Jason
    Atlanta, GA

    "RL" wrote:

    > I want to use the If then function to have it look at a cell and if the date
    > in the cell is between the beginning and end of the current Fiscal year,
    > enter a 1 in my cell. My logic was, IF (test cell) >=Date(2004,10,1) and
    > <=Date(2005,9,30),1,0). I seem to do just fine with the first half, but as
    > soon as I add the "and" I end up getting an invalid. Can someone tell me
    > the proper syntax for meeting two conditions?
    >
    > Thanks


  3. #3
    bj
    Guest

    RE: If then syntax

    try
    =IF(and((test cell) >=Date(2004,10,1),
    > <=Date(2005,9,30)),1,0)


    "RL" wrote:

    > I want to use the If then function to have it look at a cell and if the date
    > in the cell is between the beginning and end of the current Fiscal year,
    > enter a 1 in my cell. My logic was, IF (test cell) >=Date(2004,10,1) and
    > <=Date(2005,9,30),1,0). I seem to do just fine with the first half, but as
    > soon as I add the "and" I end up getting an invalid. Can someone tell me
    > the proper syntax for meeting two conditions?
    >
    > Thanks


  4. #4
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  5. #5
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  6. #6
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  7. #7
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  8. #8
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  9. #9
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  10. #10
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  11. #11
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  12. #12
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  13. #13
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  14. #14
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


  15. #15
    Joseph
    Guest

    Re: If then syntax


    Try using this formula

    =IF(A2>=DATE(2005,1,1),IF(A2<=DATE(2005,4,1),1,0))

    Where A2 has the Date that you want. Let me know how it goes.

    Cheers


    --
    Joseph
    ------------------------------------------------------------------------
    Joseph's Profile: http://www.msusenet.com/member.php?userid=2505
    View this thread: http://www.msusenet.com/t-1870448372


+ 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