Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
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
NESTED ANDIF STATEMENTS Mally Excel Discussion (Misc queries) 1 February 11th 10 05:21 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Add qualifier to andif statement litngldy New Users to Excel 4 November 8th 06 10:20 PM
Q about: IfAnd or is it AndIf? Michael Saffer Excel Worksheet Functions 3 January 28th 06 03:22 AM
ANDIF (i think) chrisabberton Excel Worksheet Functions 4 November 26th 04 06:20 PM


All times are GMT +1. The time now is 11:41 PM.

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

About Us

"It's about Microsoft Excel"