Meta Pixel Saltar al contenido
Training

How to clean data in Excel before analyzing it: the eight most common problems and their Power Query fix

Most of an analysis's time does not go into analyzing but into cleaning: duplicates, invisible spaces, dates that are text, the same category written four ways. This guide walks through the eight problems we find in almost every file from companies and agencies, with the Power Query fix that is applied once and repeats itself every month.

Geedle Team Published 5 min read

Analista de datos frente a una laptop donde una hoja de Excel desordenada se transforma en una tabla limpia
In this article
  1. Why clean in Power Query and not by hand
  2. 1. Duplicates
  3. 2. Spaces and invisible characters
  4. 3. Dates that are text
  5. 4. Inconsistent categories
  6. 5. Numbers that are text
  7. 6. Merged cells and multi-row headers
  8. 7. Data in "wide" format (one month per column)
  9. 8. Several files with the same format
  10. Checklist before analyzing
  11. Want to bring this to your team?

Why clean in Power Query and not by hand

Cleaning by hand works once. Next month the same problems arrive and it has to be repeated, and nobody remembers what was corrected. Power Query records every cleaning step: next month a refresh is enough. It also separates the source (untouched) from the clean result, so you can always go back.

1. Duplicates

Repeated rows from copying a file twice or duplicate records in the system. In Power Query: select the columns that identify a record (for example, folio and date) and "Remove duplicates". Before removing them, it pays to count them: if they are 20% of the rows, the problem is at the source.

2. Spaces and invisible characters

"García " with a trailing space or line breaks inside a cell break matches and groupings. In Power Query: Transform → Format → Trim and Clean on text columns. It is the step that solves the most "impossible" matches.

3. Dates that are text

"03/04/2026" can be April 3 or March 4, and if it is text it neither sorts nor groups by month. In Power Query: change the type to Date using the right locale (Change type → Using locale → Spanish (Mexico)). If several formats are mixed, a conditional column separates them first.

4. Inconsistent categories

"CDMX", "cdmx", "Cd. de México", "Ciudad de Mexico". In Power Query: Transform → Format → Uppercase or Capitalize each word to unify case, then Replace values (or merge with an equivalence table) for the variants. The definitive fix is data validation at the source (we explain how here).

5. Numbers that are text

Figures with "$", thousands separators or spaces import as text and do not add up. In Power Query: Replace "$" and "," with nothing and change the type to Decimal number. If the decimal separator is a comma, use the right locale when changing the type.

6. Merged cells and multi-row headers

"Pretty" reports made for printing have merged titles and two-row headers; that is not a table. In Power Query: Remove top rows until the real header, Use first row as headers and Fill down the columns that came merged.

7. Data in "wide" format (one month per column)

January, February, March as columns does not analyze well: every new month changes the structure. In Power Query: select the month columns and "Unpivot" to get two columns: Month and Value. It is the step that confuses most at first and delivers most later.

8. Several files with the same format

Twelve branch files or fifty agency files. In Power Query: Get data → From folder, Combine files and apply the cleaning steps once to all of them. The full case is in Power Query vs pivot tables.

Checklist before analyzing

QuestionIf the answer is no…
Is each row a record and each column a variable?Unpivot / fill merged cells
Are dates of type Date?Change type with locale
Are numbers of type Number?Replace symbols and change type
Is each category written one way only?Unify case and replace values
No duplicates by key?Remove duplicates by key columns
Any spaces or line breaks?Trim and clean

With that list all green, the analysis truly starts: pivot tables, indicators and dashboard. It is the second module of the data analysis with Excel course and one of the most valued by people who come from "balancing" files every month.

Want to bring this to your team?

We work with your real files: the dataset cleaned in the course is the one your area uses every month, and the process stays recorded to repeat itself. Message us on WhatsApp, fill out the contact form or open this site's live chat: we send a proposal with three scope options and a closed price in under 24 business hours, with the DC-3 certificate and Geedle Bot included. The full program is at the data analysis with Excel course and the catalog at training courses for companies.

Share this article LinkedIn X Facebook WhatsApp
FAQ

Frequently asked questions

Keep reading

Propietarios de un colegio y su hija reunidos con una consultora educativa en la sala de juntas revisando una propuesta
Training

How to choose an education consultancy for your school: diagnosis first, red flags and what to demand

Every school owner has met the consultant who, in the first meeting, already knows what the school needs: his program. Education consulting is useful when it starts by looking, delivers things you can hold, and stays long enough to see whether anything changed. This guide is for owners, boards and principals comparing a speaker, an individual consultant and a program with follow-up, and for anyone about to sign a proposal they do not fully understand.

Administrador escolar en su escritorio comparando tres propuestas impresas con una calculadora y el calendario del ciclo escolar
Training

How much does a parent school program cost for a school? What drives the price and how to compare quotes

When a school asks how much a parent school costs, the honest answer is: it depends on five things, and the cheapest quote is usually the one that gets cancelled after the third session. This article explains what drives the price, how the three standard packages differ, how to compare the investment with what the school loses when a family does not re-enroll, and what to ask in every quote. No price list: every school is different, and anyone who sends you a flat rate without asking about your levels has not understood the job.

Grupo de directores y coordinadores escolares trabajando en equipos con tarjetas de casos mientras una facilitadora dibuja la ruta de módulos en el pizarrón
Training

What a school principal academy should include: modules, hours, deliverables and questions for the provider

School owners who look for a principal academy find two things: university diploma programs of 100 to 240 hours for one leader at a time, and motivational conferences for the whole staff. Neither solves the Monday problems of a new principal. A principal academy for a school or a network should be short enough for a leadership team to finish within a term, built on cases from their own level, and leave behind tools, not notes. This is what to demand before signing.

Shall we start with a free assessment?

We review your case and tell you exactly what to improve. We reply the same day — no cost, no commitment.

Enter the VIP Zone

Geedle clients only. No passwords: we send a code to your email.

or

Not a client yet? Request your free diagnosis · Privacy notice

Choose your assessment

Answer 8 questions in 3 minutes and get your result with recommendations from a consultant.