Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello-
I am trying to conditionally format a call using VBA if the value of the cell is equal to or greater than 0.50% based on another cell. if cell b2 = 2.50% and cell c2 = 1.85% then I would want b2 highlighted red as the increase amount is over .50. Thanks Scott |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sabosis wrote:
I am trying to conditionally format a call using VBA if the value of the cell is equal to or greater than 0.50% based on another cell. if cell b2 = 2.50% and cell c2 = 1.85% then I would want b2 highlighted red as the increase amount is over .50. Depends on what you mean by "highlighted". If you mean "the cell gets filled with red", use this: If (Range("B2").Value - Range("C2").Value) 0.005 Then Range("B2").Interior.Color = vbRed End If If you mean "the text is turned red", use this: If (Range("B2").Value - Range("C2").Value) 0.005 Then Range("B2").Font.Color = vbRed End If If you mean *anything else*, please clarify. -- Some days you're the pigeon, some days you're the statue. -- Steven Tyler |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional format lowest value greater than zero and copy formula | Excel Discussion (Misc queries) | |||
Average of difference between dates greater than zero | Excel Worksheet Functions | |||
Conditional format - value of one cell greater than another cell | Excel Worksheet Functions | |||
colors and conditional format - greater than, less than | Excel Discussion (Misc queries) | |||
conditional format greater or less than | Excel Discussion (Misc queries) |