Data has to be shaped correctly first
Most spreadsheet frustration comes from data laid out in a way that tools cannot work with, and the fix is a single structural idea worth learning properly.
Analytical tools expect tidy data: one row per observation, one column per variable, and one value per cell. Every column holds one kind of thing, and the first row holds names.
What that rules out, and what people do constantly.
Months as columns. A table with a row per product and twelve columns for January through December is readable by humans and unusable by a pivot table. The tidy version has a row per product per month, with a month column.
Merged cells, which destroy the row-and-column structure that every tool depends on.
Totals rows in the middle of the data, which get counted as observations.
Multiple things in one cell. A cell containing London, UK is two variables, and separating them later is work you did not need to create.
Formatting carrying meaning. Rows coloured yellow to mean something is information no tool can read, and it is lost the moment anyone copies the data.
Blank rows used as visual separators, which many tools treat as the end of the table.
The practical discipline. Keep one sheet that is the data, in tidy form, with nothing else on it: no titles, no notes, no totals, no formatting that means anything. Do the analysis and presentation on other sheets that read from it.
That separation between the data and the presentation of the data is the single structural habit that prevents most spreadsheet problems, and it is what makes an analysis reproducible when someone asks you to update it next quarter.

