Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Boolean formula for Conditional Formatting

I'd like cell D5 to turn red if it is a negative value and cell C5 has a
value of 9. How do I set this up? I've tried entering a boolean formula such
as ...

+d5<0 #and# +c5=9

But Excel doesn't seem to recognize #and#.

I tried entering the second part of the formula as a second condition, but
that seems to be if you want the cell format to have multiple possible
outcomes.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Boolean formula for Conditional Formatting

Arthur,

Try a formula like

=AND(D5<0,C5=9)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Arthur" wrote in message
...
I'd like cell D5 to turn red if it is a negative value and cell
C5 has a
value of 9. How do I set this up? I've tried entering a boolean
formula such
as ...

+d5<0 #and# +c5=9

But Excel doesn't seem to recognize #and#.

I tried entering the second part of the formula as a second
condition, but
that seems to be if you want the cell format to have multiple
possible
outcomes.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Boolean formula for Conditional Formatting

I found the answer in an 8/25 post:
and(condition1,condition2)

"Arthur" wrote:

I'd like cell D5 to turn red if it is a negative value and cell C5 has a
value of 9. How do I set this up? I've tried entering a boolean formula such
as ...

+d5<0 #and# +c5=9

But Excel doesn't seem to recognize #and#.

I tried entering the second part of the formula as a second condition, but
that seems to be if you want the cell format to have multiple possible
outcomes.



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
need help with a formula or conditional formatting [email protected] Excel Worksheet Functions 8 December 4th 07 10:51 PM
%formula in conditional formatting k1ngy Excel Worksheet Functions 1 May 7th 07 01:13 AM
Conditional formatting is set with a formula, but now I need to ch cstwoplus Excel Discussion (Misc queries) 4 January 31st 07 11:12 PM
In Excel, can Boolean logic be applied to conditional formatting? PeterL Excel Worksheet Functions 3 October 26th 06 08:16 PM
conditional formatting formula neowok[_60_] Excel Programming 2 May 5th 04 03:42 PM


All times are GMT +1. The time now is 04:08 PM.

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"