+ Reply to Thread
Results 1 to 5 of 5

If(And for Conditional Formating

  1. #1
    Ronbo
    Guest

    If(And for Conditional Formating

    1. Is it possible to add a "If(And function" to condition(1) in conditional
    formating?

    2. If so what is the syntax?

    What I am using, but does not work (in all cases) is;
    If(And(a1>b1),(a1<100))

    Using (what I believe to be the correct syntax) is not exceptable:
    If(And(a1>b1,a1<100))

  2. #2
    Biff
    Guest

    Re: If(And for Conditional Formating

    Hi!

    Try this:

    =AND(A1>B1,A1<100)

    Here's another thing to think about that most people don't consider until
    after they discover that it males a difference:

    Empty cells!

    =AND(A1<>"",B1<>"",A1>B1,A1<100)

    Biff

    "Ronbo" <[email protected]> wrote in message
    news:[email protected]...
    > 1. Is it possible to add a "If(And function" to condition(1) in
    > conditional
    > formating?
    >
    > 2. If so what is the syntax?
    >
    > What I am using, but does not work (in all cases) is;
    > If(And(a1>b1),(a1<100))
    >
    > Using (what I believe to be the correct syntax) is not exceptable:
    > If(And(a1>b1,a1<100))




  3. #3
    Ryan Poth
    Guest

    RE: If(And for Conditional Formating

    Ronbo,
    You need to lose the "if" part of that formula. Conditional format formulae
    should always resolve to true/false, so instead try:
    =AND(A1>B1,A1<100)

    HTH,
    Ryan

    "Ronbo" wrote:

    > 1. Is it possible to add a "If(And function" to condition(1) in conditional
    > formating?
    >
    > 2. If so what is the syntax?
    >
    > What I am using, but does not work (in all cases) is;
    > If(And(a1>b1),(a1<100))
    >
    > Using (what I believe to be the correct syntax) is not exceptable:
    > If(And(a1>b1,a1<100))


  4. #4
    bpeltzer
    Guest

    RE: If(And for Conditional Formating

    Just use the AND to return TRUE when the condition should be applied...
    =and((a1>b1),(a1<100)).

    "Ronbo" wrote:

    > 1. Is it possible to add a "If(And function" to condition(1) in conditional
    > formating?
    >
    > 2. If so what is the syntax?
    >
    > What I am using, but does not work (in all cases) is;
    > If(And(a1>b1),(a1<100))
    >
    > Using (what I believe to be the correct syntax) is not exceptable:
    > If(And(a1>b1,a1<100))


  5. #5
    Forum Contributor
    Join Date
    12-14-2005
    Posts
    176
    Try this - The OK and Check can be replaced with any value you want for the True and False part of the statement.
    You might also try a try using an "OR" statement just replace the AND with OR.

    =IF(AND(A2>B2,A2<100),"OK","Check")

+ 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