An internal web app instead of Excel: when spreadsheets stop coping
Signs that tracking work in shared spreadsheets has started slowing things down, how an internal service beats a spreadsheet, and why a first version in Django often takes less work than you would expect.
Alexei Sergeev3 min read
Almost every company has a spreadsheet that an important process depends on: requests, equipment records, a field visit schedule, a client list. At first it is convenient: built in an evening, and everyone knows how to use it. Problems begin when many people work with the spreadsheet and money depends on it being right.
Signs the spreadsheet is already in the way
Several people edit at once, and changes get lost or overwritten.
There is no way to tell who changed a value and when, or to get the old one back.
Everyone sees everything: a manager sees salaries, a contractor sees the client list.
People type anything into cells: dates in different formats, statuses with typos, and reports are calculated by hand.
Data has to be copied by hand from the spreadsheet into other systems and back.
There is a main copy and several outdated ones, and nobody is sure which is correct.
How an internal service is better
An internal web service is the same spreadsheet, but with rules. A date field accepts only a date, the status is chosen from a list, and required fields cannot be left empty. Each employee has their own login and their own permissions. Every change is recorded in the history. Data can be sent to and pulled from other systems automatically through an API.
Most importantly, the process is built into the software: a request cannot move to "done" without the assignee signing off, and the manager gets notified about overdue tasks.
Why it does not have to be slow or expensive
For a first version, many companies do not need a complex interface. Django has a built-in admin panel: from a description of the data, it builds lists with filters and search, edit forms, permissions and a change log by itself. Here, for example, is a description of a simple request tracker:
requests/models.py
from django.conf import settings
from django.db import models
class Request(models.Model):
class Status(models.TextChoices):
NEW = "new", "New"
IN_PROGRESS = "in_progress", "In progress"
DONE = "done", "Done"
client = models.CharField("Client", max_length=200)
description = models.TextField("Description")
status = models.CharField("Status", max_length=20, choices=Status.choices, default=Status.NEW)
assignee = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name="Assignee",
null=True, blank=True, on_delete=models.SET_NULL)
deadline = models.DateField("Deadline", null=True, blank=True)
created_at = models.DateTimeField("Created", auto_now_add=True)
requests/admin.py
from django.contrib import admin
from .models import Request
@admin.register(Request)
class RequestAdmin(admin.ModelAdmin):
list_display = ("client", "status", "assignee", "deadline")
list_filter = ("status", "assignee")
search_fields = ("client", "description")
These two files are enough for a working interface: a request list filtered by status and assignee, search, and a form with field validation. From there the service grows as needed: importing the existing spreadsheet, notifications in Telegram or by email, reports, a separate friendly interface for those who find the admin panel inconvenient.
Where to start
Start not with choosing a technology but with describing the process: what data there is, who fills it in, who looks at it, what statuses exist and what should happen when they change. Often at this stage it turns out that half the spreadsheet's columns are not needed by anyone, and one important field is missing.
If the process is clear, the first version of the service can be launched quickly and refined based on employee feedback. This is a task for development and automation, while hosting and backups for such a service fall under server support.
Have a spreadsheet that has outgrown itself?
Show me how the process works now. I will propose how to move it into a service and what the first version should include.
How to find operations in your company that are worth automating and how to judge whether automation will pay off. Typical examples, from exports between systems to checks, and a small Python script.
Why a flat network where every device sees every other one is the main source of trouble in a small office, and how to split it into VLANs on MikroTik with RouterOS 7: the layout, bridge configuration, firewall rules an…
How to set up a second internet connection so the office switches to it automatically and back again when the main provider recovers. Recursive routing on MikroTik, reachability checks and the pitfalls.
Read →
This site can use Yandex Metrica for anonymised visit statistics. Allow it?
Learn more