#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Formatting Formula

Hi Guys,

How do i write a formula to say that if, for example, cell A1 is empty it
should be coloured white?

Cheers,
Rodney
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formatting Formula

Assuming that the cell isn't already colored white which is the default fill
color...

Select cell A1
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the little box on the right:

=A1<""

Click the Format button
Select the Patterns tab
Select the white fill color
OK out


--
Biff
Microsoft Excel MVP


"Rodney" wrote in message
...
Hi Guys,

How do i write a formula to say that if, for example, cell A1 is empty it
should be coloured white?

Cheers,
Rodney



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Formatting Formula

Hi Biff,

Thanks for that response.

However, as i have two conditional formats set up already the formula does
not seem to work on those cells to which the other conditional formats are
applied. Is there a different formula which i can use? The other two formats
simply are if a date is greater than today colour the cell green, but if
earlier than today colour the cell red.

Thanks,
Rodney

"T. Valko" wrote:

Assuming that the cell isn't already colored white which is the default fill
color...

Select cell A1
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the little box on the right:

=A1<""

Click the Format button
Select the Patterns tab
Select the white fill color
OK out


--
Biff
Microsoft Excel MVP


"Rodney" wrote in message
...
Hi Guys,

How do i write a formula to say that if, for example, cell A1 is empty it
should be coloured white?

Cheers,
Rodney




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formatting Formula

Ooops!

I gave you the wrong the formula!

Let's sort this out...

If you have 2 formats applied, green and red, what color is the cell to
begin with as the default?

Normally, white is the default color. If you want to set fill color with
conditional formatting you start with the a default color then as the
conditions are met the cell color changes according to those conditions.

I have a hunch that maybe your RED condition isn't set properly. Try it like
this:

=AND(COUNT(A1),A1<TODAY())

An empty cell evaluates as 0. So, if you simply test an empty cell to be
<today that condition will be true and the format will be applied. You need
to test for 2 conditions. 1) the cell does in fact contain a date (number),
and 2) the date (number) in the cell is <today. The above formula checks for
both of those conditions.

--
Biff
Microsoft Excel MVP


"Rodney" wrote in message
...
Hi Biff,

Thanks for that response.

However, as i have two conditional formats set up already the formula does
not seem to work on those cells to which the other conditional formats are
applied. Is there a different formula which i can use? The other two
formats
simply are if a date is greater than today colour the cell green, but if
earlier than today colour the cell red.

Thanks,
Rodney

"T. Valko" wrote:

Assuming that the cell isn't already colored white which is the default
fill
color...

Select cell A1
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the little box on the right:

=A1<""

Click the Format button
Select the Patterns tab
Select the white fill color
OK out


--
Biff
Microsoft Excel MVP


"Rodney" wrote in message
...
Hi Guys,

How do i write a formula to say that if, for example, cell A1 is empty
it
should be coloured white?

Cheers,
Rodney






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formatting Formula

Default is "no color", not white.................just looks white


Gord

On Sat, 19 Jul 2008 13:14:07 -0400, "T. Valko" wrote:

Assuming that the cell isn't already colored white which is the default fill
color...

Select cell A1
Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the little box on the right:

=A1<""

Click the Format button
Select the Patterns tab
Select the white fill color
OK out


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
Formula formatting pulling my hair out Excel Discussion (Misc queries) 7 June 18th 07 08:17 AM
Formatting Within a Formula Rob Excel Discussion (Misc queries) 4 February 22nd 07 05:17 PM
Formatting with a Formula Mike Hogan Excel Discussion (Misc queries) 1 October 6th 06 03:22 PM
Formula / Formatting Help - please!" Anthony Excel Discussion (Misc queries) 4 July 21st 05 11:57 AM
Formatting in the formula bar Beccy Excel Discussion (Misc queries) 2 December 22nd 04 02:41 PM


All times are GMT +1. The time now is 02:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"