DatasetsExcel Guides

How to Count Return Visits Once and Link Them to the Original Repair in Excel

A technician returns for the same fault. The booking export records the visit, and a child work order records its relationship to the original repair. Add both rows as visits and the report counts the same trip twice. Count only child orders and a return kept on the original order disappears.

This synthetic workbook checks visit identity and explicit parent links. It keeps known linked returns separate from visits whose original repair cannot yet be established.

Download the return visits and original repairs workbook. All records are invented for this test. No customer or technician data is included.

The public problem behind the example

In an archived Dynamics Community discussion, a practitioner asks how a follow-up work order relates to the original and why a work order can have several bookings. It raises a reporting question: which records describe the visit, and which describe the relationship between jobs?

Microsoft’s work-order and booking lifecycle documentation distinguishes those lifecycles and explains that several bookings can belong to one work order. That does not make every additional booking a same-issue return. The example below uses reviewed reasons and explicit supplied parent links. It does not assume a particular system fills a parent field automatically.

Decide what one visit means first

In this single-company example, each unique booking ID represents one physical visit. A work-order header supplies context, not an extra visit. If your export has several resource bookings for one trip, establish a canonical visit ID before applying this rule.

The original work-order register is in Records!A10:C14. The booking export is in Records!A19:E24. The inclusive cutoff is Visits!C4, November 24, 2026 at 00:00 UTC. Only completed visits at or before that time qualify for the completed-return check.

Follow the visit, then resolve its original repair

Booking Evidence Decision
B-00 Records!A19:E19: initial visit on WO-10 Initial visit, excluded from returns.
B-01 Records!A20:E20: completed same-issue visit on WO-12. Records!A11:C11 explicitly links WO-12 to WO-10; A10:C10 declares WO-10 an original repair. One return linked to WO-10. The child order adds no second visit.
B-02 Records!A21:E21: completed same-issue visit kept on WO-10. Records!A10:C10 declares that order an original repair. Another return linked to WO-10, even without a child order.
B-03 Records!A22:E22: completed visit with reviewed reason Planned parts Planned return, excluded from same-issue returns.
B-04 Records!A23:E23: completed same-issue visit on WO-99. Records!B14 is blank and C14 is No. Review parent link. Neither an explicit parent nor a declaration that WO-99 is original is available.
B-05 Records!A24:E24: scheduled visit after the cutoff Not completed, excluded.

Two known returns do not establish a complete total

The independently calculated answer is two known linked return visits affecting one original repair, WO-10. The unresolved completed visit is B-04. It could change the return count and the number of affected originals once its evidence is corrected. The workbook therefore reports known subtotals and leaves the complete totals as n.a..

Output Cell Result
Known same-issue returns Visits!C5 2
Known affected repairs Visits!C6 1
Unresolved booking rows Visits!H4 1
Complete return count Visits!H5 n.a.
Complete affected count Visits!H6 n.a.

How the workbook checks the records

The Visits sheet links to the original records, preserves blank parents and rejects missing visit dates. It requires unique visit IDs and a unique matching work order before counting a completed same-issue return. A declared original with no parent resolves to itself. A non-original order can resolve through one explicit parent only when that parent uniquely identifies a declared original with no further parent.

Missing, duplicate, contradictory or deeper links go to review. The output does not infer relationships from order numbering. Correct the evidence in Records rather than overwriting a derived answer in Visits.

A simple subtotal formula is =COUNTIFS(J10:J15,"Counted return"). The order register summary then counts those visits by resolved original. The complete totals stay unavailable whenever a booking row requires review. The example uses fixed ranges for five orders and six bookings; extend every dependent range together for a larger export.

Checks before using your own export

  • Confirm whether a booking ID represents a visit, a resource allocation or something else.
  • Keep the reviewed return reason. A Completed status alone does not establish a repeat fault.
  • Validate parent links and original-repair declarations before aggregating.
  • Keep unresolved rows visible beside known subtotals.
  • Use a consistent cutoff and timezone.

This is a visit-identity and parent-link check. It does not calculate first-time-fix rates or apply a callback window. Those require a separate definition of eligible repairs, observation period and reasons.

What was tested in Jolene

Tested November 24, 2026. An independent local calculation and 1,260 assertions across 36 workbook states checked the formulas, including duplicate IDs, missing dates, changed parents, deeper links, reordered bookings and cutoff boundaries.

In a separate Jolene public-file test, Jolene fetched the exact downloadable workbook, reported 9,384 bytes and SHA-256 0601628c295ee0154a84d85d2390c2c91bbd454ec44a1fdd0af745adbd1c9a8e, and reconstructed the answer from original Records cells and Visits!C4. Its two known linked returns, one known affected original and one unresolved visit matched the independent result. The reported source-cell values were checked against the saved workbook.

The native upload reached ready status with four extracted tables. In the native-only test, Jolene could access the work-order and booking tables but reported that the original cell references, rule notes and cutoff were unavailable. It withheld the requested counts. Native exact-cell verification remains pending. The public-file result should not be read as a successful native-upload test.

Try the question on your own workbook in Jolene.pro: Which completed same-issue visits can be linked to an original repair by the reporting cutoff, and which records still need review? Check the cited records and keep unresolved rows visible.

Leave a comment