The contractor's November update finishes nine working days later than October's, and the narrative says "minor resequencing in Zone B." That's all it says. You have both XER files, no comparison tool on this laptop, and a progress meeting on Thursday. So you compare two XER files the manual way, in Excel. It takes an afternoon the first time and a lot less after that.

The short answer: put each file's TASK table on its own sheet, match the rows on task_code (the Activity ID), and line up the fields you care about side by side with a flag wherever they differ. Then do the same for the relationships, after translating TASKPRED's internal numbers into Activity IDs. You end up with every added, deleted and changed activity, and every link that moved, in one workbook.

Get the TASK table out of each XER

An XER is a plain text file, so you don't need P6 to open it. Open one in Notepad and you'll find a stack of tables separated by tabs. A line starting %T names a table. The %F line under it lists the field names. Every %R line after that is one row, until the next %T starts the next table.

Find the line that reads %T followed by TASK on its own, not TASKPRED or TASKRSRC. Copy from the %F line below it down to the last %R row before the next table, and paste into cell A1 of an empty sheet. Excel splits tab separated text into columns on paste, so the field names land in row 1 and each activity gets its own row. Delete column A, which only holds the markers, press Ctrl+T to make it a table, and name the table Prev. Do the same with the other file and call it Curr.

If you do have P6, its own spreadsheet export is another route in. The XER works on any machine, though, and it gives you P6's own field names, which is what every formula below uses.

Check the proj_id column before going further. One XER can hold several projects, and Activity IDs only have to be unique inside a project. More than one value means you filter down to the project you're actually reviewing.

Tip: Look at the task_code column straight after pasting. Excel converts anything that looks like a number or a date, so an Activity ID of 0100 arrives as 100 and 1-2 turns into a date. If your IDs look like that, format that column as Text and paste again.

Match on Activity ID, never on task_id

This is the step that sinks most homemade comparisons, because TASK has two columns that both look like the activity's identity.

task_id is the number P6's database gives each activity internally. task_code is the Activity ID you see in the Activities window. Only the second one is safe to match on. The internal number changes when a project is copied or imported into another database, and building each month's update as a copy of last month's project is common practice. Match on task_id and the comparison can tell you that every activity was deleted and replaced by a new one.

Technically true. Completely useless.

The same trap sits in clndr_id. To find out whether an activity's calendar changed, look the ID up in that file's CALENDAR table and compare clndr_name, not the number.

Compare two XER files field by field

Start a third sheet called Diff. In Microsoft 365, one formula in A2 lists every Activity ID from both files exactly once:

=UNIQUE(VSTACK(Prev[task_code],Curr[task_code]))

In older versions, paste both columns one under the other and use Remove Duplicates. In column B, flag the scope changes:

=IF(COUNTIF(Prev[task_code],A2)=0,"Added",IF(COUNTIF(Curr[task_code],A2)=0,"Deleted",""))

Every field you compare then gets three columns: last month, this month, and a flag. For original duration, C2 is =XLOOKUP($A2,Prev[task_code],Prev[target_drtn_hr_cnt],""), D2 is the same against Curr, and E2 is =C2<>D2. Filter E to TRUE and you're reading only what changed.

These are the fields I pair up every time:

  • target_drtn_hr_cnt, the original duration. On a baselined job it shouldn't move much, so every change is a question.
  • remain_drtn_hr_cnt. Read it against the time between the two data dates, which sit in each file's PROJECT table as last_recalc_date. If 20 working days passed and the remaining duration fell by 40 hours on an 8 hour calendar, that activity lost three weeks while "progressing".
  • status_code, act_start_date and act_end_date. An actual date that changes after it was reported means somebody rewrote history.
  • cstr_type and cstr_date. New constraints hold dates in place and rarely make it into the narrative.
  • Finish, built as act_end_date where there is one and early_end_date where there isn't, so finished and unfinished work compare like for like.

Leave the hours as hours while you compare. Hours against hours is exact, and it doesn't care whether a calendar changed underneath. Convert to days only for the write-up, using each activity's own calendar (day_hr_cnt in the CALENDAR table). A 900 hour activity on a 10 hour calendar is 90 days, not the 112.5 you get by dividing by 8.

One field will mislead you if you let it. total_float_hr_cnt is blank on completed activities, and a lookup that lands on an empty cell returns 0. So an activity that finished this month looks as if it lost all its float and went critical. Drop anything with a status_code of TK_Complete in this month's file before you compare float.

Relationships need one extra step

Logic lives in the TASKPRED table, and that's usually where the explanation for a slip is hiding. Pull it out of each file the same way, into tables called PrevLinks and CurrLinks.

The catch: TASKPRED doesn't store Activity IDs. It stores task_id and pred_task_id, the internal numbers you just stopped trusting. Inside one file they're consistent, though, so translate them there. In PrevLinks, add a column with =XLOOKUP([@pred_task_id],Prev[task_id],Prev[task_code]) and another for the successor, then repeat in CurrLinks against Curr.

Now build one key per link by joining predecessor, successor and type, like A1040|A1050|PR_FS. Keep the type in the key. P6 lets you draw more than one relationship between the same two activities, an SS with an FF being the usual pair, and without the type one of them vanishes from your comparison.

With the keys in place it's the same pattern as before. A key in CurrLinks that isn't in PrevLinks is a new link. The reverse is a deleted one. Same key with a different lag_hr_cnt is a changed lag. A link that went from FS to SS shows up as one deletion plus one addition, which is honest: the old relationship is gone. Lags are stored in hours as well, and which calendar those hours count on is its own question, covered in the setting that decides which calendar a lag uses in P6.

Read the inputs before the dates

Most comparison reports I've been handed open with a list of finish dates, sorted by how far they moved. I think that's backwards. The finish date is where a change shows up, not where it happened.

So I read the Diff sheet in this order. Deleted and new links first. Then original durations, calendars and constraints. Then actual dates that changed after they were reported, and percent complete that jumped without the hours to match (a worked example of earned value in hours shows how I test that). The dates come last.

By the time I reach them, most of the movement already has a cause next to it. Whatever's left unexplained is your question for Thursday, and written down with Activity IDs it's a much harder question to wave away.

For the review itself I keep a short list of the five things I check on every monthly update. This method finds what changed. It won't tell you whether the change was justified. That part still needs the site diary and someone who was there.

Next month you paste the new blocks into the same tables, extend the formulas if the list grew, and get straight to reading.