Alerts and or Validation in Excel












0














I'm looking to create an alert for when Cell B is Blank and text is being typed into Cell C, I also need then, for Cell C to be able to have free text typed in once there are figures in Cell B.



any help greatly appreciated. thanks










share|improve this question


















  • 1




    Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
    – dmb
    Dec 17 at 14:21












  • Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
    – Kelly Moore
    Dec 19 at 13:51


















0














I'm looking to create an alert for when Cell B is Blank and text is being typed into Cell C, I also need then, for Cell C to be able to have free text typed in once there are figures in Cell B.



any help greatly appreciated. thanks










share|improve this question


















  • 1




    Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
    – dmb
    Dec 17 at 14:21












  • Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
    – Kelly Moore
    Dec 19 at 13:51
















0












0








0







I'm looking to create an alert for when Cell B is Blank and text is being typed into Cell C, I also need then, for Cell C to be able to have free text typed in once there are figures in Cell B.



any help greatly appreciated. thanks










share|improve this question













I'm looking to create an alert for when Cell B is Blank and text is being typed into Cell C, I also need then, for Cell C to be able to have free text typed in once there are figures in Cell B.



any help greatly appreciated. thanks







microsoft-excel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 17 at 13:30









Kelly Moore

6




6








  • 1




    Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
    – dmb
    Dec 17 at 14:21












  • Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
    – Kelly Moore
    Dec 19 at 13:51
















  • 1




    Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
    – dmb
    Dec 17 at 14:21












  • Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
    – Kelly Moore
    Dec 19 at 13:51










1




1




Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
– dmb
Dec 17 at 14:21






Hi Kelly, What have you tried so far? With Excel formulas alone I don't you would be abble to lock/unlock cells based on the precense of data in another cell.
– dmb
Dec 17 at 14:21














Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
– Kelly Moore
Dec 19 at 13:51






Hello, I worked on this a little more and I actually used an IF statement in Data validation =IF(ISBLANK(B2),"req number required",(ISTEXT(C2))) and added an Error alert. Seems to work ok and allow me to enter Text once B has been populated, but only Text, I can't input just numbers.... but this works for ma as I need to only enter text in the cells. thank you
– Kelly Moore
Dec 19 at 13:51












2 Answers
2






active

oldest

votes


















2














You can use data validation to prevent entering any values into cell C while cell B is empty.



Go to Data group in the ribbon - data validation




  • for "allow" select custom

  • unselect "ignore blank"

  • for formula enter:
    =OR(AND(A2="",B2=""),A2<>"")


Now trying to enter anything to B2 will give an error if A2 is empty. Note that there is no way to prevent typing in that cell, message will appear only when typing is finished (Enter pressed or trying to move to another cell).



Also note that message will appear only when you try to type to B2 while A2 is empty, if you delete content of A2 while B2 contains anything that will not trigger it, it would require another rule.



enter image description here






share|improve this answer





























    1














    You can use Excel's data validation features to display an alert message before the user enters text in column C. This will display an alert message, but it will not prevent the user from entering text.



    Steps:




    1. Select cells in column C you want to display the alert.

    2. On the Data ribbon, choose Data Validation > Data Validation....


    3. Choose the Input Message tab in the dialog. Here you can type a warning message that will display as tool-tip text when the user selects one the cells in column C.



      enter image description here




    4. Click OK. You will now see the warning message whenever one of the cells is selected.



      enter image description here




    This may not be as robust a solution as you wanted, but it may work well enough and is very easy to set up.






    share|improve this answer





















      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%2f1385256%2falerts-and-or-validation-in-excel%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      You can use data validation to prevent entering any values into cell C while cell B is empty.



      Go to Data group in the ribbon - data validation




      • for "allow" select custom

      • unselect "ignore blank"

      • for formula enter:
        =OR(AND(A2="",B2=""),A2<>"")


      Now trying to enter anything to B2 will give an error if A2 is empty. Note that there is no way to prevent typing in that cell, message will appear only when typing is finished (Enter pressed or trying to move to another cell).



      Also note that message will appear only when you try to type to B2 while A2 is empty, if you delete content of A2 while B2 contains anything that will not trigger it, it would require another rule.



      enter image description here






      share|improve this answer


























        2














        You can use data validation to prevent entering any values into cell C while cell B is empty.



        Go to Data group in the ribbon - data validation




        • for "allow" select custom

        • unselect "ignore blank"

        • for formula enter:
          =OR(AND(A2="",B2=""),A2<>"")


        Now trying to enter anything to B2 will give an error if A2 is empty. Note that there is no way to prevent typing in that cell, message will appear only when typing is finished (Enter pressed or trying to move to another cell).



        Also note that message will appear only when you try to type to B2 while A2 is empty, if you delete content of A2 while B2 contains anything that will not trigger it, it would require another rule.



        enter image description here






        share|improve this answer
























          2












          2








          2






          You can use data validation to prevent entering any values into cell C while cell B is empty.



          Go to Data group in the ribbon - data validation




          • for "allow" select custom

          • unselect "ignore blank"

          • for formula enter:
            =OR(AND(A2="",B2=""),A2<>"")


          Now trying to enter anything to B2 will give an error if A2 is empty. Note that there is no way to prevent typing in that cell, message will appear only when typing is finished (Enter pressed or trying to move to another cell).



          Also note that message will appear only when you try to type to B2 while A2 is empty, if you delete content of A2 while B2 contains anything that will not trigger it, it would require another rule.



          enter image description here






          share|improve this answer












          You can use data validation to prevent entering any values into cell C while cell B is empty.



          Go to Data group in the ribbon - data validation




          • for "allow" select custom

          • unselect "ignore blank"

          • for formula enter:
            =OR(AND(A2="",B2=""),A2<>"")


          Now trying to enter anything to B2 will give an error if A2 is empty. Note that there is no way to prevent typing in that cell, message will appear only when typing is finished (Enter pressed or trying to move to another cell).



          Also note that message will appear only when you try to type to B2 while A2 is empty, if you delete content of A2 while B2 contains anything that will not trigger it, it would require another rule.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 18 at 9:43









          Máté Juhász

          14.1k63150




          14.1k63150

























              1














              You can use Excel's data validation features to display an alert message before the user enters text in column C. This will display an alert message, but it will not prevent the user from entering text.



              Steps:




              1. Select cells in column C you want to display the alert.

              2. On the Data ribbon, choose Data Validation > Data Validation....


              3. Choose the Input Message tab in the dialog. Here you can type a warning message that will display as tool-tip text when the user selects one the cells in column C.



                enter image description here




              4. Click OK. You will now see the warning message whenever one of the cells is selected.



                enter image description here




              This may not be as robust a solution as you wanted, but it may work well enough and is very easy to set up.






              share|improve this answer


























                1














                You can use Excel's data validation features to display an alert message before the user enters text in column C. This will display an alert message, but it will not prevent the user from entering text.



                Steps:




                1. Select cells in column C you want to display the alert.

                2. On the Data ribbon, choose Data Validation > Data Validation....


                3. Choose the Input Message tab in the dialog. Here you can type a warning message that will display as tool-tip text when the user selects one the cells in column C.



                  enter image description here




                4. Click OK. You will now see the warning message whenever one of the cells is selected.



                  enter image description here




                This may not be as robust a solution as you wanted, but it may work well enough and is very easy to set up.






                share|improve this answer
























                  1












                  1








                  1






                  You can use Excel's data validation features to display an alert message before the user enters text in column C. This will display an alert message, but it will not prevent the user from entering text.



                  Steps:




                  1. Select cells in column C you want to display the alert.

                  2. On the Data ribbon, choose Data Validation > Data Validation....


                  3. Choose the Input Message tab in the dialog. Here you can type a warning message that will display as tool-tip text when the user selects one the cells in column C.



                    enter image description here




                  4. Click OK. You will now see the warning message whenever one of the cells is selected.



                    enter image description here




                  This may not be as robust a solution as you wanted, but it may work well enough and is very easy to set up.






                  share|improve this answer












                  You can use Excel's data validation features to display an alert message before the user enters text in column C. This will display an alert message, but it will not prevent the user from entering text.



                  Steps:




                  1. Select cells in column C you want to display the alert.

                  2. On the Data ribbon, choose Data Validation > Data Validation....


                  3. Choose the Input Message tab in the dialog. Here you can type a warning message that will display as tool-tip text when the user selects one the cells in column C.



                    enter image description here




                  4. Click OK. You will now see the warning message whenever one of the cells is selected.



                    enter image description here




                  This may not be as robust a solution as you wanted, but it may work well enough and is very easy to set up.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 17 at 16:07









                  Excellll

                  11k74162




                  11k74162






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f1385256%2falerts-and-or-validation-in-excel%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

                      Probability when a professor distributes a quiz and homework assignment to a class of n students.

                      Aardman Animations

                      Are they similar matrix