Copy data from conditional formatted cells to new tab based on the conditional formatting color in Excel











up vote
0
down vote

favorite












Okay so I'm new to all this- please help me if there's a better way to do this... currently trying to make changes to an existing spreadsheet and I can't figure out how to accomplish what I want...



Tab 1 accounts for different numbers and their assignments, Tab 2 rearranges that data for a printable page, and Tab 3 has a list of all the numbers we have to account for, and currently uses conditional formatting to do so. (Green if the number is accounted for on Tab 1, Red if not)



What I am trying to accomplish is create a list of all the numbers NOT accounted for (Red conditionally formatted cells on tab 3) to show up in any form on Tab 2. I started messing around with the =mycolor and IF functions, but I found that only works with explicit formatting of the cell, not the conditional formatting I am using to account for the numbers.



Do I need to change how my spreadsheet is accounting for the numbers from Tab 1 instead of conditional formatting? If so what would be the best way to go about this? If there's a way to do this with conditional formatting, how would I go about copying data based on the conditional formatting of certain cells?



Also, ideally I want this to be done without having to play a macro. I'm trying to make this as stupid simple for the end user as possible... but if there's no way to do it without recording a macro then that's what I'll end up doing.



Thanks a bunch in advance...










share|improve this question







New contributor




David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    Okay so I'm new to all this- please help me if there's a better way to do this... currently trying to make changes to an existing spreadsheet and I can't figure out how to accomplish what I want...



    Tab 1 accounts for different numbers and their assignments, Tab 2 rearranges that data for a printable page, and Tab 3 has a list of all the numbers we have to account for, and currently uses conditional formatting to do so. (Green if the number is accounted for on Tab 1, Red if not)



    What I am trying to accomplish is create a list of all the numbers NOT accounted for (Red conditionally formatted cells on tab 3) to show up in any form on Tab 2. I started messing around with the =mycolor and IF functions, but I found that only works with explicit formatting of the cell, not the conditional formatting I am using to account for the numbers.



    Do I need to change how my spreadsheet is accounting for the numbers from Tab 1 instead of conditional formatting? If so what would be the best way to go about this? If there's a way to do this with conditional formatting, how would I go about copying data based on the conditional formatting of certain cells?



    Also, ideally I want this to be done without having to play a macro. I'm trying to make this as stupid simple for the end user as possible... but if there's no way to do it without recording a macro then that's what I'll end up doing.



    Thanks a bunch in advance...










    share|improve this question







    New contributor




    David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Okay so I'm new to all this- please help me if there's a better way to do this... currently trying to make changes to an existing spreadsheet and I can't figure out how to accomplish what I want...



      Tab 1 accounts for different numbers and their assignments, Tab 2 rearranges that data for a printable page, and Tab 3 has a list of all the numbers we have to account for, and currently uses conditional formatting to do so. (Green if the number is accounted for on Tab 1, Red if not)



      What I am trying to accomplish is create a list of all the numbers NOT accounted for (Red conditionally formatted cells on tab 3) to show up in any form on Tab 2. I started messing around with the =mycolor and IF functions, but I found that only works with explicit formatting of the cell, not the conditional formatting I am using to account for the numbers.



      Do I need to change how my spreadsheet is accounting for the numbers from Tab 1 instead of conditional formatting? If so what would be the best way to go about this? If there's a way to do this with conditional formatting, how would I go about copying data based on the conditional formatting of certain cells?



      Also, ideally I want this to be done without having to play a macro. I'm trying to make this as stupid simple for the end user as possible... but if there's no way to do it without recording a macro then that's what I'll end up doing.



      Thanks a bunch in advance...










      share|improve this question







      New contributor




      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Okay so I'm new to all this- please help me if there's a better way to do this... currently trying to make changes to an existing spreadsheet and I can't figure out how to accomplish what I want...



      Tab 1 accounts for different numbers and their assignments, Tab 2 rearranges that data for a printable page, and Tab 3 has a list of all the numbers we have to account for, and currently uses conditional formatting to do so. (Green if the number is accounted for on Tab 1, Red if not)



      What I am trying to accomplish is create a list of all the numbers NOT accounted for (Red conditionally formatted cells on tab 3) to show up in any form on Tab 2. I started messing around with the =mycolor and IF functions, but I found that only works with explicit formatting of the cell, not the conditional formatting I am using to account for the numbers.



      Do I need to change how my spreadsheet is accounting for the numbers from Tab 1 instead of conditional formatting? If so what would be the best way to go about this? If there's a way to do this with conditional formatting, how would I go about copying data based on the conditional formatting of certain cells?



      Also, ideally I want this to be done without having to play a macro. I'm trying to make this as stupid simple for the end user as possible... but if there's no way to do it without recording a macro then that's what I'll end up doing.



      Thanks a bunch in advance...







      excel vba conditional-formatting






      share|improve this question







      New contributor




      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 4 at 9:29









      David Weibel

      1




      1




      New contributor




      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      David Weibel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
          Extending that, as per my comment... index the missing values (col A=):



          =IF(C3>0,SUM(C$1:C3),"")


          Now use a new pair of columns to grab the missing values screenshot
          And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)



          =IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")





          share|improve this answer























          • I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
            – David Weibel
            Nov 4 at 10:29












          • OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
            – RichardBJ
            Nov 4 at 11:12












          • Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
            – RichardBJ
            Nov 4 at 11:53











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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
          });


          }
          });






          David Weibel is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139370%2fcopy-data-from-conditional-formatted-cells-to-new-tab-based-on-the-conditional-f%23new-answer', 'question_page');
          }
          );

          Post as a guest
































          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
          Extending that, as per my comment... index the missing values (col A=):



          =IF(C3>0,SUM(C$1:C3),"")


          Now use a new pair of columns to grab the missing values screenshot
          And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)



          =IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")





          share|improve this answer























          • I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
            – David Weibel
            Nov 4 at 10:29












          • OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
            – RichardBJ
            Nov 4 at 11:12












          • Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
            – RichardBJ
            Nov 4 at 11:53















          up vote
          0
          down vote













          What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
          Extending that, as per my comment... index the missing values (col A=):



          =IF(C3>0,SUM(C$1:C3),"")


          Now use a new pair of columns to grab the missing values screenshot
          And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)



          =IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")





          share|improve this answer























          • I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
            – David Weibel
            Nov 4 at 10:29












          • OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
            – RichardBJ
            Nov 4 at 11:12












          • Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
            – RichardBJ
            Nov 4 at 11:53













          up vote
          0
          down vote










          up vote
          0
          down vote









          What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
          Extending that, as per my comment... index the missing values (col A=):



          =IF(C3>0,SUM(C$1:C3),"")


          Now use a new pair of columns to grab the missing values screenshot
          And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)



          =IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")





          share|improve this answer














          What I would do is add a column to tab three that is a missing/not missing column (=column C in my mock up below). Missing = 1 accounted for =0. (That can either be achieved by the same formula as used to give the red/green OR a vlookup() function). Therefore for each red row there will be a 1 alongside.
          Extending that, as per my comment... index the missing values (col A=):



          =IF(C3>0,SUM(C$1:C3),"")


          Now use a new pair of columns to grab the missing values screenshot
          And use a lookup function to line up the missing values (col G)... I only went up to 5 (col f)



          =IFERROR(VLOOKUP(F3,A$3:B$6,2,FALSE),"")






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 4 at 12:03

























          answered Nov 4 at 9:55









          RichardBJ

          563




          563












          • I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
            – David Weibel
            Nov 4 at 10:29












          • OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
            – RichardBJ
            Nov 4 at 11:12












          • Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
            – RichardBJ
            Nov 4 at 11:53


















          • I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
            – David Weibel
            Nov 4 at 10:29












          • OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
            – RichardBJ
            Nov 4 at 11:12












          • Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
            – RichardBJ
            Nov 4 at 11:53
















          I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
          – David Weibel
          Nov 4 at 10:29






          I like the idea of using a vlookup function but I haven't been able to make it work for this in particular- I want to avoid the end user having to sort missing/accounted for numbers at the end, which is actually what they're using now (sort by color) Thanks for the input
          – David Weibel
          Nov 4 at 10:29














          OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
          – RichardBJ
          Nov 4 at 11:12






          OK so the other thing I’ve done is to make sure all the hits are indexed, by counting all the hit above? This “index” then goes in the first column (insert a column). Now the red values are indexed. Then you set up another sheet which has col a as incrementing numbrs from 1 to x. Then you use vlookup again to look up that index in your previous sheet and retuns the associated red number. It requires you know the max possible number of red numbers. If the index is not found it will return an error, so you can embed the lookup in an iF error function?
          – RichardBJ
          Nov 4 at 11:12














          Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
          – RichardBJ
          Nov 4 at 11:53




          Hi again David, I just amended my previous answer to show that. It is difficult to convey this in Excel compared to a scripting language! Regards, R.
          – RichardBJ
          Nov 4 at 11:53










          David Weibel is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          David Weibel is a new contributor. Be nice, and check out our Code of Conduct.













          David Weibel is a new contributor. Be nice, and check out our Code of Conduct.












          David Weibel is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139370%2fcopy-data-from-conditional-formatted-cells-to-new-tab-based-on-the-conditional-f%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini