To list the files inside a ZIP archive in Power Query, you use the Folder connector to read the ZIP as a folder, then expand the Content column to see the internal file table. Power Query treats a ZIP file like a folder container: when you connect to a folder that contains a ZIP, the navigation pane shows the ZIP as a folder you can drill into, and its files appear as rows with Name, Extension, Date accessed, Date modified, Date created, Attributes, and Folder Path columns. You do not need a separate unzip step or third-party tool. This works in Excel (Data > Get Data) and in Power BI Desktop (Home > Get data), and the menu labels can differ slightly by version and region.

What You'll Need

  • Excel 2016 or later, or Power BI Desktop, with the Power Query Editor available (in Excel it is under the Data tab; in Power BI it opens from Transform data).
  • The ZIP file saved in a local folder you can reach, or a SharePoint/OneDrive folder you have permission to read.
  • Basic familiarity with the Power Query Editor: the Queries pane on the left, the ribbon on top, and the formula bar.

Step-by-Step

  1. Put the ZIP in its own folder. Create a folder such as C:\Data\ZipList and place only the ZIP file you want to inspect inside it. This keeps the folder listing clean and avoids pulling in unrelated files.
  2. Open the Power Query Editor. In Excel, go to Data > Get Data > From File > From Folder. In Power BI Desktop, go to Home > Get data > Folder. The exact wording varies slightly between versions.
  3. Enter the folder path. Browse to C:\Data\ZipList (or paste the path) and click OK. If prompted about combining files, choose to transform the data rather than combine, so you can see the raw folder table first.
  4. Inspect the folder table. You should see one row for your ZIP file, with columns such as Content, Name, Extension, Date accessed, Date modified, Date created, Attributes, and Folder Path. The Content column holds the binary contents of the ZIP.
  5. Filter to the ZIP. Click the filter arrow on the Extension column and keep only .zip. If the ZIP is the only file in the folder, this is optional but harmless.
  6. Drill into the ZIP. Click the word Binary in the Content cell of the ZIP row (or use the drill-down button in the column header). Power Query opens a navigation view showing the ZIP as a folder with its internal files listed.
  7. Select the table of files. In the navigation pane, tick the checkbox next to the ZIP folder name (not an individual file) and click OK or Transform Data. This loads a table where each row is a file inside the ZIP, with columns like Name, Extension, Date accessed, Date modified, Date created, Attributes, and Folder Path.
  8. Clean up the columns. Remove any columns you do not need (right-click the column header > Remove). Rename the remaining ones for clarity, for example Name to File Name and Extension to File Type.
  9. Check the data types. Set Name and Extension to Text, and the date columns to Date/Time. Power Query usually detects these correctly, but verify by clicking the icon on each column header.
  10. Load the result. In Excel, choose Home > Close & Load to put the list on a worksheet or in the Data Model. In Power BI, choose Home > Close & Apply. You now have a refreshable list of the ZIP contents.

Common Mistakes

  • Pointing at the ZIP file instead of its folder. The From Folder connector needs a folder path. If you paste a path ending in .zip, the connection fails or returns nothing.
  • Choosing Combine Files too early. The combine prompt is designed for CSV and Excel files. For a ZIP, transform the data first and drill in manually so you can see the file list.
  • Filtering on the wrong column. Extension values include the dot (for example .zip). Filtering for zip without the dot returns no rows.
  • Forgetting that the list is a snapshot. The query reads the ZIP when it refreshes. If you add files to the ZIP later, refresh the query to see them.
  • Expecting to read file contents. Drilling into the ZIP gives you a file list, not the text inside each file. Reading contents requires a further step per file type.

Tips

  • Keep one ZIP per folder when you are learning. It makes the navigation view easier to read and prevents accidental combining.
  • Use the Folder Path column to confirm which archive a file came from when you later point the query at a folder with several ZIPs.
  • If you need the list to update automatically, store the ZIP in OneDrive or SharePoint and use the same From Folder connector with the web URL; refresh behaviour depends on your sign-in and permissions.
  • Add an Index column (Add Column > Index Column) if you want a stable row number for sorting or merging later.
  • Document the folder path in a cell or a query comment so the next person knows where the data comes from.

Troubleshooting

If the folder table is empty, check that the path is correct, that the ZIP is not open in another program, and that your account has read permission. If drilling into Content shows an error such as "DataFormat.Error" or "We couldn't parse the document", the ZIP may be corrupted or password-protected; Power Query cannot open encrypted archives, so remove the password in your zip tool first. If the navigation view lists the files but the table is blank after loading, confirm you selected the folder node rather than a single file, and check that no step in Applied Steps is filtering everything out. If refresh fails after the file was moved, update the folder path in the Source step. If the query is slow on a large archive, filter to the .zip extension before drilling in and remove unused columns as early as possible.

Frequently Asked Questions

Can Power Query open a password-protected ZIP?

No. Power Query cannot decrypt password-protected archives. Remove the password with your zip tool, save a new copy, and point the query at that copy.

Does this work in Excel on Mac?

The From Folder connector is available in Excel for Mac, but menu locations and some options differ from Windows. If a step is missing, use the Power Query Editor's Home tab and look for the Folder source under Get Data.

Will the list update when I add files to the ZIP?

Yes, after a refresh, provided the ZIP is replaced at the same path. Power Query re-reads the archive on each refresh.

Can I list files from several ZIPs at once?

Yes. Put all the ZIPs in one folder, connect with From Folder, filter Extension to .zip, and drill into each archive. The Folder Path column tells you which ZIP each file came from.

Why do I see a Binary value instead of file names?

The Content column stores each file as binary data. Clicking Binary drills into that item; the file names appear only after you expand the ZIP's internal table.

Can I read the text inside each file from the ZIP?

Not in one step. After listing the files, you would add a custom column that calls the appropriate parsing function for each file type, which is a separate and more advanced task.