Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chiuinggum
 
Posts: n/a
Default conditional formating for blank.

My formula is as follow:
L31=IF(OR(J31="",K31=""),"",(J31-K31)/J31). M31is the goal number.
I set a conditional formatting that if L31 is less than M31 the cell is fill
red and if L31 is greater than or equal to M31 it will be green. When J31 and
K31 is blank, L31 is appear green.

I have another formula.
L43=IF(OR(J43="",K43=""),"",SUM(J43:K43)). I set some condtional formatting.
However when J43 and K43 is blank, L43 turn appear as red.
Why the difference?

What I dont understand is
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default conditional formating for blank.

Try this to correct L31's cond formatting ..

Select L31, then set the CF formulas/formats as:

Cond1: =OR(L31="",M31="")
Format: Leave it as "No Format set"

Cond2: =L31<M31
Format: Red fill

Cond3: =L31=M31
Format: Green fill

For L43, your question was left hanging in mid-air? <g
But think it'll work ok if you try something along the same lines as for L31
above

I'd usually set it to trap for "" as the first condition
before going into the other numeric conditions
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"chiuinggum" wrote:
My formula is as follow:
L31=IF(OR(J31="",K31=""),"",(J31-K31)/J31). M31is the goal number.
I set a conditional formatting that if L31 is less than M31 the cell is fill
red and if L31 is greater than or equal to M31 it will be green. When J31 and
K31 is blank, L31 is appear green.

I have another formula.
L43=IF(OR(J43="",K43=""),"",SUM(J43:K43)). I set some condtional formatting.
However when J43 and K43 is blank, L43 turn appear as red.
Why the difference?

What I dont understand is

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
excel conditional formating decimal fractions Andy Dixon Excel Worksheet Functions 6 April 17th 06 10:25 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional formating using formulas arifnj Excel Worksheet Functions 4 October 27th 05 01:56 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
more than 3 conditional formating in excel Manan Excel Discussion (Misc queries) 2 February 7th 05 09:12 PM


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