Home › What We Do › Dashboards & reports

Case study · Quarrying

How we automated cost and tonnage analysis for a quarry in Excel

The manager of a quarry and wharf needed year-to-date costs against budget for each site, and tonnages by product from the dispatch system. We fixed and rebuilt the workbooks that produced both, so a month's figures come out in minutes. The work grew into a series of reporting tools for the region, including presentations built straight from Excel.

Client
Quarrying business, UK
Built with
Excel formulas, VBA, PowerPoint automation
Project size
3.5 hours for the first jobs
In use
3+ years, with 12 further projects

Need Something Similar?

Describe your problem for a free, fixed-price quote within 24 hours.

We reply within 24 hours and treat all client data as sensitive. See our privacy policy.

The Challenge

The unit manager ran a quarry and a wharf, three cost centres in all, and reported each month on costs against budget and the tonnages leaving each site. The figures came from two systems: the company's accounting system for costs, and a dispatch system that recorded every load sold.

Neither export matched the way the business reported. The accounting system put some costs on different lines from the budget, so rent, rates and standing charges arrived together while the budget listed them separately. And the dispatch system recorded loads by blend, while the manager needed tonnages by the products that make up each blend. Spreadsheets existed for both jobs, but one gave the wrong totals for date ranges and the other was slow and unreliable.

What We Built

  • Year-to-date cost analysis. Choosing a month gives actual costs against budget and forecast for each site, year to date. Production budgets are totalled the same way, so the cost per tonne is always compared like with like.
  • Accounts mapped to budget lines. Lines that the accounting system combines, such as fixed production costs and personnel costs, are mapped onto the right budget lines for the two sites that need it, while the third site keeps its own layout.
  • An explanation, not a black box. The manager asked how the new formulas worked, so we explained the lookup technique used, making the workbook easier to maintain.
  • Load-out data log. We checked the existing import of dispatch files against a manual calculation, found it correct, fixed the formulas that totalled blends across date ranges, and built a table that splits each blend's tonnage into its component products.
  • A faster, sturdier import. While working on it, we found the import code would slow down badly as the log grew and stopped at 1,500 rows, so with the manager's agreement we rewrote it. It also runs whatever the workbook is called, so a copy can be saved for each period.

Coping with Changing Exports

Shortly after go-live, the quarry upgraded their dispatch system, the software that produces the files our workbook imports. Its new text files sometimes shifted a row out of line when a time stamp was a digit short, and later it switched to exporting Excel files. Each time, we updated our import macro to read the new format, making it pick out each load by the field that matters rather than assuming a fixed pattern of rows.

The Result

Same dayfrom quote to approval for the data log
3 years onthe original cost analysis workbook was still being extended
14projects in total, over four years

A month's cost report and tonnage split now come out in minutes, with costs on the right budget lines and blends broken into products. The original cost analysis workbook was enhanced again the following year and revised for the region two years after that.

The work then broadened to the wider region: consolidating and filtering accounts for different sites, importing and comparing site data, an actions workbook, a project pipeline summary, a capital expenditure overview and a contract database. We also automated presentations, generating PowerPoint slides directly from Excel charts and, later, producing the monthly variance report presentation automatically.

Why Excel, and Not a Reporting Tool?

Large companies often have business intelligence tools, but they are usually set up centrally and slow to change for one site's needs. This manager needed reports shaped around their own sites and budget lines, using exports they could download themselves. Excel was already where the numbers were analysed, and a well-built workbook could follow the business's own mapping rules exactly.

The catch is that workbooks fed by exports depend on those exports staying the same. When a source system changes, the import needs a small update, as happened here twice in the first few weeks.

Could This Work for Your Business?

The same approach suits any operation that reports on costs and output from system exports: quarries, mines, manufacturing plants, depots, farms and multi-site businesses. If you copy accounts into a budget template or total production by hand each month, a workbook can map and summarise it for you. Send us examples of your exports and report, and we can usually get back to you with a fixed price within 24 hours.

Questions About Cost and Production Reporting in Excel

Can Excel map our accounting system's lines onto our budget layout?

Yes. A mapping can send each account line to the right budget line, combining or splitting them as needed, and different sites can follow different rules.

Can it turn dispatch or weighbridge exports into tonnages by product?

Yes. A macro can import the export, total loads for any date range and split blended products into their components using your recipe proportions.

What happens when our system's export format changes?

The import needs updating to match. In this project, the dispatch system changed twice in a few weeks, and each change was handled with a small update.

Can Excel create PowerPoint slides from its charts?

Yes. A macro can copy charts and figures into a PowerPoint template, so a monthly presentation is ready as soon as the numbers are in.

What does a reporting workbook like this cost?

We quote a fixed price after a free scoping call, and you only pay once you are happy with the finished work. This project was completed before AI. With its assistance in reconciling the cost and tonnage data, we believe a similar project could now be delivered for $400–$500.

Have a Spreadsheet Problem Like This?

Describe it in a few lines. We'll reply with a fixed-price quote within 24 hours.

Get my free quote