+ Reply to Thread
Results 1 to 8 of 8

simple formula

  1. #1
    Brian
    Guest

    simple formula

    I am having trouble with "and" , "or" in my formulas.

    If I want one of c1:c4 to be true is this the formula to use
    =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither one
    of these formulas seems to work. In other words, I am trying to write a
    shorter formula for the following:

    =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")

    Thanks for help with this simple formula.

  2. #2
    Biff
    Guest

    Re: simple formula

    Try one of these:

    normally entered:

    =IF(OR(C1>D1,C2>D1,C3>D1,C4>D1),G1,"")

    array entered with the key combo of CTRL,SHIFT,ENTER:

    =IF(OR(C1:C4>D1),G1,"")

    Biff

    "Brian" <[email protected]> wrote in message
    news:[email protected]...
    >I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither
    > one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.




  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    =IF(SUMPRODUCT(--(C1:C4>D1))>0,G1,"")

    Mangesh

  4. #4
    paul
    Guest

    RE: simple formula

    and will return true if all arguements are true,or will return true if only
    one argument is true
    --
    paul
    remove nospam for email addy!



    "Brian" wrote:

    > I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.


  5. #5
    Duke Carey
    Guest

    RE: simple formula

    Try

    =if(or(c1:c4)>d1,g1,"")

    but commit the formula by pressing Ctrl-Shift-Enter to make it an array
    formula



    "Brian" wrote:

    > I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.


  6. #6
    bj
    Guest

    RE: simple formula

    try
    =if(or(C1>D1,C2>D1,C3>D1,C5>D1),G1,"")
    or
    =if(max(C1:C4)>D1,G1,"")

    "Brian" wrote:

    > I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.


  7. #7
    bj
    Guest

    RE: simple formula

    This may be a second response but
    try
    =if(or(C1>D1,C2>D1,C3>D1,C4>D1),G1,"")
    or
    =if(max(C1:C4)>D1,G1,"")


    "Brian" wrote:

    > I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.


  8. #8
    Greg Neill
    Guest

    Re: simple formula

    "Brian" <[email protected]> wrote in message
    news:[email protected]...
    >I am having trouble with "and" , "or" in my formulas.
    >
    > If I want one of c1:c4 to be true is this the formula to use
    > =if((c1:c4)>d1),g1,"") or should I use =if(or(c1:c4)>d1),g1,""). Neither
    > one
    > of these formulas seems to work. In other words, I am trying to write a
    > shorter formula for the following:
    >
    > =if(c1>d1 or c2>d1 or c3>d1 or c4>d1, G1,"")
    >
    > Thanks for help with this simple formula.


    How about

    =if (MAX(c1:c4)>d1,g1,"")



+ 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