Excel Conditional Formatting based on another cells text
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I'm trying to get a cell to highlight green if another cell contains "True".
My expression so far is as follows:
If J4="True"
then highlight F4 green
and
if J4="False"
then highlight F4 red.
It's not working.
How can I improve this formula?
microsoft-excel worksheet-function
add a comment |
I'm trying to get a cell to highlight green if another cell contains "True".
My expression so far is as follows:
If J4="True"
then highlight F4 green
and
if J4="False"
then highlight F4 red.
It's not working.
How can I improve this formula?
microsoft-excel worksheet-function
add a comment |
I'm trying to get a cell to highlight green if another cell contains "True".
My expression so far is as follows:
If J4="True"
then highlight F4 green
and
if J4="False"
then highlight F4 red.
It's not working.
How can I improve this formula?
microsoft-excel worksheet-function
I'm trying to get a cell to highlight green if another cell contains "True".
My expression so far is as follows:
If J4="True"
then highlight F4 green
and
if J4="False"
then highlight F4 red.
It's not working.
How can I improve this formula?
microsoft-excel worksheet-function
microsoft-excel worksheet-function
edited Feb 2 at 0:17
![](https://i.stack.imgur.com/XDVKc.gif?s=32&g=1)
![](https://i.stack.imgur.com/XDVKc.gif?s=32&g=1)
Run5k
11.7k73354
11.7k73354
asked Feb 1 at 21:44
![](https://lh6.googleusercontent.com/--0mhbGnUaeg/AAAAAAAAAAI/AAAAAAAAAAA/ACevoQNYaeahBcAkHRcv5xKe65E7T0TLFw/mo/photo.jpg?sz=32)
![](https://lh6.googleusercontent.com/--0mhbGnUaeg/AAAAAAAAAAI/AAAAAAAAAAA/ACevoQNYaeahBcAkHRcv5xKe65E7T0TLFw/mo/photo.jpg?sz=32)
Andy GottschalkAndy Gottschalk
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
With Cell F4
selected, add a new rule to your Conditional Formatting rules:
=$J4="True"
And apply a Green fill. Use =$J4="False"
and apply a Red fill for the negative side.
(Edit: For True
, you can probably just do =$J4
)
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that=$J4
works and `=$J4="False" doesn't suggests that you have logical results there.
– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
|
show 8 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401173%2fexcel-conditional-formatting-based-on-another-cells-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
With Cell F4
selected, add a new rule to your Conditional Formatting rules:
=$J4="True"
And apply a Green fill. Use =$J4="False"
and apply a Red fill for the negative side.
(Edit: For True
, you can probably just do =$J4
)
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that=$J4
works and `=$J4="False" doesn't suggests that you have logical results there.
– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
|
show 8 more comments
With Cell F4
selected, add a new rule to your Conditional Formatting rules:
=$J4="True"
And apply a Green fill. Use =$J4="False"
and apply a Red fill for the negative side.
(Edit: For True
, you can probably just do =$J4
)
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that=$J4
works and `=$J4="False" doesn't suggests that you have logical results there.
– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
|
show 8 more comments
With Cell F4
selected, add a new rule to your Conditional Formatting rules:
=$J4="True"
And apply a Green fill. Use =$J4="False"
and apply a Red fill for the negative side.
(Edit: For True
, you can probably just do =$J4
)
With Cell F4
selected, add a new rule to your Conditional Formatting rules:
=$J4="True"
And apply a Green fill. Use =$J4="False"
and apply a Red fill for the negative side.
(Edit: For True
, you can probably just do =$J4
)
answered Feb 1 at 22:13
![](https://i.stack.imgur.com/x1byc.jpg?s=32&g=1)
![](https://i.stack.imgur.com/x1byc.jpg?s=32&g=1)
BruceWayneBruceWayne
2,0251721
2,0251721
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that=$J4
works and `=$J4="False" doesn't suggests that you have logical results there.
– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
|
show 8 more comments
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that=$J4
works and `=$J4="False" doesn't suggests that you have logical results there.
– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
I was able to get it to work using =$J4 but using =$J4="False" did not work for the red fill.
– Andy Gottschalk
Feb 1 at 23:44
@AndyGottschalk ah, just do
=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
@AndyGottschalk ah, just do
=$J4<>"True"
– BruceWayne
Feb 1 at 23:51
1
1
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,
=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that =$J4
works and `=$J4="False" doesn't suggests that you have logical results there.– fixer1234
Feb 1 at 23:53
@AndyGottschalk, what's actually in J4 (text words "True" or "False" or logical results)? If it's text,
=$J4
shouldn't work, but everything in the answer except the edit should work. The fact that =$J4
works and `=$J4="False" doesn't suggests that you have logical results there.– fixer1234
Feb 1 at 23:53
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
@fixer1234 I have a massive if statement in J4 that will give me true or false depending on the number in F4 and one selected on another sheet. if that makes sense.
– Andy Gottschalk
Feb 1 at 23:56
1
1
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
@BruceWayne, this concludes the entertainment portion.
– fixer1234
Feb 2 at 1:50
|
show 8 more comments
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401173%2fexcel-conditional-formatting-based-on-another-cells-text%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown