Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if with color 2

Status
Not open for further replies.

CFNB

Programmer
Feb 15, 2007
36
CA
hello.

I have this following peace of code which works fine.
=IF(OR(A13={"UNITED STATES","JAPAN"}),A13,"")

I would like JAPAN to be printed in red and UNITED STATES in bleue.

How would I add this restriction in the code, if it is possible?

Thanks.
 




Hi,

You cannot do formatting with a spreadsheet function.

You can, however, do Conditional Formatting, using Format>Conditional Formatting...

You are limited to THREE different formatting conditions. Use one for Japan and one for The United States of America.

Skip,

[glasses] [red][/red]
[tongue]
 
Formulas can only return an answer. They can't impart any formatting to a cell.

But have a look at Format > Conditional Formatting. You can have two criteria, one for US and another for Japan.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top