Filter Excel table matching two columns values











up vote
0
down vote

favorite












I have an excel table I want to filter only the rows in which the value of the numeric column "customLabel" matches with one of the rows of another column in another google sheet.



Can I use the advanced filter function or should I write a custom function?



Thanks










share|improve this question


















  • 2




    Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
    – cybernetic.nomad
    Nov 8 at 18:16















up vote
0
down vote

favorite












I have an excel table I want to filter only the rows in which the value of the numeric column "customLabel" matches with one of the rows of another column in another google sheet.



Can I use the advanced filter function or should I write a custom function?



Thanks










share|improve this question


















  • 2




    Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
    – cybernetic.nomad
    Nov 8 at 18:16













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have an excel table I want to filter only the rows in which the value of the numeric column "customLabel" matches with one of the rows of another column in another google sheet.



Can I use the advanced filter function or should I write a custom function?



Thanks










share|improve this question













I have an excel table I want to filter only the rows in which the value of the numeric column "customLabel" matches with one of the rows of another column in another google sheet.



Can I use the advanced filter function or should I write a custom function?



Thanks







microsoft-excel csv






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 18:14









Raziel

1




1








  • 2




    Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
    – cybernetic.nomad
    Nov 8 at 18:16














  • 2




    Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
    – cybernetic.nomad
    Nov 8 at 18:16








2




2




Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
– cybernetic.nomad
Nov 8 at 18:16




Your question is likely to get downvoted unless you edit your question to show us sample data, expected outcome and what you've tried so far.
– cybernetic.nomad
Nov 8 at 18:16










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Without really seeing what you are looking at. If both brought into the spreadsheet (assuming this isn't an ongoing changing item) you could use conditional formatting asking Excel to highlight the duplicate values then using auto filter filter by colour.






share|improve this answer




























    up vote
    0
    down vote













    It sounds like you want to filter your first sheet for only values that are found in your second sheet?



    If that is the case, I would a create a new column in your first sheet, and enter a formula like:




    "=COUNTIF(Sheet2!B:B,Sheet1!A2)"




    The first argument points to your second sheet, and the second argument points to the first ID in your first sheet. Drag down the length of the column as far as you need.
    After this, you can filter your new column to exclude the zero value.



    Just change the cells in the above formula to point to where you want in the workbook.






    share|improve this answer























    • Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
      – Raziel
      Nov 9 at 10:50










    • Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
      – William O'Connor
      Nov 12 at 0:24










    • thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
      – Raziel
      Nov 13 at 1:02










    • No worries! I'll update my answer for any future users encountering the same problem.
      – William O'Connor
      Nov 14 at 2:09











    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%2f1373848%2ffilter-excel-table-matching-two-columns-values%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
    0
    down vote













    Without really seeing what you are looking at. If both brought into the spreadsheet (assuming this isn't an ongoing changing item) you could use conditional formatting asking Excel to highlight the duplicate values then using auto filter filter by colour.






    share|improve this answer

























      up vote
      0
      down vote













      Without really seeing what you are looking at. If both brought into the spreadsheet (assuming this isn't an ongoing changing item) you could use conditional formatting asking Excel to highlight the duplicate values then using auto filter filter by colour.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Without really seeing what you are looking at. If both brought into the spreadsheet (assuming this isn't an ongoing changing item) you could use conditional formatting asking Excel to highlight the duplicate values then using auto filter filter by colour.






        share|improve this answer












        Without really seeing what you are looking at. If both brought into the spreadsheet (assuming this isn't an ongoing changing item) you could use conditional formatting asking Excel to highlight the duplicate values then using auto filter filter by colour.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 8 at 19:25









        BradR

        364




        364
























            up vote
            0
            down vote













            It sounds like you want to filter your first sheet for only values that are found in your second sheet?



            If that is the case, I would a create a new column in your first sheet, and enter a formula like:




            "=COUNTIF(Sheet2!B:B,Sheet1!A2)"




            The first argument points to your second sheet, and the second argument points to the first ID in your first sheet. Drag down the length of the column as far as you need.
            After this, you can filter your new column to exclude the zero value.



            Just change the cells in the above formula to point to where you want in the workbook.






            share|improve this answer























            • Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
              – Raziel
              Nov 9 at 10:50










            • Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
              – William O'Connor
              Nov 12 at 0:24










            • thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
              – Raziel
              Nov 13 at 1:02










            • No worries! I'll update my answer for any future users encountering the same problem.
              – William O'Connor
              Nov 14 at 2:09















            up vote
            0
            down vote













            It sounds like you want to filter your first sheet for only values that are found in your second sheet?



            If that is the case, I would a create a new column in your first sheet, and enter a formula like:




            "=COUNTIF(Sheet2!B:B,Sheet1!A2)"




            The first argument points to your second sheet, and the second argument points to the first ID in your first sheet. Drag down the length of the column as far as you need.
            After this, you can filter your new column to exclude the zero value.



            Just change the cells in the above formula to point to where you want in the workbook.






            share|improve this answer























            • Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
              – Raziel
              Nov 9 at 10:50










            • Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
              – William O'Connor
              Nov 12 at 0:24










            • thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
              – Raziel
              Nov 13 at 1:02










            • No worries! I'll update my answer for any future users encountering the same problem.
              – William O'Connor
              Nov 14 at 2:09













            up vote
            0
            down vote










            up vote
            0
            down vote









            It sounds like you want to filter your first sheet for only values that are found in your second sheet?



            If that is the case, I would a create a new column in your first sheet, and enter a formula like:




            "=COUNTIF(Sheet2!B:B,Sheet1!A2)"




            The first argument points to your second sheet, and the second argument points to the first ID in your first sheet. Drag down the length of the column as far as you need.
            After this, you can filter your new column to exclude the zero value.



            Just change the cells in the above formula to point to where you want in the workbook.






            share|improve this answer














            It sounds like you want to filter your first sheet for only values that are found in your second sheet?



            If that is the case, I would a create a new column in your first sheet, and enter a formula like:




            "=COUNTIF(Sheet2!B:B,Sheet1!A2)"




            The first argument points to your second sheet, and the second argument points to the first ID in your first sheet. Drag down the length of the column as far as you need.
            After this, you can filter your new column to exclude the zero value.



            Just change the cells in the above formula to point to where you want in the workbook.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 14 at 2:11

























            answered Nov 9 at 0:53









            William O'Connor

            63




            63












            • Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
              – Raziel
              Nov 9 at 10:50










            • Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
              – William O'Connor
              Nov 12 at 0:24










            • thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
              – Raziel
              Nov 13 at 1:02










            • No worries! I'll update my answer for any future users encountering the same problem.
              – William O'Connor
              Nov 14 at 2:09


















            • Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
              – Raziel
              Nov 9 at 10:50










            • Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
              – William O'Connor
              Nov 12 at 0:24










            • thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
              – Raziel
              Nov 13 at 1:02










            • No worries! I'll update my answer for any future users encountering the same problem.
              – William O'Connor
              Nov 14 at 2:09
















            Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
            – Raziel
            Nov 9 at 10:50




            Hello, basically I have an excel sheet with various columns and another excel sheet with one column containing some IDs, I want to filter the first sheet using the values in the column in the second sheet to get just the rows containing those IDs. The values are numeric IDs.
            – Raziel
            Nov 9 at 10:50












            Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
            – William O'Connor
            Nov 12 at 0:24




            Hi, I may be misunderstanding your request, but it sounds like you want to filter your first sheet for only values that are found in your second sheet? If that is the case, I would a create a new column in your first sheet, and enter a formula like "=COUNTIF(Sheet2!B:B,Sheet1!A2)" - The first argument points to your second sheet, and the second argument points to the first ID in your first sheet - Then drag down. After this, you can filter your new column to exclude the zero value. Does that sound close to what you're trying to do?
            – William O'Connor
            Nov 12 at 0:24












            thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
            – Raziel
            Nov 13 at 1:02




            thank you, I found the solution yesterday and it was exactly what you wrote :) I used the COUNTIF function!
            – Raziel
            Nov 13 at 1:02












            No worries! I'll update my answer for any future users encountering the same problem.
            – William O'Connor
            Nov 14 at 2:09




            No worries! I'll update my answer for any future users encountering the same problem.
            – William O'Connor
            Nov 14 at 2:09


















             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1373848%2ffilter-excel-table-matching-two-columns-values%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

            Сан-Квентин

            Алькесар

            8-я гвардейская общевойсковая армия