• Advanced Filter? or code to pull a subset

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Advanced Filter? or code to pull a subset

    Author
    Topic
    #459587

    I have been given a workbook with two worksheets. One sheet contains data in all 65,536 rows (sheetA).
    The other sheet has 4,048 rows of data (sheetB). Both worksheets are formatted the same and have the same column headings. Sheet A contains all the sheetB records as well as other records.

    I would like to filter file A using File B, thereby ending up with a list of records showing what is in Sheet A that is not in Sheet B

    I tried using the advanced filter, but apparently I’m not doing it right. Maybe a macro would be better.

    I thought about combining the lists and filtering for unique values, but since sheetA already uses all 65,536 rows, then I can’t add more to it.

    Any thoughts?

    Viewing 0 reply threads
    Author
    Replies
    • #1159236

      On which column or columns do you want to match?

      • #1159237

        column A

        • #1159239

          Try this:

          – Create a copy of Sheet A.
          – Click anywhere in the data on the copy of Sheet A.
          – Select Data | Filter | Advanced Filter…
          – Click in the Criteria box.
          – Activate Sheet B.
          – Select the data in column A.
          – Click OK.
          – You will now have filtered the matching data on the copy of Sheet A.
          – Select everything except the column headers in row 1.
          – Press Delete.
          – You have now deleted the matching data.
          – Select Data | Filter | Show All Data.
          – You’ll see only the non-matching data.
          – Select the entire sheet and sort on column A.

          • #1159354

            That did work, Hans! Thank you. I was trying the advanced filter, but I couldn’t get it to work. I think I was doing it backwards. It worked with your instructions.

    Viewing 0 reply threads
    Reply To: Advanced Filter? or code to pull a subset

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: