Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default IF value in Y cell = X color Z cell

I have 2 different products with 2 different licensing methods
in my final tally sheet I want an statement to help me do this

If part number in C3 = Y,X,Z and quantity in Cell C2 is 400 turn Cell C2
RED, If part number in C3 = A,B,C and quantity in Cell C2 is 224 turn Cell
C2 Red

Can anyone help me with that syntax?

Thanks in advance

--
Neall
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default IF value in Y cell = X color Z cell

I will assume that "If part number in C3 = Y,X,Z" means "If C3 is any one of
X, Y or Z"
You need to select the C2 cell and use Format | Conditional Formatting
You could use two conditions. The first would use the formula
=AND(OR(C3="Y",C3="X",C3="Z"),C2400)
The second
=AND(OR(C3="A",C3="B",C3="C"),C2224)
Since you want the same colour in either case you could combine the formulas
but I do not recommend it.
=OR(AND(OR(C3="Y",C3="X",C3="Z"),C2400),
AND(OR(C3="A",C3="B",C3="C"),C2224))
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Neall" wrote in message
...
I have 2 different products with 2 different licensing methods
in my final tally sheet I want an statement to help me do this

If part number in C3 = Y,X,Z and quantity in Cell C2 is 400 turn Cell C2
RED, If part number in C3 = A,B,C and quantity in Cell C2 is 224 turn
Cell
C2 Red

Can anyone help me with that syntax?

Thanks in advance

--
Neall



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
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
cell background color and cell text color Jeff Klein Excel Worksheet Functions 1 November 1st 07 08:59 PM
word match in string text in cell, color format cell jpmahony Excel Discussion (Misc queries) 1 October 31st 07 03:56 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Cell colors or text color changing when date in cell gets closer. Chase Excel Worksheet Functions 5 October 19th 06 08:57 AM


All times are GMT +1. The time now is 01:28 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"