+ Reply to Thread
Results 1 to 3 of 3

If statement with OR

  1. #1
    trobinson
    Guest

    If statement with OR

    Hello,
    I need an statement that will let me put some values in a cell based on
    a comparison of a month in one cell. I have that part correct, however
    I would also like to look to see if another criteria is met. For
    instance, the month falls between a range of begin date and end date.

    How can I do that with an if statement?

    Thanks

    =IF(OR(MONTH(Sheet2!$D$4)=Sheet4!J2,Sheet2!$I$4/Sheet2!$J$4,0),
    IFMonth(Sheet2!$d$4) > Sheet4!J2,Sheet2!$i$4/Sheet2!$J$4,0))


  2. #2
    ducky
    Guest

    Re: If statement with OR


    > however I would also like to look to see if another criteria is met. For
    > instance, the month falls between a range of begin date and end date.
    >


    It sounds like you need to look into the AND function rather than OR.

    AR


  3. #3
    Tom Ogilvy
    Guest

    RE: If statement with OR

    =if(And(A1>=B1,A1<=C1),"Between","Not Between")

    --
    Regards,
    Tom Ogilvy


    "trobinson" wrote:

    > Hello,
    > I need an statement that will let me put some values in a cell based on
    > a comparison of a month in one cell. I have that part correct, however
    > I would also like to look to see if another criteria is met. For
    > instance, the month falls between a range of begin date and end date.
    >
    > How can I do that with an if statement?
    >
    > Thanks
    >
    > =IF(OR(MONTH(Sheet2!$D$4)=Sheet4!J2,Sheet2!$I$4/Sheet2!$J$4,0),
    > IFMonth(Sheet2!$d$4) > Sheet4!J2,Sheet2!$i$4/Sheet2!$J$4,0))
    >
    >


+ 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