Power Query Problems

Extract Music File Metadata with Excel Power Query

Huda QurayshiHuda Qurayshi Dec 2, 2026 869 views

Question details

Create a table of music files from multiple folders and extract available artist, song, and album information.

Extract Music File Metadata with Excel Power Query
Product
Microsoft Excel Power Query
Device & OS
Windows
Scenario
The user wants to collect music file details from folders and transform them into a single table.
Observed behavior
Power Query lists available file and folder properties, but does not automatically import custom music columns displayed in Windows Explorer.
Before you start

Identify a parent folder containing the music folders you want to query, and check how song, artist, and album names are organized in file names and paths. The extraction steps depend on consistent naming patterns.

Solution 1Recommended

Build a music file list from a parent folder in Power Query

Use this approach to combine file listings from subfolders and extract details already present in file names or folder paths.

The Folder connector lists files and available file system properties; it does not reproduce the columns configured in Windows Explorer. Music-specific tags such as track length may require another tool.

1
Connect to the folder

In Excel, select Data > Get Data > From File > From Folder. Choose the parent music folder, then select Transform Data to open Power Query Editor.

2
Filter music files

Use the filter on the Extension column to keep the file types you need, such as .mp3, .flac, or .wav. The folder listing includes files in subfolders.

3
Extract song and artist

If file names follow a pattern such as “song - artist,” select the Name column and use Transform > Split Column > By Delimiter. Remove the file extension as needed, and rename the resulting columns.

4
Extract the album folder

Select the Folder Path column and use Transform > Split Column > By Delimiter or Extract options to isolate the album folder, if your folder structure stores albums consistently.

5
Clean and load the table

Select unwanted columns and choose Home > Remove Columns. Check the results, then select Home > Close & Load to create the table in Excel.

Build a music file list from a parent folder in Power Query
Music tags may need a separate tool: If track length or embedded artist and album tags are not available in the folder listing, use a dedicated metadata tool or a suitable custom connector to retrieve them.
Free Microsoft Office alternative

Organize exported music metadata in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheet files. Open an exported music metadata table, organize its columns, and move between compatible Office formats; WPS does not fix Excel Power Query's metadata limitations.

Organize exported song, artist, and album details in a spreadsheetCompatible with Microsoft Excel formats such as XLSX and XLSFamiliar spreadsheet interface for an easier transitionFree and lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Why are my Windows Explorer music columns missing in Power Query?

The Power Query Folder connector returns available file and folder properties, not the custom column display configured in Windows Explorer. Extract details from names and paths or import an exported metadata table.

Does the Folder connector include music files in subfolders?

Yes. Select Data > Get Data > From File > From Folder and choose the parent folder. The resulting listing includes files in its subfolders, which you can filter by extension.

Can Power Query extract track length from music files?

Track length is not necessarily available in the Folder connector's file properties. A dedicated metadata tool or suitable custom connector may be needed to retrieve it.

How can I separate the song and artist from a file name?

In Power Query Editor, select the Name column and choose Transform > Split Column > By Delimiter. Use the separator in your file names, such as “ - ”, and remove the extension if needed.