A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting with 3 Criteria Options



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 08:51 PM posted to microsoft.public.excel.worksheet.functions
Nickle
external usenet poster
 
Posts: 4
Default Conditional Formatting with 3 Criteria Options

I would like a Cell's Text to turn green if A1=B1, but turn red if A1B1,
and no formatting if B1 is blank. What is the best way to go about this? I
have excel2007.
  #2  
Old March 18th, 2010, 09:29 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default Conditional Formatting with 3 Criteria Options

With that cell active, use Home/Conditional Formatting, use new Rule, use
Use a formula to determine which cells to format and enter this formula:
=AND(A1B1,B1"")
then click format/fill/red
then do another New Rule and use
=AND(A1=B1,B1"")
then click format/fill/green.

HTH
Bob Umlas
Excel MVP

"Nickle" wrote in message
...
I would like a Cell's Text to turn green if A1=B1, but turn red if A1B1,
and no formatting if B1 is blank. What is the best way to go about this?
I
have excel2007.


  #3  
Old March 18th, 2010, 10:49 PM posted to microsoft.public.excel.worksheet.functions
Nickle
external usenet poster
 
Posts: 4
Default Conditional Formatting with 3 Criteria Options

These two work fine, however my A1 cell turns Red when B1 is blank which I
was hoping to have no formatting for. Is there another equation that is
needed. Thank you for the help.

"Bob Umlas" wrote:

With that cell active, use Home/Conditional Formatting, use new Rule, use
Use a formula to determine which cells to format and enter this formula:
=AND(A1B1,B1"")
then click format/fill/red
then do another New Rule and use
=AND(A1=B1,B1"")
then click format/fill/green.

HTH
Bob Umlas
Excel MVP

"Nickle" wrote in message
...
I would like a Cell's Text to turn green if A1=B1, but turn red if A1B1,
and no formatting if B1 is blank. What is the best way to go about this?
I
have excel2007.


.

  #4  
Old March 18th, 2010, 11:24 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Conditional Formatting with 3 Criteria Options

It shouldn't go red if B1 is blank. Perhaps it is not blank. Perhaps
contains one or more spaces? What does =LEN(B1) show?
--
David Biddulph


"Nickle" wrote in message
...
These two work fine, however my A1 cell turns Red when B1 is blank which I
was hoping to have no formatting for. Is there another equation that is
needed. Thank you for the help.

"Bob Umlas" wrote:

With that cell active, use Home/Conditional Formatting, use new Rule, use
Use a formula to determine which cells to format and enter this formula:
=AND(A1B1,B1"")
then click format/fill/red
then do another New Rule and use
=AND(A1=B1,B1"")
then click format/fill/green.

HTH
Bob Umlas
Excel MVP

"Nickle" wrote in message
...
I would like a Cell's Text to turn green if A1=B1, but turn red if
A1B1,
and no formatting if B1 is blank. What is the best way to go about
this?
I
have excel2007.


.


  #5  
Old March 19th, 2010, 01:04 AM posted to microsoft.public.excel.worksheet.functions
Nickle
external usenet poster
 
Posts: 4
Default Conditional Formatting with 3 Criteria Options

=LEN(B1) Shows 1
I do have a cell reference to another spreadsheet. So the outcome on B1 is
dependent on what is selected from a cell on the Master sheet.



"David Biddulph" wrote:

It shouldn't go red if B1 is blank. Perhaps it is not blank. Perhaps
contains one or more spaces? What does =LEN(B1) show?
--
David Biddulph


"Nickle" wrote in message
...
These two work fine, however my A1 cell turns Red when B1 is blank which I
was hoping to have no formatting for. Is there another equation that is
needed. Thank you for the help.

"Bob Umlas" wrote:

With that cell active, use Home/Conditional Formatting, use new Rule, use
Use a formula to determine which cells to format and enter this formula:
=AND(A1B1,B1"")
then click format/fill/red
then do another New Rule and use
=AND(A1=B1,B1"")
then click format/fill/green.

HTH
Bob Umlas
Excel MVP

"Nickle" wrote in message
...
I would like a Cell's Text to turn green if A1=B1, but turn red if
A1B1,
and no formatting if B1 is blank. What is the best way to go about
this?
I
have excel2007.

.


.

  #6  
Old March 19th, 2010, 05:57 AM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Conditional Formatting with 3 Criteria Options

So if LEN(B1) is 1,it is not blank, so it will satisfy the B1"" test, and
the red result is what you'd expect.

What is your formula in B1? Are you sure that you haven't asked it to
produce a space =" " rather than an empty string ="" ?
=CODE(B1) will be 32 if you've got a space in there.
--
David Biddulph


"Nickle" wrote in message
...
=LEN(B1) Shows 1
I do have a cell reference to another spreadsheet. So the outcome on B1
is
dependent on what is selected from a cell on the Master sheet.



"David Biddulph" wrote:

It shouldn't go red if B1 is blank. Perhaps it is not blank. Perhaps
contains one or more spaces? What does =LEN(B1) show?
--
David Biddulph


"Nickle" wrote in message
...
These two work fine, however my A1 cell turns Red when B1 is blank
which I
was hoping to have no formatting for. Is there another equation that
is
needed. Thank you for the help.

"Bob Umlas" wrote:

With that cell active, use Home/Conditional Formatting, use new Rule,
use
Use a formula to determine which cells to format and enter this
formula:
=AND(A1B1,B1"")
then click format/fill/red
then do another New Rule and use
=AND(A1=B1,B1"")
then click format/fill/green.

HTH
Bob Umlas
Excel MVP

"Nickle" wrote in message
...
I would like a Cell's Text to turn green if A1=B1, but turn red if
A1B1,
and no formatting if B1 is blank. What is the best way to go about
this?
I
have excel2007.

.


.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.