A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting with Calculated Blank



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2010, 07:36 PM posted to microsoft.public.excel.misc
BB Ivan
external usenet poster
 
Posts: 19
Default Conditional Formatting with Calculated Blank

I'm having problems with conditional formatting when I'm working with cells
that calculate to blank using "". My conditional format doesn't seem to
consider the calculated "" to be truly blank. Here's the situation.
(1) I have the following formula that calculates to blank in cell P132:
=IF(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)=0 ,"",(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)) )

(2) Cell O132 is not blank

(3) I have the following formatting condition in cell P132:
=AND(ISBLANK(O132)=FALSE,ISBLANK(P132)=TRUE)
While this condition seems to be true, it is being bypassed; it's format is
not applied.

Any ideas? Thanks very much
  #2  
Old May 7th, 2010, 07:53 PM posted to microsoft.public.excel.misc
Tom Hutchins
external usenet poster
 
Posts: 722
Default Conditional Formatting with Calculated Blank

O132 and P132 aren't blank; they contain formulas. Try this for your P132
conditional formatting formula:
=AND(LEN(O132)0,LEN(P$132)=0)

Hope this helps,

Hutch

"BB Ivan" wrote:

I'm having problems with conditional formatting when I'm working with cells
that calculate to blank using "". My conditional format doesn't seem to
consider the calculated "" to be truly blank. Here's the situation.
(1) I have the following formula that calculates to blank in cell P132:
=IF(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)=0 ,"",(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)) )

(2) Cell O132 is not blank

(3) I have the following formatting condition in cell P132:
=AND(ISBLANK(O132)=FALSE,ISBLANK(P132)=TRUE)
While this condition seems to be true, it is being bypassed; it's format is
not applied.

Any ideas? Thanks very much

  #3  
Old May 7th, 2010, 08:15 PM posted to microsoft.public.excel.misc
BB Ivan
external usenet poster
 
Posts: 19
Default Conditional Formatting with Calculated Blank

I see. So BLANK is about the state of the cell, not the result of the
formula...
I also got the expected result from changing ISBLANK(O132) to O132="", etc.
But your suggestion works well.

Thanks

"Tom Hutchins" wrote:

O132 and P132 aren't blank; they contain formulas. Try this for your P132
conditional formatting formula:
=AND(LEN(O132)0,LEN(P$132)=0)

Hope this helps,

Hutch

"BB Ivan" wrote:

I'm having problems with conditional formatting when I'm working with cells
that calculate to blank using "". My conditional format doesn't seem to
consider the calculated "" to be truly blank. Here's the situation.
(1) I have the following formula that calculates to blank in cell P132:
=IF(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)=0 ,"",(VLOOKUP($E132,DataSubdept!$C:$AX,P$13,FALSE)) )

(2) Cell O132 is not blank

(3) I have the following formatting condition in cell P132:
=AND(ISBLANK(O132)=FALSE,ISBLANK(P132)=TRUE)
While this condition seems to be true, it is being bypassed; it's format is
not applied.

Any ideas? Thanks very much

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:02 AM.


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