How to Calculate OEE for a Mixed-Product Shift in Excel
Two products run on one machine during a shift. They have different ideal cycle times and there’s a changeover between them. If you average the two run percentages or drop the changeover row, you get a different shift OEE. A manufacturer raised this exact reporting question on Elsmar Cove.
Roll up productive minutes and planned minutes
Overall equipment effectiveness (OEE) can be calculated as fully productive time divided by planned production time. For each product run, multiply the first-pass good count by that product’s approved ideal cycle time. Then add those minutes and divide by the full planned time. Under the policy used here, changeovers inside planned production stay in the denominator. Scheduled breaks are already outside it. Vorne’s OEE calculation guide.
If you use production monitoring software, record sequential product runs as separate activities with their own cycle standards. Reconcile the exported activities against the shift schedule before rolling them up. Check start and end times for gaps or overlaps. The worked example covers one machine with sequential runs and a complete, non-overlapping shift log. OEE Coach’s guide to multiple runs in one shift.
Copy the synthetic shift log
Import this fictional CSV into A1:I4. All times are minutes, including the ideal cycle time per piece. The last column records the standard version approved for that run. Count a piece as good only if it passed the first time. Changeover has zero output and requires no cycle standard.
SegmentID,Activity,Product,PlannedMin,RunMin,TotalPieces,FirstPassGood,IdealMinPerPiece,StandardID
R01,Production,Part A,100,80,80,40,0.5,A-v1
R02,Production,Part B,300,250,100,90,2,B-v1
C01,Changeover,,50,0,0,0,,
Check the rows before adding the minutes
Enter these formulas in J2 and K2, then fill down through row 4. J flags duplicate IDs, missing or inconsistent times and counts, and unusable production standards. It also flags a run whose implied ideal time for all pieces exceeds recorded run time, with a small tolerance for rounding. K returns good pieces multiplied by ideal minutes per piece or zero for a valid changeover. Check that the planned minutes represent the full shift before reporting the result.
=IF(OR(A2="",COUNTIF($A$2:$A$4,A2)<>1,COUNT(D2:G2)<>4,D2<=0,E2<0,E2>D2,F2<0,G2<0,G2>F2),"Review",IF(B2="Changeover",IF(AND(E2=0,F2=0,G2=0),"OK","Review"),IF(AND(B2="Production",C2<>"",I2<>"",ISNUMBER(H2),H2>0),IF(F2*H2<=E2+0.0000001,"OK","Review"),"Review")))
=IF(J2<>"OK","",IF(B2="Changeover",0,G2*H2))
Put these formulas in M2 through M4. They return fully productive minutes, planned minutes, and shift OEE. Format M4 as a percentage. Update the ranges if you add segments.
=IF(COUNTIF(J2:J4,"OK")<>ROWS(J2:J4),"Review",SUM(K2:K4))
=SUM(D2:D4)
=IF(ISNUMBER(M2),M2/M3,"Review")
Explain the gap between 40%, 44.4% and 50%
Part A contributes 40 × 0.5 = 20 fully productive minutes. Part B contributes 90 × 2 = 180. The shift total is 200 ÷ (100 + 300 + 50), or 44.4%. Leaving out the changeover gives 200 ÷ 400, or 50%. Averaging the production-run percentages gives (20% + 60%) ÷ 2, or 40%, because it weights a 100-minute run and a 300-minute run equally and omits the changeover.
The first-pass piece-count yield is 130 ÷ 180, or 72.2%. If you split the same time-based OEE into availability, performance, and quality, the quality factor for this reconciliation is 200 ÷ 240, or 83.3%. That is the ideal time for good pieces divided by the ideal time for all pieces. The two products have different cycle times, so those two quality figures answer different questions.
Find the segment behind a dashboard discrepancy
In Jolene.pro, ask which rows contribute productive minutes, which rows contribute planned minutes, and whether the reported total includes the changeover. Use the cited cells to check the cycle standard on each run and the planned minutes on the changeover row. Save the check to rerun on the next comparable shift export. A live Jolene.pro result was not verified for this example.
For a closer look at counts and retests, see how to calculate first-pass yield from a test log.