Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Maybe very simple, andif?
What I'm looking for is how to combine arguments in a way that its not If this OR that, but that its if this AND that. I want cell H6 to turn green and display an "X" character when cell B6 is green and contains "O" for instance. This is what I have thusfar: If Range("B6").Interior.Color = RGB(0, 255, 0) = "O" Then Range("H6").Interior.Color = RGB(0, 255, 0) = "X" Cell H6 does turn green when B6 is green, but no "X" shows up in H6. Can someone help me with this? Thanks in advance. -- Viperius ------------------------------------------------------------------------ Viperius's Profile: http://www.excelforum.com/member.php...o&userid=37565 View this thread: http://www.excelforum.com/showthread...hreadid=571959 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Maybe very simple, andif?
If Range("B6").Interior.Color = RGB(0, 255, 0) And Range("B6") = "O"
Then Range("H6").Interior.Color = RGB(0, 255, 0) Range("H6") = "X" End If Charles Viperius wrote: What I'm looking for is how to combine arguments in a way that its not If this OR that, but that its if this AND that. I want cell H6 to turn green and display an "X" character when cell B6 is green and contains "O" for instance. This is what I have thusfar: If Range("B6").Interior.Color = RGB(0, 255, 0) = "O" Then Range("H6").Interior.Color = RGB(0, 255, 0) = "X" Cell H6 does turn green when B6 is green, but no "X" shows up in H6. Can someone help me with this? Thanks in advance. -- Viperius ------------------------------------------------------------------------ Viperius's Profile: http://www.excelforum.com/member.php...o&userid=37565 View this thread: http://www.excelforum.com/showthread...hreadid=571959 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Maybe very simple, andif?
Thanks! Knew it had to be something simple but excel help didn't show the and function. -- Viperius ------------------------------------------------------------------------ Viperius's Profile: http://www.excelforum.com/member.php...o&userid=37565 View this thread: http://www.excelforum.com/showthread...hreadid=571959 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
NESTED ANDIF STATEMENTS | Excel Discussion (Misc queries) | |||
IF formula-simple question; simple operator | Excel Discussion (Misc queries) | |||
Add qualifier to andif statement | New Users to Excel | |||
Q about: IfAnd or is it AndIf? | Excel Worksheet Functions | |||
ANDIF (i think) | Excel Worksheet Functions |