Power Query Problems

Combine Excel Tables by Week Without Macros Using Power Query

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

Combine names from multiple Excel tables when a Yes field is set and the records fall within the same timestamp week, without macros or gaps.

Combine Excel Tables by Week Without Macros Using Power Query
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
The user wants a consolidated list of qualifying names from several datasets for a given week.
Observed behavior
The desired result is a continuous list of names marked Yes for the selected week, without complex nested IF formulas.
Before you start

Ensure each source dataset has consistent column names for the name, Yes/No field, and timestamp, and format each range as an Excel table. Confirm that Power Query is available under Excel's Data tab and decide which day starts your week.

Solution 1Recommended

Append and filter Excel tables with Power Query

Use this method to create a refreshable, gap-free list of names for a selected week.

Append stacks rows from the source tables. Creating a week-start date from each timestamp lets you filter by week without requiring timestamps to match exactly.

1
Load each source table

Select a source table and choose Data > From Table/Range. In Power Query, check the column names and data types, then use Home > Close & Load > Close & Load To and select Only Create Connection. Repeat for each table.

2
Append the queries

Open a source query from Data > Queries & Connections. In Power Query, select Home > Append Queries > Append Queries as New, choose the source queries, and select OK.

3
Filter qualifying records

Open the filter on the Yes/No column and select Yes. Filter the name column to exclude blank or null values if needed.

4
Create a week-start column

Select Add Column > Custom Column. Name it Week Start and enter Date.StartOfWeek(Date.From([Timestamp]), Day.Monday), replacing Timestamp with your timestamp column name. This example uses Monday as the first day of the week.

5
Select the week and load

Filter Week Start to the Monday of the desired week, remove columns you do not need, and select Home > Close & Load to place the results in Excel. Use Data > Refresh All when source data changes.

Append and filter Excel tables with Power Query
Change the selected week: The week filter stays fixed until you edit it in Power Query. Change the filter and reload when you need a different week.
Free Microsoft Office alternative

Work with Excel tables in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing spreadsheet files. Its Microsoft Office format compatibility helps you move existing workbooks between applications; use Excel for the Power Query workflow described above.

Open and edit spreadsheets in the familiar table-based interface.Compatible with Microsoft Excel XLSX and XLS files.Free and lightweight for everyday spreadsheet work.Move existing Office files into WPS Office without starting from scratch.
microsoft office alternative - wps office

Frequently Asked Questions

Why are there gaps in my combined names list?

A formula that returns an empty string for nonmatching rows leaves those rows in place. In Power Query, filter the Yes/No field to Yes and exclude blank names before using Home > Close & Load.

Do the timestamps need to match exactly?

No. Add a week-start column using Date.StartOfWeek(Date.From([Timestamp]), Day.Monday), then filter that column to the desired Monday. Records on different days in that week will share the same week-start date.

Should I append or merge the tables?

Use Home > Append Queries to stack similar records into one list. Merge is for joining related rows by a key and can produce multiple matches when several records share the same week.

How do I update the result after adding source rows?

Add the rows inside the source Excel tables, then select Data > Refresh All. To show a different week, edit the Week Start filter in Power Query before refreshing.