logo
search
Power Query Problems

How to Filter Excel Records by Multiple ZIP Codes Using Power Query

Camila MilosovichCamila Milosovich Oct 21, 2026 868 views

Question details

The user needs to return all matching Excel records from a member list based on a separate list of multiple ZIP codes, including handling duplicate entries.

How to Filter Excel Records by Multiple ZIP Codes Using Power Query
Product
Excel
Device & OS
Mac
Scenario
Merging a member list with a separate ZIP-code list to automatically filter and extract corresponding records.
Observed behavior
The user wants to return all matching records (including duplicates for the same ZIP code) using Power Query, but is unable to locate the 'From Table/Range' option in Excel for Mac.
Before you start

Ensure both your member list and ZIP-code list are organized without empty rows, and verify that the ZIP codes in both lists are formatted identically (e.g., both formatted as Text or both as Numbers) to ensure accurate matching.

Solution 1Recommended

Merge Tables using Power Query (Recommended)

Use Power Query's Inner Join feature to match and extract all related records from two tables based on a common ZIP code column.

This method is ideal for Windows users or Mac users with the latest Microsoft 365 updates that fully support Power Query. It creates a dynamic connection that can be refreshed instantly whenever your source data changes.

1
Convert data to Excel Tables

Select your member data range and go to Insert > Table. Name this table 'DataUpdate'. Repeat this process for your ZIP-code list and name it 'Zip'.

2
Load data into Power Query

Click on the 'DataUpdate' table, navigate to the Data tab on the ribbon, and select 'From Table/Range' to open the Power Query Editor. Load the 'Zip' table in the exact same way.

3
Merge the Queries

In the Power Query Editor, go to Home > Merge Queries > Merge Queries as New. Select 'DataUpdate' as the first table and 'Zip' as the second table.

4
Configure the Join settings

Click on the ZIP Code column in both table previews to establish the match. Under Join Kind, select 'Inner (only matching rows)' to ensure only members with matching ZIP codes are kept. Click OK.

5
Expand and Load

In the newly merged table, click the expand icon in the column header for the ZIP table to display the related data. Finally, click 'Close & Load' to output the filtered results to a new Excel worksheet.

Merge Tables using Power Query (Recommended)
Dynamic Refresh: If you add new members or update the ZIP-code list, simply right-click anywhere in your output table and select 'Refresh' to instantly update the filtered records.
Free Microsoft Office alternative

Use WPS Office as a Free Alternative for Data Analysis

If you are experiencing feature limitations or compatibility issues with Excel on Mac, WPS Office provides a free, lightweight, and highly compatible alternative. Enjoy familiar spreadsheet interfaces and powerful data functions without expensive subscriptions.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your Mac or PC.
  2. 2. Open your Spreadsheet: Launch WPS Spreadsheet and easily open your existing .xlsx files containing the ZIP-code data without any format loss.
  3. 3. Apply Filtering Functions: Utilize powerful built-in functions seamlessly to manipulate, filter, and extract your data.
Fully compatible with Microsoft Excel (.xlsx) and CSV formats.Lightweight installation and fast loading even with large datasets.Supports advanced dynamic array functions like FILTER and XLOOKUP.Familiar user interface ensuring seamless migration from Microsoft Office.
QA img-9

Frequently Asked Questions

Why is 'From Table/Range' missing in Excel for Mac?

Older versions of Excel for Mac have limited Power Query support compared to Windows. While newer Microsoft 365 versions on Mac have introduced more Power Query capabilities, users on older builds may need to rely on dynamic formulas like FILTER instead.

Will merging queries in Power Query duplicate my ZIP codes?

If your member list contains multiple people residing in the same ZIP code, performing an Inner Join in Power Query will correctly return all matching rows. It safely preserves the duplicate entries without corrupting your data structure.

How do I update the merged list when new ZIP codes are added?

Once your Power Query is set up and loaded to a worksheet, simply right-click anywhere inside the final output table and click 'Refresh'. Excel will run the query again and pull in the newest data from your source tables.

Can I filter by multiple conditions simultaneously in Power Query?

Yes. After merging the queries, you can click the filter dropdown arrows on any column header in the Power Query Editor to apply extra text, number, or logical filters before clicking 'Close & Load'.