Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Conditional formatting

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Conditional formatting

OR(AI16<"No Response",AI16<"Get Back",AI16<"Returning",AI16<"Returned")
will ALWAYS return TRUE

Use AND(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")
to get TRUE when AI16 does not equal any of the four statuses.


"Gary" wrote:

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Conditional formatting

Thank you sheeloo!
What about the rest of my formula. Are the parenthesis in the correct areas?
I keep getting an error message when I click OK after entering the formula.

"Sheeloo" wrote:

OR(AI16<"No Response",AI16<"Get Back",AI16<"Returning",AI16<"Returned")
will ALWAYS return TRUE

Use AND(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")
to get TRUE when AI16 does not equal any of the four statuses.


"Gary" wrote:

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Conditional formatting

Try
=AND(AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned"),(OR(AND(AQ16="Ph",AR160,AP160,AW16=" ",AX16=""),(AND(AQ16="Ph",AR160,AP160,AW16=""))) ))

For it to return TRUE
1. AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned") should be TRUE
and
Either
2. AND(AQ16="Ph",AR160,AP160,AW16="",AX16="")

or

3. AND(AQ16="Ph",AR160,AP160,AW16="")
have to be true

btw 2 is not required if you have 3 and using OR(2,3)

If this does not work then I suggest you enter the 3 AND conditions in
separate cells then combine them into the formula for clarity. Once you are
comfortable then you can combine them into one cell.

"Gary" wrote:

Thank you sheeloo!
What about the rest of my formula. Are the parenthesis in the correct areas?
I keep getting an error message when I click OK after entering the formula.

"Sheeloo" wrote:

OR(AI16<"No Response",AI16<"Get Back",AI16<"Returning",AI16<"Returned")
will ALWAYS return TRUE

Use AND(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")
to get TRUE when AI16 does not equal any of the four statuses.


"Gary" wrote:

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Conditional formatting

Thank you!!! Worked like a charm . Guess I still don't know enough about
formula syntax to be as creative as I'd like to be. Do you know any good
books on Excel formatting and formulas? Looked through the Dummies series and
lots of good Excel info, but not much on formulas or conditional formatting.

"Sheeloo" wrote:

Try
=AND(AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned"),(OR(AND(AQ16="Ph",AR160,AP160,AW16=" ",AX16=""),(AND(AQ16="Ph",AR160,AP160,AW16=""))) ))

For it to return TRUE
1. AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned") should be TRUE
and
Either
2. AND(AQ16="Ph",AR160,AP160,AW16="",AX16="")

or

3. AND(AQ16="Ph",AR160,AP160,AW16="")
have to be true

btw 2 is not required if you have 3 and using OR(2,3)

If this does not work then I suggest you enter the 3 AND conditions in
separate cells then combine them into the formula for clarity. Once you are
comfortable then you can combine them into one cell.

"Gary" wrote:

Thank you sheeloo!
What about the rest of my formula. Are the parenthesis in the correct areas?
I keep getting an error message when I click OK after entering the formula.

"Sheeloo" wrote:

OR(AI16<"No Response",AI16<"Get Back",AI16<"Returning",AI16<"Returned")
will ALWAYS return TRUE

Use AND(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")
to get TRUE when AI16 does not equal any of the four statuses.


"Gary" wrote:

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Conditional formatting

You are welcome. Just try to enter one formula at a time...
Also get into the habit of looking up HELP...

Try "Learn Excel 97-2003 from Mr Excel"
You can download a trial copy from http://www.mrexcel.com/learnexcel2.shtml

"Gary" wrote:

Thank you!!! Worked like a charm . Guess I still don't know enough about
formula syntax to be as creative as I'd like to be. Do you know any good
books on Excel formatting and formulas? Looked through the Dummies series and
lots of good Excel info, but not much on formulas or conditional formatting.

"Sheeloo" wrote:

Try
=AND(AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned"),(OR(AND(AQ16="Ph",AR160,AP160,AW16=" ",AX16=""),(AND(AQ16="Ph",AR160,AP160,AW16=""))) ))

For it to return TRUE
1. AND(AI16<"No
Response",AI16<"GetBack",AI16<"Returning",AI16< "Returned") should be TRUE
and
Either
2. AND(AQ16="Ph",AR160,AP160,AW16="",AX16="")

or

3. AND(AQ16="Ph",AR160,AP160,AW16="")
have to be true

btw 2 is not required if you have 3 and using OR(2,3)

If this does not work then I suggest you enter the 3 AND conditions in
separate cells then combine them into the formula for clarity. Once you are
comfortable then you can combine them into one cell.

"Gary" wrote:

Thank you sheeloo!
What about the rest of my formula. Are the parenthesis in the correct areas?
I keep getting an error message when I click OK after entering the formula.

"Sheeloo" wrote:

OR(AI16<"No Response",AI16<"Get Back",AI16<"Returning",AI16<"Returned")
will ALWAYS return TRUE

Use AND(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")
to get TRUE when AI16 does not equal any of the four statuses.


"Gary" wrote:

What's wrong with this Conditional Formula?
=AND(OR(AI16<"No Response",AI16<"Get
Back",AI16<"Returning",AI16<"Returned")),(OR(AND (AQ16="Ph",AR160,AP160,AW16="",AX16=""),(AND(AQ1 6="Ph",AR160,AP160,AW16="")))).

My goal is to evaluate the first OR condition and if True then evaluate
either of the AND conditions as follows: AND(OR(if true), then calculate
(OR(AND(____),AND(____))

IF any of the first OR conditions are True, then perform the calculations in
either of the AND conditions, whichever one is True. I believe my syntax is
incorrect as I get error messages when pressing OK.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"