MUKESH.OSAutomation

Automation

Excel Automation

The unglamorous work that gives a month-end report its deadline back — recurring workbook cleanup, consolidation and validation, run on a schedule instead of by hand.

Portfolio demonstration — illustrative figures, real structure

The problem

Eighteen workbooks arrived from different teams in different shapes every month. Consolidating them took two days and the errors were only found after the pack had been circulated.

Who reads it

The reporting analyst who owned the consolidation, and the finance lead who signed off the output.

Decision it drives

Whether the month-end pack is safe to publish. Validation failures now surface before circulation rather than after.

Workbooks consolidated18per cycle, varied layouts
Rows processed124Kper cycle
Cycle time2 days → 53 minhand-run to scheduled
Exceptions caught7before publication, not after

The pipeline

Each stage writes a log and can be re-run on its own, so a failure costs one step rather than the whole cycle.

Collect Normalise layout Validate Consolidate Reconcile Publish

Validation sits before consolidation deliberately. Merging bad rows and then hunting for them is far more expensive than refusing them at the door.

Cycle time by stage

Minutes per stage, automated run.

20m15m10m5m0
CollectNormaliseValidateConsolidateReconcilePublish

Normalisation is the expensive stage because the source layouts are inconsistent. Standardising the templates upstream would cut it further — an organisational fix, not a technical one.

Validation rules

What the pipeline refuses to pass through.

RuleChecksOn failure
SchemaExpected columns present and typedReject file
CompletenessNo gaps in the reporting periodReject file
RangeValues inside plausible boundsQuarantine row
DuplicatesComposite key uniquenessQuarantine row
Cross-totalConsolidated total ties to source sumBlock publish

Rejecting a file is recoverable; publishing a wrong total is not. The severity of each rule reflects that asymmetry.

How it was built

The parts that carry over to a production deployment.

Layout normalisation

Source workbooks are mapped to a canonical schema rather than being edited into shape, so a supplier changing their template is a mapping change instead of a rewrite.

Idempotent stages

Every stage can be re-run without side effects, which is what makes recovering from a mid-cycle failure cheap.

Exception queue

Quarantined rows go to a review queue with the failing rule attached, rather than being dropped or silently coerced.

Audit trail

Each run logs inputs, row counts and rule outcomes, so a number in the published pack can be traced back to the file it came from.

Advanced ExcelVBAPythonPower QueryData validationScheduled jobs