PC Review


Reply
Thread Tools Rate Thread

Conditionally format cells

 
 
Jose Ruben Gonzalez-Baird
Guest
Posts: n/a
 
      8th Jan 2008
I am trying to conditionally format a cell so that, if the value of one cell
is the same as the values in other cells, the formatting of that cell will be
specified a certain way. For instance, I want to check to see if the value
of cell E3 equals value A3. If E3=A3, then I want the formatting of cell E3
to be set such that the shading is a light yellow. Is this possible and if
so is anyone familiar with the syntax?

Thanks for any suggestions. J Ruben.
 
Reply With Quote
 
 
 
 
GTVT06
Guest
Posts: n/a
 
      8th Jan 2008
On Jan 7, 6:54*pm, Jose Ruben Gonzalez-Baird
<JoseRubenGonzalezBa...@discussions.microsoft.com> wrote:
> I am trying to conditionally format a cell so that, if the value of one cell
> is the same as the values in other cells, the formatting of that cell willbe
> specified a certain way. *For instance, I want to check to see if the value
> of cell E3 equals value A3. *If E3=A3, then I want the formatting of cell E3
> to be set such that the shading is a light yellow. *Is this possible andif
> so is anyone familiar with the syntax?
>
> Thanks for any suggestions. J Ruben.


go to tools/conditional formatting/ drop down "Cell Value Is" and
select "Formula is" and enter =$E$3=$A$3, select shade formatting for
the cell. and click ok.
 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      8th Jan 2008
Without programming..............

Select E3 and Format>Conditional Formatting>Formula is:

=E3=A3 Format to light yellow and OK your way out.

Programming would be similar

Sub format_it()
With ActiveSheet
If .Range("E3").Value = .Range("A3").Value Then
.Range("E3").Interior.ColorIndex = 36
End If
End With
End Sub


Gord Dibben MS Excel MVP

On Mon, 7 Jan 2008 16:54:08 -0800, Jose Ruben Gonzalez-Baird
<(E-Mail Removed)> wrote:

>I am trying to conditionally format a cell so that, if the value of one cell
>is the same as the values in other cells, the formatting of that cell will be
>specified a certain way. For instance, I want to check to see if the value
>of cell E3 equals value A3. If E3=A3, then I want the formatting of cell E3
>to be set such that the shading is a light yellow. Is this possible and if
>so is anyone familiar with the syntax?
>
>Thanks for any suggestions. J Ruben.


 
Reply With Quote
 
Jose Ruben Gonzalez-Baird
Guest
Posts: n/a
 
      8th Jan 2008
Thanks so much for the reply.

Where would that subroutine go? Within the VBA module of the current file?

J Ruben

"Gord Dibben" wrote:

> Without programming..............
>
> Select E3 and Format>Conditional Formatting>Formula is:
>
> =E3=A3 Format to light yellow and OK your way out.
>
> Programming would be similar
>
> Sub format_it()
> With ActiveSheet
> If .Range("E3").Value = .Range("A3").Value Then
> .Range("E3").Interior.ColorIndex = 36
> End If
> End With
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Mon, 7 Jan 2008 16:54:08 -0800, Jose Ruben Gonzalez-Baird
> <(E-Mail Removed)> wrote:
>
> >I am trying to conditionally format a cell so that, if the value of one cell
> >is the same as the values in other cells, the formatting of that cell will be
> >specified a certain way. For instance, I want to check to see if the value
> >of cell E3 equals value A3. If E3=A3, then I want the formatting of cell E3
> >to be set such that the shading is a light yellow. Is this possible and if
> >so is anyone familiar with the syntax?
> >
> >Thanks for any suggestions. J Ruben.

>
>

 
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
Conditionally Format Unlocked Cells Thomas M. Microsoft Excel Misc 1 31st Mar 2009 11:06 PM
Can I conditionally format 1 cell to look at 5 cells DFRESH Microsoft Excel Misc 1 19th Feb 2009 08:22 PM
How to Conditionally Format Other Cells or Rranges Rene Microsoft Excel Misc 3 22nd Feb 2008 02:44 PM
How can I conditionally format cells that contain formulas? =?Utf-8?B?amhvZm1hbm4=?= Microsoft Excel Misc 2 6th Apr 2006 04:04 PM
conditionally format cells =?Utf-8?B?ZWxhZA==?= Microsoft Excel Worksheet Functions 2 13th May 2005 03:57 PM


Features
 

Advertising
 

Newsgroups
 


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