ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...) (https://www.excelbanter.com/excel-discussion-misc-queries/100563-advanced-conditional-formatting-ideas-needed-ok-maybe-not-advanced.html)

shadestreet

Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...)
 

Two questions:

1. Can I have a conditional format that is dependant on two different
cells? For example in Cell A2 I want to have the cell turn bright red
if A2 is greater than zero and B2 equals zero. I want to then drag
this down for every cell in column A.

2. I cell C2 I want to turn this cell bright red if cell D2 gets the
error message "DIV/0!" to flag there is an error. Is this possible?

Thanks


--
shadestreet
------------------------------------------------------------------------
shadestreet's Profile: http://www.excelforum.com/member.php...fo&userid=7092
View this thread: http://www.excelforum.com/showthread...hreadid=563687


David Biddulph

Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...)
 
"shadestreet"
wrote in message
...

Two questions:

1. Can I have a conditional format that is dependant on two different
cells? For example in Cell A2 I want to have the cell turn bright red
if A2 is greater than zero and B2 equals zero. I want to then drag
this down for every cell in column A.


Formula is:
=AND($A20,$B2=0)

2. I cell C2 I want to turn this cell bright red if cell D2 gets the
error message "DIV/0!" to flag there is an error. Is this possible?


Formula is:
=(ERROR.TYPE(D2)=2)
--
David Biddulph



oldchippy

Advanced Conditional Formatting Ideas Needed! (ok, maybe not that advanced...)
 

Hi shadestreet,

Try this,

Conditional formatting for B2
formula is =IF(A20,IF(B2=0,TRUE,FALSE))
select formatting required

Formula in cell C2
=IF(ISERROR(D2),"Error","")

Conditional formatting for C2
formula is =ISERROR(D2)
select formatting required

Is this what you require?

oldchippy :)


--
oldchippy
------------------------------------------------------------------------
oldchippy's Profile: http://www.excelforum.com/member.php...o&userid=19907
View this thread: http://www.excelforum.com/showthread...hreadid=563687



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com