Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Conditionally format cells

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Conditionally format cells

On Jan 7, 6:54*pm, Jose Ruben Gonzalez-Baird
m 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.


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.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Conditionally format cells

Without programming..............

Select E3 and FormatConditional FormattingFormula 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
m 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.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Conditionally format cells

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 FormatConditional FormattingFormula 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
m 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
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
Conditionally Format Unlocked Cells Thomas M. Excel Discussion (Misc queries) 1 March 31st 09 11:06 PM
Can I conditionally format 1 cell to look at 5 cells DFRESH Excel Discussion (Misc queries) 2 February 19th 09 08:25 PM
How to Conditionally Format Other Cells or Rranges Rene Excel Discussion (Misc queries) 3 February 22nd 08 02:44 PM
How can I conditionally format cells that contain formulas? jhofmann Excel Discussion (Misc queries) 2 April 6th 06 04:04 PM
conditionally format cells elad Excel Worksheet Functions 2 May 13th 05 03:57 PM


All times are GMT +1. The time now is 03:45 AM.

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"