Open any Excel workbook with messy data, hit Insert, choose a chart, and you’ll often get a visual mess instead of a meaningful graph. That happens not because Excel’s charting tools are weak, but because the data going in wasn’t ready. Before a single bar or line ever appears on screen, your numbers need to be collected properly, sorted into the right category, and cleaned up. Get this stage right, and even a basic column chart in Excel will tell a clear, accurate story. Get it wrong, and no amount of formatting will fix a chart built on shaky data.
Table of Contents
- Why data preparation comes before chart selection
- Step 1: Collect and record data accurately
- Step 2: Identify what type of variable you’re dealing with
- Categorical (qualitative) variables
- Quantitative (numerical) variables
- Step 3: Clean the data before charting it
- Handling missing values
- Handling outliers
- Bringing it together in Excel
Why data preparation comes before chart selection
It’s tempting to jump straight to Excel’s chart gallery once you have a spreadsheet full of numbers. But a chart is only as good as the data feeding it. Microsoft’s own guidance on selecting chart data makes the point that the way you arrange your data in rows or columns directly determines which chart types Excel can even recommend. If your dataset mixes formats, has blank cells scattered through it, or doesn’t clearly separate categories from values, Excel struggles to read it correctly, and so will anyone looking at the final chart.
Preparing your data is really a three-part process: collecting and recording it accurately, identifying what type of variable each column represents, and cleaning it so errors don’t distort the picture. Each step feeds into the next, and skipping any one of them shows up later as a chart that misleads rather than informs.
Step 1: Collect and record data accurately
Every chart starts with raw data, and raw data starts with collection. In a business context, this could be sales figures entered by different regional offices, survey responses collected through a form, or transaction logs pulled from a database. The reliability of your eventual chart depends heavily on how consistently this data was recorded.
Common problems at this stage include inconsistent units (some entries in rupees, others in thousands of rupees), inconsistent date formats, extra spaces in text entries, or duplicate records. None of these are visible in a finished chart directly, but they all quietly corrupt totals, averages, and groupings. A simple habit that helps here is standardizing your data entry format before typing anything into Excel, whether that means agreeing on a single currency unit or a single date format (DD-MM-YYYY, for instance) across an entire team.
Step 2: Identify what type of variable you’re dealing with
Once your data is recorded, the next task is figuring out exactly what kind of information sits in each column. This matters because the type of variable determines which chart can represent it meaningfully. A pie chart works for categories with proportions; it makes no sense for a continuously changing stock price. Statistics Canada’s explainer on variable types breaks this down clearly: variables are broadly either categorical (qualitative) or numeric (quantitative), and each of those splits further into two subtypes.
Categorical (qualitative) variables
Categorical variables describe a quality or characteristic rather than a measurable quantity. They can’t be added, subtracted, or averaged in any meaningful way. Within this group, there are three useful distinctions:
- Dichotomous (binary) variables have exactly two possible values, such as Yes/No, Male/Female, or Pass/Fail. A customer satisfaction survey asking “Would you recommend us?” produces this kind of data.
- Nominal variables have more than two categories with no natural order between them. Laerd Statistics uses the example of a real estate agent classifying properties as houses, condos, co-ops, or bungalows; there’s no sense in which one category ranks above another. Product category, city of operation, or payment method are typical business examples.
- Ordinal variables also involve categories, but this time there’s a clear, logical order. Customer satisfaction ratings such as “Poor, Average, Good, Excellent” are ordinal, since Excellent is clearly better than Poor, even though the gap between each level isn’t a fixed, measurable amount.
Quantitative (numerical) variables
Numerical variables involve actual measurable quantities, and they split into two types based on how the numbers arise:
- Discrete variables are counted, not measured, and can only take specific whole-number values. The number of employees in a department, units sold, or customer complaints received in a week are all discrete, because you can’t have half an employee or a fraction of a complaint.
- Continuous variables are measured on a scale and can theoretically take any value within a range, including decimals. A Mayo Clinic overview of data types lists body mass, height, blood pressure, and cholesterol as continuous variables in a clinical context; in a business setting, revenue, temperature readings, or time taken to complete a task fit the same pattern.
The table below summarizes how these variable types map to each other and to typical Excel chart choices.
| Variable type | Subtype | Example | Typical Excel chart |
|---|---|---|---|
| Categorical (qualitative) | Dichotomous | Yes/No survey response | Pie chart, simple bar chart |
| Nominal | Product category, city | Bar chart, column chart | |
| Ordinal | Satisfaction rating (Poor to Excellent) | Ordered bar chart, stacked bar chart | |
| Numerical (quantitative) | Discrete | Units sold, number of complaints | Column chart, line chart |
| Continuous | Revenue, temperature, time taken | Line chart, scatter plot, histogram |
Step 3: Clean the data before charting it
Even accurately collected and correctly categorized data can still be unreliable if it contains gaps or extreme values. This is where data cleaning comes in, and it deserves more attention than it usually gets. A 2026 methodological paper in the Journal of Advanced Nursing describes data cleaning as a step that is often overlooked, even though addressing missing values and outliers directly affects how precise and trustworthy the resulting analysis turns out to be.
Handling missing values
Missing data shows up for many reasons: a respondent skipped a question, a sensor failed to record a reading, or someone simply forgot to fill in a cell. According to a data cleaning guide from Stony Brook University’s library, the main options for handling missing data are removing the incomplete rows or columns when the gaps are minimal and random, or imputing the missing values by substituting the mean, median, or a value predicted from other variables in the dataset. In Excel specifically, you might use the AVERAGE or MEDIAN functions to fill gaps in a numeric column, or simply exclude incomplete rows from a chart’s data range if there are only a handful of them.
Which approach is right depends on how much data is missing and why. If 40 percent of a column is blank, imputing values risks creating a misleading chart; removing that column from the analysis might be the more honest choice.
Handling outliers
Outliers are values that sit far outside the normal range of your dataset, such as a single transaction of โน50 lakh in a dataset where most transactions are under โน50,000. Outliers can be genuine (a real, unusually large sale) or the result of an error (an extra zero typed by mistake). Either way, they distort charts. A single outlier in a column chart can compress every other bar into an unreadable cluster near the baseline, while a line chart can develop a misleading spike.
The sensible approach isn’t to delete every outlier automatically. As one academic overview of data cleaning techniques notes, outliers need to be handled carefully, since they can’t be removed without first understanding why they exist, given that they’re sometimes exactly the effect an analysis is trying to capture. In Excel, a quick way to spot outliers before charting is to sort the column or use conditional formatting to highlight values beyond a certain range, then decide case by case whether they’re genuine data points or entry errors.
Bringing it together in Excel
Once your data is collected consistently, correctly typed as categorical or numerical, and cleaned of stray gaps and errors, choosing a chart in Excel becomes far simpler. Categorical data with a handful of groups suits bar, column, or pie charts. Ordinal data benefits from charts that preserve the natural order of categories, such as an ordered bar chart, rather than a pie chart that scrambles the sequence. Continuous numerical data, especially data tracked over time, is best shown with line charts or scatter plots, while discrete counts often work well as column charts. Microsoft’s own chart creation guide reinforces this by recommending you match your data arrangement to the chart type before relying on the Recommended Charts feature, since Excel’s suggestions are only as good as the structure of the data you feed it.
A short checklist before you insert any chart is worth keeping handy:
- Are units and formats consistent across the entire column?
- Have you identified whether each variable is categorical or numerical, and its subtype?
- Have missing values been addressed, either by removal or imputation?
- Have outliers been reviewed and a decision made on whether to keep, adjust, or exclude them?
- Does your chosen chart type actually suit the variable type you’re plotting?
Working through these questions takes a few extra minutes, but it’s the difference between a chart that requires a paragraph of caveats to explain and one that communicates its point at a glance.
What do you think? Next time you build a chart in Excel, would categorizing your columns as nominal, ordinal, discrete, or continuous before you start change which chart type you’d pick? And when you spot an unusually high or low value in your data, how do you decide whether it’s an error to fix or a genuine result worth keeping?
References
- https://support.microsoft.com/en-us/excel/select-data-for-a-chart
- https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch8/5214817-eng.htm
- https://statistics.laerd.com/statistical-guides/types-of-variable.php
- https://www.mayo.edu/research/documents/data-types/doc-20408956
- https://onlinelibrary.wiley.com/doi/10.1111/jan.16908
- https://guides.library.stonybrook.edu/data-cleaning-and-wrangling/cleaning
- https://arxiv.org/pdf/1808.06718
- https://support.microsoft.com/en-us/excel/get-started/create-a-chart-from-start-to-finish
Leave a Reply