If cell B1=1 then DELETE cell A1 (excel 2003 formula) - How to do it?











up vote
0
down vote

favorite












I work with Excel 2003.



If cell B1=1 then DELETE cell A1,
and if cell B=0 then UNCHANGED.



How can I do this?



Example:
http://oi33.tinypic.com/mwsm03.jpg



Many thanks :)










share|improve this question




























    up vote
    0
    down vote

    favorite












    I work with Excel 2003.



    If cell B1=1 then DELETE cell A1,
    and if cell B=0 then UNCHANGED.



    How can I do this?



    Example:
    http://oi33.tinypic.com/mwsm03.jpg



    Many thanks :)










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I work with Excel 2003.



      If cell B1=1 then DELETE cell A1,
      and if cell B=0 then UNCHANGED.



      How can I do this?



      Example:
      http://oi33.tinypic.com/mwsm03.jpg



      Many thanks :)










      share|improve this question















      I work with Excel 2003.



      If cell B1=1 then DELETE cell A1,
      and if cell B=0 then UNCHANGED.



      How can I do this?



      Example:
      http://oi33.tinypic.com/mwsm03.jpg



      Many thanks :)







      microsoft-excel-2003 worksheet-function






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 24 '13 at 7:44

























      asked Apr 24 '13 at 7:38









      Etan

      17115




      17115






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You cannot delete a value in a cell with a formula in another cell. That kind of job requires VBA.



          You could have a worksheet change event evaluate column B. If a value in column B is changed by user input, the cell in colum A in the same row can be treated accordingly. For example



          Option Explicit

          Private Sub Worksheet_Change(ByVal Target As Range)
          If Not Intersect(Target, Range("B:B")) Is Nothing Then
          If Target = 1 Then
          Range("A" & Target.Row).Clear
          End If
          End If
          End Sub


          Right-click the sheet tab, select "View Code" and paste the above code into the code window.



          Another possibility would be to create a helper column that reflects the values of column A depending on the values in another column. Insert a column between A and B and then use something like this in the (now) column B, starting in B1



          =if(C1=1,"",A1)



          Then you can hide column A if desired.






          share|improve this answer























          • There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
            – Etan
            Apr 24 '13 at 10:44












          • By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
            – Etan
            Apr 24 '13 at 10:54












          • Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
            – Etan
            Apr 24 '13 at 10:59






          • 1




            The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
            – teylyn
            Apr 24 '13 at 11:14












          • If you can only use formulas, you will need to use helper columns. I've updated my answer above.
            – teylyn
            Apr 24 '13 at 11:20


















          up vote
          0
          down vote













          I know I'm late to the party, but another way would be to create a new column (let's say you have A column with your data, B column with your # identifier, and C as your formula column).



          column A   | Column B | Column C

          Banana | 1 | (empty for now)

          Phone | 0 | (empty for now)

          Cheesecake | 3 | (empty for now)


          From here, you'd do C1 with a formula of



          =IF(B1=1,"",IF(B1=0,A1,"Value in B not 0 or 1"))


          Essentially, if B1 is 1, it'll create a blank cell. If it's not 1, then it'll move on to see if it's 0. If it's 0, then it'll copy the contents of A1. If it's anything else than 0 or 1, you'll get the message that it's not 0 or 1. You can do whatever you like in that "catch". If you want the cell to stay exactly the same if it's not 0 or 1, you could shorten the formula to do something like if it's 1, then "", otherwise same value in A.






          share|improve this answer



















          • 1




            Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
            – fixer1234
            Mar 16 at 3:07












          • the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
            – fixer1234
            Mar 16 at 3:07













          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',
          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%2f586953%2fif-cell-b1-1-then-delete-cell-a1-excel-2003-formula-how-to-do-it%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








          up vote
          3
          down vote



          accepted










          You cannot delete a value in a cell with a formula in another cell. That kind of job requires VBA.



          You could have a worksheet change event evaluate column B. If a value in column B is changed by user input, the cell in colum A in the same row can be treated accordingly. For example



          Option Explicit

          Private Sub Worksheet_Change(ByVal Target As Range)
          If Not Intersect(Target, Range("B:B")) Is Nothing Then
          If Target = 1 Then
          Range("A" & Target.Row).Clear
          End If
          End If
          End Sub


          Right-click the sheet tab, select "View Code" and paste the above code into the code window.



          Another possibility would be to create a helper column that reflects the values of column A depending on the values in another column. Insert a column between A and B and then use something like this in the (now) column B, starting in B1



          =if(C1=1,"",A1)



          Then you can hide column A if desired.






          share|improve this answer























          • There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
            – Etan
            Apr 24 '13 at 10:44












          • By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
            – Etan
            Apr 24 '13 at 10:54












          • Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
            – Etan
            Apr 24 '13 at 10:59






          • 1




            The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
            – teylyn
            Apr 24 '13 at 11:14












          • If you can only use formulas, you will need to use helper columns. I've updated my answer above.
            – teylyn
            Apr 24 '13 at 11:20















          up vote
          3
          down vote



          accepted










          You cannot delete a value in a cell with a formula in another cell. That kind of job requires VBA.



          You could have a worksheet change event evaluate column B. If a value in column B is changed by user input, the cell in colum A in the same row can be treated accordingly. For example



          Option Explicit

          Private Sub Worksheet_Change(ByVal Target As Range)
          If Not Intersect(Target, Range("B:B")) Is Nothing Then
          If Target = 1 Then
          Range("A" & Target.Row).Clear
          End If
          End If
          End Sub


          Right-click the sheet tab, select "View Code" and paste the above code into the code window.



          Another possibility would be to create a helper column that reflects the values of column A depending on the values in another column. Insert a column between A and B and then use something like this in the (now) column B, starting in B1



          =if(C1=1,"",A1)



          Then you can hide column A if desired.






          share|improve this answer























          • There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
            – Etan
            Apr 24 '13 at 10:44












          • By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
            – Etan
            Apr 24 '13 at 10:54












          • Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
            – Etan
            Apr 24 '13 at 10:59






          • 1




            The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
            – teylyn
            Apr 24 '13 at 11:14












          • If you can only use formulas, you will need to use helper columns. I've updated my answer above.
            – teylyn
            Apr 24 '13 at 11:20













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You cannot delete a value in a cell with a formula in another cell. That kind of job requires VBA.



          You could have a worksheet change event evaluate column B. If a value in column B is changed by user input, the cell in colum A in the same row can be treated accordingly. For example



          Option Explicit

          Private Sub Worksheet_Change(ByVal Target As Range)
          If Not Intersect(Target, Range("B:B")) Is Nothing Then
          If Target = 1 Then
          Range("A" & Target.Row).Clear
          End If
          End If
          End Sub


          Right-click the sheet tab, select "View Code" and paste the above code into the code window.



          Another possibility would be to create a helper column that reflects the values of column A depending on the values in another column. Insert a column between A and B and then use something like this in the (now) column B, starting in B1



          =if(C1=1,"",A1)



          Then you can hide column A if desired.






          share|improve this answer














          You cannot delete a value in a cell with a formula in another cell. That kind of job requires VBA.



          You could have a worksheet change event evaluate column B. If a value in column B is changed by user input, the cell in colum A in the same row can be treated accordingly. For example



          Option Explicit

          Private Sub Worksheet_Change(ByVal Target As Range)
          If Not Intersect(Target, Range("B:B")) Is Nothing Then
          If Target = 1 Then
          Range("A" & Target.Row).Clear
          End If
          End If
          End Sub


          Right-click the sheet tab, select "View Code" and paste the above code into the code window.



          Another possibility would be to create a helper column that reflects the values of column A depending on the values in another column. Insert a column between A and B and then use something like this in the (now) column B, starting in B1



          =if(C1=1,"",A1)



          Then you can hide column A if desired.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 24 '13 at 11:19

























          answered Apr 24 '13 at 8:24









          teylyn

          16.6k22438




          16.6k22438












          • There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
            – Etan
            Apr 24 '13 at 10:44












          • By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
            – Etan
            Apr 24 '13 at 10:54












          • Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
            – Etan
            Apr 24 '13 at 10:59






          • 1




            The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
            – teylyn
            Apr 24 '13 at 11:14












          • If you can only use formulas, you will need to use helper columns. I've updated my answer above.
            – teylyn
            Apr 24 '13 at 11:20


















          • There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
            – Etan
            Apr 24 '13 at 10:44












          • By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
            – Etan
            Apr 24 '13 at 10:54












          • Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
            – Etan
            Apr 24 '13 at 10:59






          • 1




            The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
            – teylyn
            Apr 24 '13 at 11:14












          • If you can only use formulas, you will need to use helper columns. I've updated my answer above.
            – teylyn
            Apr 24 '13 at 11:20
















          There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
          – Etan
          Apr 24 '13 at 10:44






          There is still a way to somehow do something like this with a formula? (Somehow trick on him) [because in my work I can only use formula]
          – Etan
          Apr 24 '13 at 10:44














          By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
          – Etan
          Apr 24 '13 at 10:54






          By the way: I found a formula that does something similar, so seems logical to me possible to do what I wanted. ---> Delete A1 cell if B1 is empty: =IF(ISBLANK(B1),"",A1)
          – Etan
          Apr 24 '13 at 10:54














          Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
          – Etan
          Apr 24 '13 at 10:59




          Or possible to combine it with formula ---> =RIGHT(A1, LEN(A1)-1)
          – Etan
          Apr 24 '13 at 10:59




          1




          1




          The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
          – teylyn
          Apr 24 '13 at 11:14






          The formula =IF(ISBLANK(B1),"",A1) will not delete the value in cell A1. It will show or not show the value of A1 in the cell where the formula resides. No formula in any cell will change the value in A1. Any formula that changes A1 must be stored in A1. But you cannot have a value AND a formula in A1. Again, you can not change a cell value with a formula in another cell. You may want to re-think your data layout. Maybe you can show the desired result in another column.
          – teylyn
          Apr 24 '13 at 11:14














          If you can only use formulas, you will need to use helper columns. I've updated my answer above.
          – teylyn
          Apr 24 '13 at 11:20




          If you can only use formulas, you will need to use helper columns. I've updated my answer above.
          – teylyn
          Apr 24 '13 at 11:20












          up vote
          0
          down vote













          I know I'm late to the party, but another way would be to create a new column (let's say you have A column with your data, B column with your # identifier, and C as your formula column).



          column A   | Column B | Column C

          Banana | 1 | (empty for now)

          Phone | 0 | (empty for now)

          Cheesecake | 3 | (empty for now)


          From here, you'd do C1 with a formula of



          =IF(B1=1,"",IF(B1=0,A1,"Value in B not 0 or 1"))


          Essentially, if B1 is 1, it'll create a blank cell. If it's not 1, then it'll move on to see if it's 0. If it's 0, then it'll copy the contents of A1. If it's anything else than 0 or 1, you'll get the message that it's not 0 or 1. You can do whatever you like in that "catch". If you want the cell to stay exactly the same if it's not 0 or 1, you could shorten the formula to do something like if it's 1, then "", otherwise same value in A.






          share|improve this answer



















          • 1




            Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
            – fixer1234
            Mar 16 at 3:07












          • the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
            – fixer1234
            Mar 16 at 3:07

















          up vote
          0
          down vote













          I know I'm late to the party, but another way would be to create a new column (let's say you have A column with your data, B column with your # identifier, and C as your formula column).



          column A   | Column B | Column C

          Banana | 1 | (empty for now)

          Phone | 0 | (empty for now)

          Cheesecake | 3 | (empty for now)


          From here, you'd do C1 with a formula of



          =IF(B1=1,"",IF(B1=0,A1,"Value in B not 0 or 1"))


          Essentially, if B1 is 1, it'll create a blank cell. If it's not 1, then it'll move on to see if it's 0. If it's 0, then it'll copy the contents of A1. If it's anything else than 0 or 1, you'll get the message that it's not 0 or 1. You can do whatever you like in that "catch". If you want the cell to stay exactly the same if it's not 0 or 1, you could shorten the formula to do something like if it's 1, then "", otherwise same value in A.






          share|improve this answer



















          • 1




            Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
            – fixer1234
            Mar 16 at 3:07












          • the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
            – fixer1234
            Mar 16 at 3:07















          up vote
          0
          down vote










          up vote
          0
          down vote









          I know I'm late to the party, but another way would be to create a new column (let's say you have A column with your data, B column with your # identifier, and C as your formula column).



          column A   | Column B | Column C

          Banana | 1 | (empty for now)

          Phone | 0 | (empty for now)

          Cheesecake | 3 | (empty for now)


          From here, you'd do C1 with a formula of



          =IF(B1=1,"",IF(B1=0,A1,"Value in B not 0 or 1"))


          Essentially, if B1 is 1, it'll create a blank cell. If it's not 1, then it'll move on to see if it's 0. If it's 0, then it'll copy the contents of A1. If it's anything else than 0 or 1, you'll get the message that it's not 0 or 1. You can do whatever you like in that "catch". If you want the cell to stay exactly the same if it's not 0 or 1, you could shorten the formula to do something like if it's 1, then "", otherwise same value in A.






          share|improve this answer














          I know I'm late to the party, but another way would be to create a new column (let's say you have A column with your data, B column with your # identifier, and C as your formula column).



          column A   | Column B | Column C

          Banana | 1 | (empty for now)

          Phone | 0 | (empty for now)

          Cheesecake | 3 | (empty for now)


          From here, you'd do C1 with a formula of



          =IF(B1=1,"",IF(B1=0,A1,"Value in B not 0 or 1"))


          Essentially, if B1 is 1, it'll create a blank cell. If it's not 1, then it'll move on to see if it's 0. If it's 0, then it'll copy the contents of A1. If it's anything else than 0 or 1, you'll get the message that it's not 0 or 1. You can do whatever you like in that "catch". If you want the cell to stay exactly the same if it's not 0 or 1, you could shorten the formula to do something like if it's 1, then "", otherwise same value in A.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 16 at 1:50









          phuclv

          8,87063788




          8,87063788










          answered Mar 15 at 23:10









          RpTheHotrod

          1




          1








          • 1




            Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
            – fixer1234
            Mar 16 at 3:07












          • the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
            – fixer1234
            Mar 16 at 3:07
















          • 1




            Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
            – fixer1234
            Mar 16 at 3:07












          • the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
            – fixer1234
            Mar 16 at 3:07










          1




          1




          Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
          – fixer1234
          Mar 16 at 3:07






          Welcome to Super User. Your approach is already covered in teylyn's answer, although you have a more correct version: consideration of B1=0, and explanation of how it works. Note, though, that this general approach may not work (the question doesn't contain enough information to know for the OP's case): 1. If col A contains formulas rather than hard-coded values, you can only reproduce the result shown in A, not the formula. As the question is written, the cell becomes empty with the desired action. With this solution, the formula can produce a new value if (cont'd)
          – fixer1234
          Mar 16 at 3:07














          the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
          – fixer1234
          Mar 16 at 3:07






          the underlying conditions change. 2. If the OP requires the original cell to be where the action is, you would need to either move columns around (same weakness as #1), or copy, paste-value. Copy/paste would take you back to needing VBA, anyway, and copying a null isn't the same as an empty cell, which could potentially affect other formulas. Suggesting a workaround or alternate approach is fine, but it would be helpful to include any caveats about how the result could be different based on conditions not stated in the question. But kudos for improving on teylyn's suggestion.
          – fixer1234
          Mar 16 at 3:07




















          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%2f586953%2fif-cell-b1-1-then-delete-cell-a1-excel-2003-formula-how-to-do-it%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido