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;
}







1















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?










share|improve this question































    1















    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?










    share|improve this question



























      1












      1








      1








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 2 at 0:17









      Run5k

      11.7k73354




      11.7k73354










      asked Feb 1 at 21:44









      Andy GottschalkAndy Gottschalk

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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)






          share|improve this answer
























          • 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












          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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)






          share|improve this answer
























          • 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
















          0














          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)






          share|improve this answer
























          • 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














          0












          0








          0







          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)






          share|improve this answer













          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)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 1 at 22:13









          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...