PC Review


Reply
Thread Tools Rate Thread

Conditional formatting to test blank text cell

 
 
Andyjim
Guest
Posts: n/a
 
      10th Jan 2008
I am trying to satisfy 2 criteria in order to change the color of a cell:
I hilighted cells b27:b56) and then went to conditional formatting and
entered this formula. I want the b column to turn blue if the adjacent cell
in the C column is greater than zero. I am spinning my wheels on this.
Thanks in advance for your help. You folks always come through for me!

=and(c17:c56>0,isblank(b17:b56))
 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      10th Jan 2008
Select B17:B56

then with B17 as the active cell use

=C17>0

or if B needs to be blank

=AND(B17="",C17>0)

since you are using relative cell references they formatting will carry over
to the other cells that are selected and
change to

=C18>0
=C19>0

and so on


--


Regards,


Peo Sjoblom


"Andyjim" <(E-Mail Removed)> wrote in message
news:07AF8E51-CCCE-492A-9F5E-(E-Mail Removed)...
>I am trying to satisfy 2 criteria in order to change the color of a cell:
> I hilighted cells b27:b56) and then went to conditional formatting and
> entered this formula. I want the b column to turn blue if the adjacent
> cell
> in the C column is greater than zero. I am spinning my wheels on this.
> Thanks in advance for your help. You folks always come through for me!
>
> =and(c17:c56>0,isblank(b17:b56))



 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      10th Jan 2008
Select the entire range to be formatted but in the formula just reference
the individual cell, not the entire range:

=AND(COUNT(C17),C17>0,B17="")

--
Biff
Microsoft Excel MVP


"Andyjim" <(E-Mail Removed)> wrote in message
news:07AF8E51-CCCE-492A-9F5E-(E-Mail Removed)...
>I am trying to satisfy 2 criteria in order to change the color of a cell:
> I hilighted cells b27:b56) and then went to conditional formatting and
> entered this formula. I want the b column to turn blue if the adjacent
> cell
> in the C column is greater than zero. I am spinning my wheels on this.
> Thanks in advance for your help. You folks always come through for me!
>
> =and(c17:c56>0,isblank(b17:b56))



 
Reply With Quote
 
Andyjim
Guest
Posts: n/a
 
      10th Jan 2008
Thanks so much! Works well.

"Peo Sjoblom" wrote:

> Select B17:B56
>
> then with B17 as the active cell use
>
> =C17>0
>
> or if B needs to be blank
>
> =AND(B17="",C17>0)
>
> since you are using relative cell references they formatting will carry over
> to the other cells that are selected and
> change to
>
> =C18>0
> =C19>0
>
> and so on
>
>
> --
>
>
> Regards,
>
>
> Peo Sjoblom
>
>
> "Andyjim" <(E-Mail Removed)> wrote in message
> news:07AF8E51-CCCE-492A-9F5E-(E-Mail Removed)...
> >I am trying to satisfy 2 criteria in order to change the color of a cell:
> > I hilighted cells b27:b56) and then went to conditional formatting and
> > entered this formula. I want the b column to turn blue if the adjacent
> > cell
> > in the C column is greater than zero. I am spinning my wheels on this.
> > Thanks in advance for your help. You folks always come through for me!
> >
> > =and(c17:c56>0,isblank(b17:b56))

>
>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th Jan 2008
You cannot test a range for >0 or ISBLANK.

Must be done one cell at a time.

Select B17:B56 then enter this formula in CF>Formula is:

=AND($C17>0,ISBLANK($B17))

Note the $ signs to lock the column but not the row.


Gord Dibben MS Excel MVP

On Thu, 10 Jan 2008 10:09:02 -0800, Andyjim <(E-Mail Removed)>
wrote:

>I am trying to satisfy 2 criteria in order to change the color of a cell:
>I hilighted cells b27:b56) and then went to conditional formatting and
>entered this formula. I want the b column to turn blue if the adjacent cell
>in the C column is greater than zero. I am spinning my wheels on this.
>Thanks in advance for your help. You folks always come through for me!
>
>=and(c17:c56>0,isblank(b17:b56))


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Blank Cell shelly2711 General Software 1 7th Jan 2012 10:28 PM
Conditional formatting formula for when 1 cell if blank _and_ another cell is not? StargateFanNotAtHome Microsoft Excel Discussion 2 11th Aug 2008 06:08 PM
How to test an adjacent cell for blank in conditional formatting davegb Microsoft Excel Discussion 10 29th Mar 2007 03:18 PM
put zero in blank cell using conditional formatting Terry Microsoft Excel Worksheet Functions 5 22nd Mar 2007 08:38 PM
Conditional Formatting to Test Value in Cell Carroll Microsoft Excel Worksheet Functions 3 9th Mar 2006 07:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 PM.