Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Help with conditional formatting syntax

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Hyett - 11 Oct 2007 10:21 GMT
I wonder if someone here could help?

I have a spreadsheet where I want to change the font colour of a cell
depending on the content to the cell to its immediate left - but only if
the cell to the left isn't blank.

To illustrate :

       A       B
1       12      16

If B1>A1 the font colour s/b one thing, if B1<A1, another colour, and if
A1 is empty (or if A1=B1), leave the cell unchanged.

It is the syntax for detecting whether A1 is empty that foxes me.

TIA.
Signature

Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)

papou - 11 Oct 2007 10:42 GMT
Hello Paul
Use either
=ISBLANK(A1)
Or
=A1=""

Thus with your specs:
First condition, formula
=AND(NOT(ISBLANK(A1)),B1>A1)
Second condition formula:
=AND(NOT(ISBLANK(A1)),B1<A1)

HTH
Cordially
Pascal

>I wonder if someone here could help?
>
[quoted text clipped - 13 lines]
>
> TIA.
Paul Hyett - 11 Oct 2007 18:38 GMT
In microsoft.public.excel on Thu, 11 Oct 2007, papou
<cpapoupasbon@?.net.invalid> wrote :
>Hello Paul
>Use either
[quoted text clipped - 7 lines]
>Second condition formula:
>=AND(NOT(ISBLANK(A1)),B1<A1)

Thank you - much appreciated. It worked after a little tweaking.

Also to anyone else who replies.
Signature

Paul Hyett, Cheltenham (change 'invalid83261' to 'blueyonder' to email me)

Stan Brown - 11 Oct 2007 11:20 GMT
Thu, 11 Oct 2007 09:21:56 GMT from Paul Hyett
<vidcapper@invalid83261.co.uk>:

> It is the syntax for detecting whether A1 is empty that foxes me.

=isblank(A1)

Signature

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
                                 http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work."  -- Marie Dressler, in /Dinner at Eight/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.