Solved

Change of cell color

Posted on 2016-09-28
5
61 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 51

Expert Comment

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

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 26

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 26

Expert Comment

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pivot table - average if not zero 2 24
Help to break down spreadsheet 3 37
add a column label to a list object using VBA 2 17
Excel formula that extracts out name of url 6 38
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

679 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