Solved

Question on Excel If statement on coloring cells

Posted on 2014-10-26
4
187 Views
Last Modified: 2014-10-27
I have a Formula =(B2*703)/(O2*O2) this is in G2 cell
B2 = 247 this will go up and down in cells B2 thru B100
O2 = 67 This stays the same times it self
703 is Always
= 38 rounded down
What I want to do is change different colors of the  G cell if the total is
30 or higher would be Red.
25 to 29.9 would be Orange
18.5 to 24.9 would be Green
Less than 18.5 would be Red
0
Comment
Question by:starview
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40405634
You can apply conditional formatting to do the work...

I attached the excel with created conditional formation you can use Format painter to transfer the conditional formatting or  you can use the screenshots to recreate it for yourself..
Capture1.PNG
Capture.PNG
Book1.xlsx
0
 

Author Comment

by:starview
ID: 40405699
I am not sure what you are trying to show here, Book1.xlsx where are you getting the color changes, I am not sure what format painter is,
Isn't there a way to use a if statement to change the number to didn't colors and not the complete cell?
0
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 500 total points
ID: 40405707
To change the conditions and color of conditional formatting do following

1

Select the column where you want to setup conditional formatting

2

Under the conditional formatting select manage rules which will get you the current set of rules applied to that column

3

Select rule which you want to edit and click Edit rule button (see Capture3)

4

On the new window you change the color/font/size  under the format button (see Capture4)
Using IF statement to change the colors is unnecessary since there is the conditional formatting...

Maybe more detail instructions can be found here : http://www.techonthenet.com/excel/questions/cond_format1_2010.php
Capture3.PNG
Capture4.PNG
0
 

Author Closing Comment

by:starview
ID: 40407588
Thank you
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

775 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