View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Further definition

Error on last formula:

Change cell value is to Formula is:

=And(M30<M20,M30M24)

=OR(And(M30<M18,M30=M20),And(M30<=M24,M30M27))

=OR(M30=M18,M30<=M27)

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
Change cell value is to Formula is:

=And(M30<M20,M30M24)

=OR(And(M30<M18,M30=M20),And(M30<=M24,M30M27))

=And(M30=M18,M30<=M27)

--
Regards,
Tom Ogilvy

"Phil Hageman" wrote in message
...
I tried to save you time by providing only part of the
problem, and ended up wasting your time instead - Sorry.
I couldn't get the solution formulas to work as needed so
here are the exact details.

Intent:
Color format the background of cell M30 based on its value:
1.) Green when: <M20 and M24
2.) Yellow when: <M18 and =M20, or, <=M24 and M27
3.) Red when: =M18 or <=M27
4.) If B30 is blank, no format applied - defaults to white

Values:

----- Red -----
M18 100%
---- Yellow ----
M20 95%
----- Green -----
M24 85%
---- Yellow ----
M27 80%
----- Red -----

B30 Value, a percent, determined by formula.

Original Message-----
Between means inclusive:
=AND(B30<"",OR(AND(B30=M18,B30=<M20),AND

(B30=M24,B30=<M27)))
or not inclusive:
=AND(B30<"",OR(AND(B30M18,B30<M20),AND

(B30M24,B30<M27)))

2nd:
=And(B30<"".OR(B30=M18,B30<=M24))

--
Regards,
Tom Ogilvy



"Phil Hageman"

wrote in message
...
I need two conditional formatting formulas with the
following criteria:

The first formula:
B30 is not blank
And
B30 is between M18 and M20, or, between M24 and M27

The second formula:
B30 is not blank
And
B30 is greater than or equal to M18, or, less than

or
equal to M24

Thanks, Phil


.