For given Key Value pair find and replace all keys with corresponding values at once in Google Spreadsheet











up vote
0
down vote

favorite












Please let me know how do I achieve below output state in googlespreadsheet, for given key(Column3) and value(Column4) in below table. This is just a example I've file with huge records.



Input State :



Column1 Column2 Column3 Column4
123 123 ABC
123 456 DEF
123 789 GHI
456
456
456
789
789


Output State :



Column1 Column2 Column3 Column4
123 ABC 123 ABC
123 ABC 456 DEF
123 ABC 789 GHI
456 DEF
456 DEF
456 DEF
789 GHI
789 GHI


I've tried few hacks but didn't work. Dear excel experts please help here.



TIA










share|improve this question


























    up vote
    0
    down vote

    favorite












    Please let me know how do I achieve below output state in googlespreadsheet, for given key(Column3) and value(Column4) in below table. This is just a example I've file with huge records.



    Input State :



    Column1 Column2 Column3 Column4
    123 123 ABC
    123 456 DEF
    123 789 GHI
    456
    456
    456
    789
    789


    Output State :



    Column1 Column2 Column3 Column4
    123 ABC 123 ABC
    123 ABC 456 DEF
    123 ABC 789 GHI
    456 DEF
    456 DEF
    456 DEF
    789 GHI
    789 GHI


    I've tried few hacks but didn't work. Dear excel experts please help here.



    TIA










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Please let me know how do I achieve below output state in googlespreadsheet, for given key(Column3) and value(Column4) in below table. This is just a example I've file with huge records.



      Input State :



      Column1 Column2 Column3 Column4
      123 123 ABC
      123 456 DEF
      123 789 GHI
      456
      456
      456
      789
      789


      Output State :



      Column1 Column2 Column3 Column4
      123 ABC 123 ABC
      123 ABC 456 DEF
      123 ABC 789 GHI
      456 DEF
      456 DEF
      456 DEF
      789 GHI
      789 GHI


      I've tried few hacks but didn't work. Dear excel experts please help here.



      TIA










      share|improve this question













      Please let me know how do I achieve below output state in googlespreadsheet, for given key(Column3) and value(Column4) in below table. This is just a example I've file with huge records.



      Input State :



      Column1 Column2 Column3 Column4
      123 123 ABC
      123 456 DEF
      123 789 GHI
      456
      456
      456
      789
      789


      Output State :



      Column1 Column2 Column3 Column4
      123 ABC 123 ABC
      123 ABC 456 DEF
      123 ABC 789 GHI
      456 DEF
      456 DEF
      456 DEF
      789 GHI
      789 GHI


      I've tried few hacks but didn't work. Dear excel experts please help here.



      TIA







      excel google-sheets excel-formula






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      apandey846

      830919




      830919
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          In B2 put the following and fill down



          =iferror(vlookup(A1,$C$1:$D$3,2,false),"")


          enter image description here






          share|improve this answer

















          • 1




            Great! Thank you it worked as expected.
            – apandey846
            2 days ago











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


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238415%2ffor-given-key-value-pair-find-and-replace-all-keys-with-corresponding-values-at%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
          2
          down vote



          accepted










          In B2 put the following and fill down



          =iferror(vlookup(A1,$C$1:$D$3,2,false),"")


          enter image description here






          share|improve this answer

















          • 1




            Great! Thank you it worked as expected.
            – apandey846
            2 days ago















          up vote
          2
          down vote



          accepted










          In B2 put the following and fill down



          =iferror(vlookup(A1,$C$1:$D$3,2,false),"")


          enter image description here






          share|improve this answer

















          • 1




            Great! Thank you it worked as expected.
            – apandey846
            2 days ago













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          In B2 put the following and fill down



          =iferror(vlookup(A1,$C$1:$D$3,2,false),"")


          enter image description here






          share|improve this answer












          In B2 put the following and fill down



          =iferror(vlookup(A1,$C$1:$D$3,2,false),"")


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          QHarr

          25.2k81839




          25.2k81839








          • 1




            Great! Thank you it worked as expected.
            – apandey846
            2 days ago














          • 1




            Great! Thank you it worked as expected.
            – apandey846
            2 days ago








          1




          1




          Great! Thank you it worked as expected.
          – apandey846
          2 days ago




          Great! Thank you it worked as expected.
          – apandey846
          2 days ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238415%2ffor-given-key-value-pair-find-and-replace-all-keys-with-corresponding-values-at%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          Popular posts from this blog

          Florida Star v. B. J. F.

          Danny Elfman

          Lugert, Oklahoma