+ Reply to Thread
Results 1 to 43 of 43

Nested IF AND OR function Inexplicable error

  1. #1
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  2. #2
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  3. #3
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  4. #4
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  5. #5
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  6. #6
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  7. #7
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  8. #8
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  9. #9
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  10. #10
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  11. #11
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  12. #12
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  13. #13
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  14. #14
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  15. #15
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  16. #16
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  17. #17
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  18. #18
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  19. #19
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  20. #20
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  21. #21
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  22. #22
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  23. #23
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  24. #24
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  25. #25
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  26. #26
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  27. #27
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  28. #28
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  29. #29
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  30. #30
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  31. #31
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  32. #32
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  33. #33
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  34. #34
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  35. #35
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  36. #36
    Bernard Liengme
    Guest

    Re: Nested IF AND OR function Inexplicable error

    I used
    =IF(OR(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),C44,"x")
    and the cell correctly displayed an x. I am using XL 2003
    What error are you getting? You do know the first 2 ANDs are the same?
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  37. #37
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Thanks all who responded to this - my problem remains after removing the line
    breaks entirely, and checking the input cells (C44 is a number 1.2042).
    The error message occurs when I hit Enter after typing in the formula: "The
    formula you typed contains an error: For info about fixing.... To get
    assistance ... etc etc"
    The part of the formula highlighted by the error message is the second
    "GreenAbove" after J44.

    I am using Microsoft Excel 2000.




    "Martin P" wrote:

    > I copied your formula to a worksheet and it works for me.
    > My guess is that the error is in one of the cells J44, J43,J42 or more
    > likely C44.
    > What is the exact error message you are getting?
    >
    > "MichaelC" wrote:
    >
    > > I have the following formula which I believe does not breach any rules, yet
    > > it returns an error message. Can anyone see where my error is? I would much
    > > appreciate any help, and thank you in advance.
    > > I don't believe I am breaching the max 7 arguments rule.
    > >
    > > =if(OR
    > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > C44,"")


  38. #38
    MichaelC
    Guest

    Nested IF AND OR function Inexplicable error

    I have the following formula which I believe does not breach any rules, yet
    it returns an error message. Can anyone see where my error is? I would much
    appreciate any help, and thank you in advance.
    I don't believe I am breaching the max 7 arguments rule.

    =if(OR
    (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

  39. #39
    MichaelC
    Guest

    RE: Nested IF AND OR function Inexplicable error

    Problem solved - BUT I DON'T KNOW WHY!!
    I copied the formulae that you said worked for you into a fresh Excel
    workbook and it indeed did work.
    Then I copied that cell back into my original workbook replacing the
    original formula and .... it worked.
    Got me stumped! But now I can continue my work and thanks to all who
    helped, Bernard, Sandy, Bob, Ron and Martin P.

    "MichaelC" wrote:

    > Thanks all who responded to this - my problem remains after removing the line
    > breaks entirely, and checking the input cells (C44 is a number 1.2042).
    > The error message occurs when I hit Enter after typing in the formula: "The
    > formula you typed contains an error: For info about fixing.... To get
    > assistance ... etc etc"
    > The part of the formula highlighted by the error message is the second
    > "GreenAbove" after J44.
    >
    > I am using Microsoft Excel 2000.
    >
    >
    >
    >
    > "Martin P" wrote:
    >
    > > I copied your formula to a worksheet and it works for me.
    > > My guess is that the error is in one of the cells J44, J43,J42 or more
    > > likely C44.
    > > What is the exact error message you are getting?
    > >
    > > "MichaelC" wrote:
    > >
    > > > I have the following formula which I believe does not breach any rules, yet
    > > > it returns an error message. Can anyone see where my error is? I would much
    > > > appreciate any help, and thank you in advance.
    > > > I don't believe I am breaching the max 7 arguments rule.
    > > >
    > > > =if(OR
    > > > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > > > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > > > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > > > C44,"")


  40. #40
    Martin P
    Guest

    RE: Nested IF AND OR function Inexplicable error

    I copied your formula to a worksheet and it works for me.
    My guess is that the error is in one of the cells J44, J43,J42 or more
    likely C44.
    What is the exact error message you are getting?

    "MichaelC" wrote:

    > I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")


  41. #41
    Ron Rosenfeld
    Guest

    Re: Nested IF AND OR function Inexplicable error

    On Mon, 22 Aug 2005 12:35:01 -0700, "MichaelC"
    <[email protected]> wrote:

    >I have the following formula which I believe does not breach any rules, yet
    >it returns an error message. Can anyone see where my error is? I would much
    >appreciate any help, and thank you in advance.
    >I don't believe I am breaching the max 7 arguments rule.
    >
    >=if(OR
    >(AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    >AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    >AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    >C44,"")


    After I removed all the line breaks, there was no error message.

    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    C44,"")

    If you enter line breaks in the formula, I have found it necessary to put them
    just AFTER a "(" rather than before it. See the difference in our first lines
    above.


    --ron

  42. #42
    Bob Umlas
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Excel doesn't like line breaks before the parentheses -- try:
    =IF(OR(
    AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",
    J41="RedBelow")),C44,"")
    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following formula which I believe does not breach any rules,

    yet
    > it returns an error message. Can anyone see where my error is? I would

    much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




  43. #43
    Sandy Mann
    Guest

    Re: Nested IF AND OR function Inexplicable error

    Your formula as written works for me in XL97

    --
    Regards

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "MichaelC" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula which I believe does not breach any rules, yet
    > it returns an error message. Can anyone see where my error is? I would
    > much
    > appreciate any help, and thank you in advance.
    > I don't believe I am breaching the max 7 arguments rule.
    >
    > =if(OR
    > (AND(J44="GreenAbove",J43="GreenAbove",J42="RedBelow"),
    > AND(J44="GreenAbove",J43="GreenBelow",J42="RedBelow"),
    > AND(J44="GreenBelow",J43="GreenBelow",J42="GreenBelow",J41="RedBelow")),
    > C44,"")




+ 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