Home › What We Do › Healthcare & science

Case study · Healthcare

How we used Excel to manage patient data in a hospital's diabetes research study

A teaching hospital's diabetes research team recorded each patient visit on an Excel proforma, but had no quick way to bring the results together for analysis. We improved the form within its existing design and built a data extractor that pulls every completed form into a single database, ready for charts and analysis.

Client
Teaching hospital diabetes clinic, London
Built with
Excel, VBA, pivot tables
Project size
12 hours, fixed price
Delivered
About two months

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 hospital was running a clinical research study into treatments and health outcomes for patients with diabetes. At each clinic visit, staff entered the results of patient observations, including blood results, medication and goals agreed with the patient, on an Excel proforma. The form also produced a letter to the patient's GP.

Each patient's results needed comparing with previous examinations, and the research team needed all the results in one place for analysis. Doing that by hand, form by form, wasn't practical.

Scoping: Work with the Design You Already Have

The research was already partly complete, so any solution had to work with the form design already in use. We compared older and newer versions of the form. In the older version medication had been typed freely, so it couldn't reliably be analysed. In the newer version, users chose specific drugs from lists. We recommended moving the small amount of older data across by hand rather than paying to extract data that couldn't be meaningfully searched.

The specification grew as we talked, including a request to use the system for every patient in the hospital. We were candid that an Excel form wouldn't be flexible enough to run hospital-wide, and introduced an online clinical forms provider that could take that on. For the research study itself, Excel was the right tool.

What We Built

  • Faster data entry. We added drop-down lists to the proforma so users could input data faster and more consistently, and fixed bugs in the existing form.
  • History for returning patients. Macros let users instantly move historic data for returning patients, so previous results are kept rather than overwritten.
  • Progression charts. Charts of HbA1c, cholesterol, LDL cholesterol and kidney function (GFR) against the date of each reading show how each patient is progressing.
  • An audit export. Each completed form can post its data to a shared file, which is created automatically if it doesn't exist.
  • The data extractor. At the click of a button, it opens every patient file in a folder and extracts the 150 data points from each into a single database. Records can be searched by NHS number or hospital number, and pivot tables and charts refresh automatically.

Keeping the Data Analysable

Some later requests would have made the data harder to analyse, such as showing progression charts within each row of results. We explained the trade-off. Keeping one row per patient visit and one column per measurement meant averages and trends could still be calculated across the whole study. Charts were provided alongside the data rather than squeezed into it.

The Result

150data points extracted from every patient form
1 clickto build the study database from a folder of forms
1 weekfrom approval to the first working extractor

Once users were entering data into a fixed form design, the researchers could look for patterns and trends across the whole study using Excel's analysis tools, rather than reading through individual forms.

Why Excel, and Not a Clinical Data System?

A clinical trial data system would have meant re-entering results already captured and retraining staff partway through the study. The team's form was already in Excel and working. Building the extractor around it protected the work already done and let the study continue without disruption.

For a hospital-wide system with many users, we recommended an online system instead, and said so before any money was spent.

Could This Work for Your Organisation?

The same approach suits any team that records observations on a form per person or per visit and needs to analyse them together: clinical researchers, care providers, clinics, universities and inspection teams. If your data is spread across hundreds of completed Excel forms, an extractor can build the database in seconds. Send us a blank copy of your form and we can usually get back to you with a fixed price within 24 hours.

Questions About Clinical and Research Data in Excel

Can Excel combine data from many completed forms?

Yes. A data extractor can open every form in a folder and copy each field into one row of a database, ready for analysis.

Can it work with our existing form?

Yes. In this project, we kept the form design already in use, because the study was partly complete, and added lists, macros and an export.

Can it show each patient's progression?

Yes. Charts of key measurements against the date of each reading showed how each patient was progressing.

Is Excel suitable for hospital-wide use?

Usually not. For many users across departments, an online system is more robust. We recommended one in this case before any work was done.

What does a data extractor 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 extracting and cleaning the patient records, we believe a similar project could now be delivered for $1,200–$1,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