ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula (https://www.excelbanter.com/excel-discussion-misc-queries/188563-formula.html)

mtishm

formula
 
Hi Need help
new to all of this'

I trying to add color to a formula,if possible.
here is my formula
=if(c358,"J",if(c35<9,"L"))
if greater than 8 I want it to turn green, less than 8 i want it to turn red.
--
Tish

Sandy Mann

formula
 
Checked out Conditional Formatting:

Format Conditional Formatting

Set Condition 1 for Cell value is: less than
and Condition 2 Cell value is: greater than

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"mtishm" wrote in message
...
Hi Need help
new to all of this'

I trying to add color to a formula,if possible.
here is my formula
=if(c358,"J",if(c35<9,"L"))
if greater than 8 I want it to turn green, less than 8 i want it to turn
red.
--
Tish




dksaluki

formula
 
On the main menu, click FORMAT Conditional Formating.... Then in
Condition 1, set it to say "Cell value is...greater than...8, then
click formatt button and click patterns tab, and click the green
color. This is how you set it all up to say, if the cell is greater
than 8, make the cell green. Now add another condition that says, if
the cell is less than or equal to 8, make the cell red by the same
steps as condition 1.
hope this helps,

dk

mtishm

formula
 
I tried conditional formatting and it will not work with the formula. I was
hoping to add something to the formula
--
Tish


"Sandy Mann" wrote:

Checked out Conditional Formatting:

Format Conditional Formatting

Set Condition 1 for Cell value is: less than
and Condition 2 Cell value is: greater than

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"mtishm" wrote in message
...
Hi Need help
new to all of this'

I trying to add color to a formula,if possible.
here is my formula
=if(c358,"J",if(c35<9,"L"))
if greater than 8 I want it to turn green, less than 8 i want it to turn
red.
--
Tish





dksaluki

formula
 
In a round-about way, that's what conditional formatting is. (in fact,
if you click in the cell, you don't even need to see an actual formula
at all!) In the conditional formatting dialoge box, that's what the
conditions are. They are testing the cells you tell it to, and
testing what the values are. And based on that cell's value, it will
FORMAT the cell however you tell it. If this, then do that...etc.
In a cell, there's no way to type "=if(.....)" and incorporate colors
into the formula. What I mean is, making cells different colors is
formatting it, not a formula per say. "=if(B2=4,red,green)" does not
make sense. You could use VBA, but that would make it a more
complicated than it needs to be.
I tried your original request and it works out just fine.

dk

mtishm

formula
 
Thanks, I went back and found I was enter condition wrong. I am good to go
now. thanks for your help
--
Tish


"dksaluki" wrote:

In a round-about way, that's what conditional formatting is. (in fact,
if you click in the cell, you don't even need to see an actual formula
at all!) In the conditional formatting dialoge box, that's what the
conditions are. They are testing the cells you tell it to, and
testing what the values are. And based on that cell's value, it will
FORMAT the cell however you tell it. If this, then do that...etc.
In a cell, there's no way to type "=if(.....)" and incorporate colors
into the formula. What I mean is, making cells different colors is
formatting it, not a formula per say. "=if(B2=4,red,green)" does not
make sense. You could use VBA, but that would make it a more
complicated than it needs to be.
I tried your original request and it works out just fine.

dk



All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com