Solved

Change of cell color

Posted on 2016-09-28
5
42 Views
Last Modified: 2016-09-28
Hi
Kindly help me plz
i need to change color of next cell

  A B C D E F G
1
2    5 5 5
3    2 5 3
4    5 5 5
5    4 1 0
Let suppose upper mentioned values are Data and i need to change color of next cell, so what logic should i apply.

when i apply below logic, following result is shown:
=IF(OR(B2=5,C2=5,D2=5),"green", "")

  A B C D E F G
1
2    5 5 5 green
3    2 2 3
4    5 5 5 green
5    4 1 0

but i dont need this. i want green color instead of this text.

your help will highly supportive for me

Thanks
0
Comment
Question by:Zee Shan
5 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 41819291
try use Conditional Formatting ?
0
 
LVL 17

Assisted Solution

by:xtermie
xtermie earned 250 total points
ID: 41819303
See example attached

  1. Select the range you want to format
  2. Then, click Home > Conditional Formatting > New Rule.
  3. In the New Formatting Rule dialog box, click Use a formula to determine which cells to format.
  4. Under Format values where this formula is true, type the formula: OR(B2=5,C2=5,D2=5)
  5. Click Format.
  6. In the Color box, select Green
  7. Click OK until the dialog boxes are closed.

The formatting is applied to your selected cells
condformatting_example.xlsx
0
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 250 total points
ID: 41819332
there is no need for IF statement here.

select column E where you want the color effect.

this put this formula in the condtional formatting =OR($B2=5,$C2=5,$D2=5)

see attached exmaple.
condformatting_example.xlsx
0
 

Author Comment

by:Zee Shan
ID: 41819358
Thank you so much for your kind support & guidance.
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 41819375
you are welcome.  i am glad i was able to help
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Outlook Free & Paid Tools
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now