Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default conditional formatting for blank cells

Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default conditional formatting for blank cells

I selected a range A1:C5; some of these cells were blank others had 0 in
them
In CF dialog I used these two formulas
=ISBLANK(A1)..... green fill
=AND(ISNUMBER(A1),A1=0)... red fill
This gave me the result you wished to have
Note: it is not sufficient to use =A1=0 since blank cells will satisfy this
test
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Stig - tame racing driver" wrote in
message ...
Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default conditional formatting for blank cells

Change the condition to Formula Is and use the following formula to determine
if a cell is blank:

=ISBLANK(A1)

Then select the formatting for that condition.

Add a second condition and use the following formula for 0 (zero) values:

=A1=0

Then select the formatting for that condition.

Change the cell address A1 accordingly.
--
Kevin Backmann


"Stig - tame racing driver" wrote:

Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default conditional formatting for blank cells

Hi,

Select the range of cells and this assumes A1 is the first cell then
format|Conditional format
Select 'Formula is' and enter the formula

=ISBLANK(A1)
Pick your colour

Click ADD and repeat the above using this formula

=AND(ISNUMBER(A1),A1=0)

Mike

"Stig - tame racing driver" wrote:

Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default conditional formatting for blank cells

Thank you ........

"Bernard Liengme" wrote in message
...
I selected a range A1:C5; some of these cells were blank others had 0 in
them
In CF dialog I used these two formulas
=ISBLANK(A1)..... green fill
=AND(ISNUMBER(A1),A1=0)... red fill
This gave me the result you wished to have
Note: it is not sufficient to use =A1=0 since blank cells will satisfy
this test
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Stig - tame racing driver" wrote in
message ...
Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default conditional formatting for blank cells

Note: it is not sufficient to use =A1=0 since blank cells will satisfy this
test



I posted the same solution as yourself because I think it's good practice to
eliminate blanks evaluating as 0 but if you evaluate the isblank as the first
condition then =a1=0 is fine as the second

Mike

"Bernard Liengme" wrote:

I selected a range A1:C5; some of these cells were blank others had 0 in
them
In CF dialog I used these two formulas
=ISBLANK(A1)..... green fill
=AND(ISNUMBER(A1),A1=0)... red fill
This gave me the result you wished to have
Note: it is not sufficient to use =A1=0 since blank cells will satisfy this
test
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Stig - tame racing driver" wrote in
message ...
Help

Using the conditional formatting tool is it possible to have a colour for
cells with 0 and a colour for blank cells

Thanking you




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/non blank cells Caroline Excel Worksheet Functions 4 November 6th 08 05:54 PM
Conditional Formatting Not Blank Cells Nate Excel Discussion (Misc queries) 6 February 22nd 08 10:25 PM
HELP - Conditional Formatting Dates & Blank Cells Diane1477 Excel Worksheet Functions 5 October 3rd 07 05:26 PM
using conditional formatting - blank cells SD Excel Discussion (Misc queries) 5 May 9th 06 03:22 PM
Conditional formatting blank cells kalz Excel Discussion (Misc queries) 2 August 12th 05 03:57 AM


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

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"