Unpivot Project Gate Date Columns in Excel Power Query
Question details
Transform separate project gate date columns, such as GateA, GateB, and GateC, into a normalized table with ProjectName, GateType, and GateDate fields.

- Product
- Microsoft Excel Power Query
- Device & OS
- not provided
- Scenario
- A worksheet contains one project per row and a separate date column for each project gate. The goal is to create a refreshable, row-based data table for reporting or analysis.
- Observed behavior
- The source data is arranged with multiple gate names as column headers instead of one GateType column and one GateDate column.
Make sure the source range has headers, including ProjectName and the gate-date columns, and convert it to an Excel table if it is not already one. Confirm that the gate values are stored as dates rather than text before loading the data into Power Query.
Unpivot GateA, GateB, and GateC Columns in Power Query
Use this recommended method when you need a refreshable normalized project-gate table from a structured Excel source table.
Unpivoting turns each gate-date column into two fields: one field for the original gate column name and another for its date value. Keep ProjectName selected as the identifier column so it is repeated for each gate record.
Click any cell in the source Excel table, then select Data > From Table/Range. In the Create Table dialog, confirm that My table has headers is selected, then choose OK.
In Power Query Editor, select the GateA, GateB, and GateC column headers. Hold Ctrl while selecting if the columns are not adjacent.
Select Transform > Unpivot Columns. Power Query creates an Attribute column containing the gate names and a Value column containing the dates.
Double-click Attribute and rename it GateType. Rename Value to GateDate, then select GateDate and choose Transform or Home > Data Type > Date if needed.
Select Home > Close & Load, or select Close & Load To to choose an existing worksheet, a new worksheet, or a connection-only load.

Use a Microsoft 365 Dynamic Array Formula for a One-Time Reshape
Use this option only when Power Query is unavailable or when you need a formula-driven result that updates directly in the worksheet.
Use WPS Office for Compatible Project Gate Date Workbooks
Power Query is a Microsoft Excel feature, but WPS Office is a free, lightweight alternative for opening, reviewing, editing, and sharing project gate schedules stored in common Excel formats. Its familiar spreadsheet interface helps teams move existing workbooks with minimal disruption.

Frequently Asked Questions
Should I select ProjectName before choosing Unpivot Columns?
No. Select only the gate-date columns, such as GateA, GateB, and GateC, then choose Transform > Unpivot Columns. Power Query keeps ProjectName as the identifier column automatically.
How do I remove rows where a project gate has no date?
After unpivoting, open the filter on the GateDate column in Power Query Editor and clear the null option. Then select Home > Close & Load to load only records with dates.
Why does Power Query display GateDate as text instead of a date?
Select the GateDate column, then choose Transform > Data Type > Date. If conversion errors appear, check the source cells for mixed date formats or text values that do not represent valid dates.
How can I refresh the unpivoted project gate table after source data changes?
Update the original Excel table, then select Data > Refresh All. If you add new project rows, ensure they are added inside the original Excel table so Power Query includes them on refresh.
Can I unpivot all columns except ProjectName?
Yes. Select the ProjectName column in Power Query Editor, then choose Transform > Unpivot Other Columns. This is useful when new gate columns may be added later.




