Month end. The planned dates sit in the P6 baseline, percent complete came in on the site progress sheet, and actual cost is a ledger export by cost code. Three files, three keys, and the project manager wants one page. So you search for an earned value management Excel template, download one, and find three columns waiting for you to type PV, EV and AC. Getting those three numbers was the whole problem.
A project controls forum had the same question this week: how do you bring schedule, cost and progress together when each lives in a different tool? My answer is one table: a row per activity, one cell for the cut-off date, and a cost code on every row. Budget and dates come from the baseline, percent complete from the update, and actual cost from the ledger, added up by code. Planned value, earned value and the indices are then formulas. Nobody types them.
What an earned value management Excel template has to hold
Four sheets. Activities is the table: one row per activity from row 4, with the cut-off date in B1, named CutOff. Update and Ledger are pasted in as they come: Activity ID and percent complete in A and B of the first, cost code, posting date and amount in A to C of the second. Summary has one row per cost code, and it's the only sheet anyone else needs to read.
The columns on Activities:
- A to E, from the baseline. Activity ID, name, baseline start, baseline finish, budget. In a P6 layout the last three are BL Project Start, BL Project Finish and BL Project Total Cost. In a baseline XER the dates are
target_start_dateandtarget_end_dateon TASK, and the budget istarget_costadded up over the activity's TASKRSRC rows, plus its PROJCOST rows if the schedule carries expenses. - F, from the update. Percent complete, looked up by Activity ID:
=XLOOKUP($A4,Update!$A:$A,Update!$B:$B), or INDEX and MATCH before Excel 2021. No IFERROR around it. - G, from you. The cost code the accounts will post this activity's cost against. Many activities share one code.
- H and I. Planned value and earned value, both formulas.
The missing IFERROR is deliberate. An activity in the baseline and gone from the update was deleted, and #N/A is the right thing to see until someone explains it. The opposite case is quieter: an activity added after the baseline has no row here, so it earns nothing. List them on the page.
Budget is in money and comes from the baseline. The current budget moves every time someone edits a resource, and earned value needs a yardstick that stays put. If the programme isn't cost loaded, the same table works in labour hours. I worked an earned value example in hours for that case.
Two formulas per activity, then one row per code
1. Planned value, in H4
=IFERROR($E4*MAX(0,NETWORKDAYS.INTL($C4,MIN($D4,CutOff),1,Holidays))/NETWORKDAYS.INTL($C4,$D4,1,Holidays),0). The activity's budget, in proportion to the baseline working days gone by at the cut-off. The 1 means Saturday and Sunday off, and Holidays is a named list of dates. MAX(0, ...) covers activities that haven't reached their baseline start.
2. Earned value, in I4
=$E4*$F4. Baseline budget times percent complete.
3. The Summary row for each code
With the code in A4, budget is =SUMIFS(Activities!$E:$E,Activities!$G:$G,$A4). PV and EV are the same formula on columns H and I. Actual cost reads the ledger up to the cut-off: =SUMIFS(Ledger!$C:$C,Ledger!$A:$A,$A4,Ledger!$B:$B,"<="&CutOff).
4. The variances and indices
SV is EV minus PV and CV is EV minus AC. SPI is EV over PV, CPI is EV over AC, and the estimate at completion is budget over CPI, which assumes the rest of the work costs like the work so far.
Here's one code worked through, with illustration numbers. Cut-off Thursday 25 March 2027, Saturday and Sunday off:
- Raft formwork, 1 to 12 March, budget 40,000, complete. PV 40,000, EV 40,000.
- Raft rebar, 15 March to 2 April, budget 80,000, 50% complete. Nine of its 15 working days have gone, so PV is 48,000. EV is 40,000.
- Raft pour, 5 to 9 April, budget 30,000, not started. Nothing planned, nothing earned.
The ledger has 100,000 posted to the code up to the 25th, and another 15,000 dated the 29th that the formula leaves out. So PV is 88,000, EV is 80,000 and AC is 100,000. SPI 0.91, CPI 0.80, and an estimate at completion of 187,500 against a budget of 150,000.
Eight thousand behind the plan and twenty thousand over on cost. Neither figure was in any of the three files.
For the project line, add up the columns and divide the sums. Don't average the indices. Put a 5,000 fencing code at SPI 0.50 next to this one and the average says 0.70. The sums say 0.89.
Tip: Set B1 to a date after the last baseline finish, and total PV should equal total budget to the unit. If it comes up short, a baseline date has arrived as text and IFERROR has quietly written a zero.
Where the three sources don't join
The formulas take ten minutes. The joins are the job.
The key
The schedule knows Activity IDs. The ledger knows cost codes. Nobody posts an invoice to an activity. Column G is the bridge, and it only works in one direction: activities add up to codes.
Go the other way and the numbers turn to noise. Spread this code's 100,000 down its three activities by budget, and formwork shows a CPI of 1.50, rebar 0.75 and the pour 0.00. That's each activity's percent complete multiplied by 1.5. Spread it by earned value instead and every started row reads 0.80, the code's own figure repeated.
My view, and some cost engineers will disagree: CPI belongs at the level where cost is collected and no lower. I don't report it by activity.
Tip: If the cost codes don't follow the WBS, don't bend the WBS to fit. Hold them in a P6 activity code: assign it once, add the column to your layout, and column G arrives with every export.
The cut-off
Three dates have to be the same day: the data date in P6, the day site measured progress, and the last posting date you take from the ledger. P6's data date is a moment, not a day. Set at the start of 26 March, it means progress up to the end of the 25th, so the 25th goes in B1.
Cost lags behind work. Rebar fixed on the 18th earns value now, and the supplier's invoice may not post until next month. Until it does, CPI flatters the code. Either add the commercial team's accruals to the Ledger sheet as rows dated inside the period, or print "excluding accruals" next to the CPI.
And don't take AC from P6's actual cost columns unless somebody really posts the ledger into them. On most programmes those figures are actual units multiplied by a rate.
What percent complete means
EV is only as good as column F. P6 keeps a type for every activity in complete_pct_type. Physical (CP_Phys) is somebody's assessment of work in place. Duration (CP_Drtn) is time gone by. Units (CP_Units) follows the hours booked, so on those activities spending sits on both sides of your CPI.
What the template won't tell you
SPI can't see the critical path. Earn plenty on work that has float and it reads 1.0 while the finish date slips. It also drifts back to 1.0 as any job finishes, however late. Float is a separate check, and it's part of how I review a monthly schedule update in Excel.
Planned value is a straight line inside each activity. Fine for a two week pour sequence. Wrong for a six month activity carrying the whole steel package, and the fix there is to break the activity up.
And this is one cut-off. For the same figures period by period, the S curve in Excel build starts from the same first six columns.
After the first month the update is three pastes and one date: the update's percentages, the ledger, any accruals, and B1. If a number on Summary surprises you, look at the joins first. A code on the wrong activity or a cut-off that's a week out explains far more bad CPIs than the arithmetic ever does.