How to convert a Primavera P6 XER file to Excel
To read a Primavera P6 schedule in Excel, convert the .xer to an .xlsx workbook in which every P6 internal id is replaced by what P6 shows: activity IDs, WBS paths, calendar, resource and code names. The free tool here does it in your browser: one row per activity with its dates, durations and float in days, constraints, predecessors and successors, activity codes and user-defined fields as columns, and sheets for relationships, WBS, resources, assignments, expenses, calendars and code values. Dates are real Excel dates, so sorting, filters and pivot tables work.
Open the free schedule check (open the XER, then press Download for Excel (.xlsx))
Steps
- In P6, export the project as XER (File, Export, Primavera PM XER), or use the file you were sent.
- Open it on the tool page. If the file holds several projects, pick one in the project list.
- Press Download for Excel (.xlsx). Tick the box below it to add every XER table as it is, one sheet each, under P6's own field names.
- Open the file in Excel, LibreOffice Calc or Google Sheets. Each sheet's header row is frozen and has filters on.
What is in the workbook
| Sheet | One row per | Columns |
|---|---|---|
| Activities | Activity | Project, WBS code path and name, activity ID and name, type, status, calendar, original and remaining duration (days), % complete, start and finish, actual, early, late and planned dates, total and free float (days), longest path, primary and secondary constraints, predecessors and successors written as A1010 FS+2d, the recomputed dates and float with a Float Agrees column, one column per activity code type, one per activity user-defined field |
| Relationships | Link | Predecessor and successor ID and name, type, lag in days and hours, project and status of each end |
| WBS | WBS element | Code path, name, parent, level, number of activities |
| Resources | Resource | Resource ID, name, labour, nonlabour or material, parent resource, calendar, units per hour, unit of measure |
| Assignments | Resource on an activity | Budgeted, actual, remaining and at-completion units and cost, dates, resource curve |
| Expenses | Expense item | Activity, item, cost category, budgeted, actual, remaining and at-completion cost, accrual |
| Calendars | Calendar | Name, global, project or resource, hours per day and week, default, activities on it |
| Activity codes | Code value | Code type, value, description, parent value, activities holding it |
How it was tested
On six public P6 files exported from P6 versions 5.0 to 24.12 (21,758 activities, 56,666 relationships), a separate reader written in Python, sharing no code with the tool, parsed each XER on its own and opened each workbook with openpyxl. It compared every activity's ID, name, status, eight stored dates, durations, float, activity code values and user-defined field values, every relationship and resource assignment, and every value of every raw table: 6,239,763 of 6,239,763 values were equal. Details are in the project's eval/ notes.
Things to know
- Days follow each activity's calendar. P6 can be set to show days on a fixed hours-per-day instead; the hours are in the XER sheets if you need them.
- Start and Finish are the actual dates once the activity has started, else the early dates, as in P6's Start and Finish columns.
- Long text over Excel's 32,767-character cell limit (a notebook pasted into a field) is cut, and the tool says how many cells were.
For Microsoft Project, the same page writes Microsoft Project XML instead (how that conversion works).
Questions
Can Excel open an XER file directly?
It opens as text, but not usefully: an XER holds a dozen or more P6 tables one after another, each row tagged %R, and every link between them is an internal number (a predecessor is task_id 4177, not activity A1010). Convert it to a workbook first, with each table on its own sheet and the numbers replaced by names.
Why are durations and float in days and not hours?
P6 stores every duration, lag and float in hours. The workbook divides by the hours per day of each activity's own calendar, as P6 shows them by default, so a 10-hour-a-day calendar's 50 hours read as 5 days. The Relationships sheet keeps each lag in hours too.
What are the Recomputed columns?
The tool runs its own critical path from the logic, calendars, constraints and progress in the file and writes those dates beside the ones P6 stored. Float Agrees says whether P6's stored total float matches. A no usually means a duration, lag or link was edited after P6 last scheduled the file.
Is the file uploaded?
No. The workbook is written in your browser tab and saved straight to your computer. There is no server, account or upload.
More guides
- How to convert a P6 XML file to XER
- How to find redundant logic in a P6 schedule
- How to run a DCMA 14-point schedule assessment, check by check
- How to open an XER file without Primavera P6
- How to convert a P6 XER file to Microsoft Project
- How to review a contractor's monthly P6 schedule update
- How to write a monthly construction schedule narrative
- How to find critical path drag in a P6 schedule
- How to assess a schedule against the GAO Schedule Assessment Guide
- How to run a collapsed as-built delay analysis
- How to run a time impact analysis on a P6 schedule
- How to run a Monte Carlo schedule risk analysis on a P6 schedule
- How to run an as-planned vs as-built schedule analysis
- How to split concurrent delay between owner and contractor
- How to review the calendars in a P6 schedule
- How to check a P6 schedule against the contract specification
- How to break down a DCMA assessment by subcontractor or WBS