Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default conditional formatting

I recieved a spreadsheet that contains conditional formatting created by
another user. The cells subjected to the conditional formatting, which are
all in one column, contain a simple formula of the form:

IF(B14="","",IF(L14=0,0,R14/L14))

The cells were otherwise formatted to display the resulting values as a
percentage. There are two conditions associated with the conditional
formatting feature. First, if the value in the cell = 1, the cell fill color
is green. The second condition makes the cell fill color red if the value is
1.


The problem occurs when cell B14 is blank. The formula correctly results in
the cell being blank; however, the fill color turns to red. Based on the
conditional formatting conditions, I see no reason for, nor do I want, the
fill color of the cell to be red. Any help would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default conditional formatting


The problem is that in Excel's ranking system a blank is deemed to be
bigger than any number, hence the formatting.

One way round this would be to change your second condition. If the
cell that you're formatting is A14 use the "formula is" option and the
formula

=(A141)*ISNUMBER(A14)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528684

  #3   Report Post  
Posted to microsoft.public.excel.misc
Door
 
Posts: n/a
Default conditional formatting


One method is to set 3 conditional formats, the first if = "" (blank) =
no fill colour, the second if = 1 = fill colour Yellow, the third if 1
= fill colour red.



Rich Wrote:
I recieved a spreadsheet that contains conditional formatting created
by
another user. The cells subjected to the conditional formatting, which
are
all in one column, contain a simple formula of the form:

IF(B14="","",IF(L14=0,0,R14/L14))

The cells were otherwise formatted to display the resulting values as
a
percentage. There are two conditions associated with the conditional
formatting feature. First, if the value in the cell = 1, the cell fill
color
is green. The second condition makes the cell fill color red if the
value is
1.


The problem occurs when cell B14 is blank. The formula correctly
results in
the cell being blank; however, the fill color turns to red. Based on
the
conditional formatting conditions, I see no reason for, nor do I want,
the
fill color of the cell to be red. Any help would be much appreciated.



--
Door
------------------------------------------------------------------------
Door's Profile: http://www.excelforum.com/member.php...o&userid=33068
View this thread: http://www.excelforum.com/showthread...hreadid=528684

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
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional formatting : amount of decimals belgian11 Excel Discussion (Misc queries) 0 December 25th 05 04:47 PM
Conditional Formatting Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 07:42 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"