Data with Sachin

How to Analyze Data: A Step-by-Step Guide With Methods, Tools and Examples (Including AI)

What data analysis is and how to do it

In this article
  1. What is the analysis of data?
  2. How to analyze data in 8 steps
  3. Common data analysis methods
  4. How to analyze data in Excel
  5. How to analyze data with SQL
  6. How to analyze data with Python
  7. How to analyze data with AI
  8. Worked example: analysing customer churn
  9. Common mistakes when analyzing data
  10. Frequently asked questions

Analyzing data means inspecting, cleaning, transforming and modelling data to answer a question, find patterns and support a decision. The reliable way to do it is a repeatable process: define the question, collect the right data, clean it, explore it, analyse it with a suitable method, check your conclusions, visualise the results and communicate a clear recommendation.

Whether you're a student with a survey, a small business owner with sales spreadsheets, or an analyst with a data warehouse, the process is the same. This guide explains what data analysis means, walks through each step with checklists, covers the main methods, shows how to do it in Excel, SQL, Python and with AI, and lists the mistakes that lead to wrong conclusions.

What is the analysis of data?

Data analysis is the process of turning raw data into useful information. It answers four kinds of questions:

TypeQuestionExample
DescriptiveWhat happened?Sales were $420k last quarter, up 6%
DiagnosticWhy did it happen?Growth came from repeat customers in two regions
PredictiveWhat is likely to happen?Next quarter's forecast is $440k–$470k
PrescriptiveWhat should we do?Increase retention emails to similar customer segments

"Analyzing data" also simply means making sense of it: what the numbers say, how sure you can be, and what to do about it.

How to analyze data in 8 steps

Step 1: Define the question and the decision

Write one clear question tied to a decision. Bad: "Look at our sales data." Good: "Which of our three product lines should get next quarter's extra marketing budget?"

Also decide: what would change your mind? What metric defines success? What time period?

Step 2: Identify and collect the data

  • What data do you need to answer the question?
  • Where does it live (spreadsheets, CRM, database, analytics tool, survey)?
  • Is it complete for the period and population you care about?
  • Do you need to combine sources? (See How to integrate data from multiple sources.)

Step 3: Clean and prepare the data

Usually the biggest step. Checklist:

  • Remove duplicates
  • Handle missing values: fill, exclude or flag, and note the choice
  • Fix formats: dates, currencies, units, text case, trailing spaces
  • Standardise categories: "UK", "U.K." and "United Kingdom" become one value
  • Check outliers: genuine extremes or errors (a $1,000,000 order from a test account)?
  • Validate totals against a trusted source (does revenue match finance's figure?)
  • Create needed fields: month, region, profit = revenue − cost, customer age group
  • Document every change

Step 4: Explore the data (EDA)

Before testing ideas, get familiar with the data:

  • Counts, sums, averages, medians, minimums and maximums
  • Distributions (histograms): is the data skewed?
  • Trends over time (line charts)
  • Breakdowns by category (bar charts)
  • Relationships between variables (scatter plots, correlation)
  • Anything surprising that needs explanation

Step 5: Choose and apply an analysis method

Pick the method that fits the question (see the methods table below). Keep it as simple as possible.

Step 6: Check and challenge the results

  • Does the result make sense against what you know about the business?
  • Is the sample big enough? Could it be random variation?
  • Correlation isn't causation: what else could explain it?
  • Did seasonality, a one-off event or a data change cause the pattern?
  • Would someone sceptical accept the conclusion?

Step 7: Visualise the findings

  • Line chart: change over time
  • Bar chart: comparing categories
  • Scatter plot: relationship between two variables
  • Table: exact values
  • Avoid pie charts with many slices and 3D effects. Label clearly and highlight the key insight.

Step 8: Communicate and recommend

Structure: the answer first, then the evidence, then the recommendation and its expected impact, then caveats. Tailor detail to the audience: executives want the decision; analysts want the method.

Common data analysis methods

MethodUse it toExample
Descriptive statisticsSummarise dataAverage order value, median delivery time
Trend / time-series analysisSee changes over time and seasonalityMonthly revenue with year-over-year comparison
Segmentation / cohort analysisCompare groupsRetention by sign-up month or acquisition channel
Comparison and variance analysisActual vs target or previous periodBudget vs actual by department
CorrelationMeasure how two variables move togetherAd spend vs leads
RegressionEstimate the effect of factors on an outcomeHow price, season and promotion affect sales
Hypothesis testing / A/B testsDecide if a difference is realDid the new checkout page increase conversion?
Funnel analysisFind drop-off pointsVisit → sign-up → purchase
Pareto (80/20) analysisFind the vital fewTop 20% of customers generating most revenue
Root cause analysisExplain a problemWhy complaints rose last month
Text / qualitative analysisFind themes in comments and interviewsCoding survey responses into themes
ForecastingPredict future valuesDemand forecasting
ClusteringDiscover natural groupsCustomer segments by behaviour (see What is machine learning?)

How to analyze data in Excel

  1. Format as a Table (Ctrl+T) so ranges expand automatically.
  2. Clean with Remove Duplicates, TRIM, Find & Replace, Text to Columns, or Power Query for repeatable cleaning.
  3. Summarise with PivotTables: drag categories to rows, measures to values, dates to columns.
  4. Use formulas: SUMIFS, COUNTIFS, AVERAGEIFS, XLOOKUP, IF.
  5. Visualise with PivotCharts and conditional formatting.
  6. Analysis ToolPak for regression and descriptive statistics.
  7. Copilot in Excel (where available) to ask questions in plain language and suggest formulas and charts.

How to analyze data with SQL

-- Monthly revenue and customers by channel
SELECT
  DATE_TRUNC('month', order_date) AS month,
  channel,
  COUNT(DISTINCT customer_id)     AS customers,
  SUM(revenue)                    AS revenue,
  SUM(revenue) / COUNT(*)         AS avg_order_value
FROM orders
WHERE order_date >= '2026-01-01'
  AND status = 'completed'
GROUP BY 1, 2
ORDER BY 1, 2;

SQL is ideal when data lives in a database or warehouse (see What is a data warehouse?).

How to analyze data with Python

A typical pandas workflow: read_csv → drop_duplicates / fillna → groupby().agg() → charts with matplotlib or seaborn → statistical tests with scipy or statsmodels. Python is best for large files, repeatable analysis, statistics and machine learning.

How to analyze data with AI

AI assistants (Claude, ChatGPT, Gemini, Copilot) can now read uploaded spreadsheets, write and run code, and produce charts. They're excellent for:

  • Suggesting how to approach an analysis
  • Writing formulas, SQL and Python
  • Cleaning messy data
  • Exploring a dataset quickly and summarising patterns
  • Drafting the written summary

Good prompt:

"Here is a CSV of 2026 orders (columns: date, region, product, channel, revenue, cost). First describe the data and any quality issues. Then show monthly revenue and margin trends by region, identify the three biggest changes, and suggest likely explanations I should verify. Show the code you used."

Safeguards:

  • Check calculations independently on a sample
  • Ask the AI to show its code and assumptions
  • Don't upload personal or confidential data to tools your organisation hasn't approved
  • AI can produce plausible but wrong explanations; treat them as hypotheses

(More: How to automate tasks with AI.)

Worked example: analysing customer churn

  1. Question: Why are more subscribers cancelling, and what should we do?
  2. Data: subscriptions, usage logs, support tickets, plan and price history.
  3. Clean: remove test accounts, align dates, define churn (cancelled and not reactivated within 30 days).
  4. Explore: churn rose from 3.1% to 4.4% monthly over six months.
  5. Analyse: cohort analysis shows the increase is concentrated in customers who joined via a discount campaign; those with fewer than two logins in their first week churn at 3× the rate.
  6. Check: the effect holds across regions and isn't caused by a price change.
  7. Visualise: retention curves by cohort and by first-week activity.
  8. Recommend: improve onboarding to drive early activation; limit deep discounts to segments with good retention. Estimate impact and set up a test.

Common mistakes when analyzing data

  • Starting without a clear question
  • Not checking data quality before analysing
  • Confusing correlation with causation
  • Ignoring sample size and random variation
  • Cherry-picking data that supports a preferred answer
  • Using averages when distributions are skewed (use medians)
  • Survivorship bias: only analysing the customers or projects that remained
  • Misleading charts: truncated axes, inconsistent scales
  • Burying the insight under too many charts

Frequently asked questions

How do you analyze data step by step?

Define the question, collect relevant data, clean and prepare it, explore it, apply an appropriate analysis method, check your results, visualise the findings and communicate a clear recommendation.

What does it mean to analyze data?

It means examining data to find patterns, relationships and answers to questions, turning raw numbers into information that supports decisions.

What are the main types of data analysis?

Descriptive (what happened), diagnostic (why it happened), predictive (what will happen) and prescriptive (what to do about it).

What tools are used to analyze data?

Excel and Google Sheets, SQL, BI tools such as Power BI and Tableau, programming languages such as Python and R, statistical software, and AI assistants that can read files and write code.

Can AI analyze data for me?

AI can clean data, write formulas and code, run analyses and summarise patterns quickly. You still need to define the question, verify the results and judge whether the conclusions make sense.

How do you analyze qualitative data?

Read through the responses, create codes for recurring ideas, group codes into themes, count how often themes appear, and support findings with representative quotes. AI can help with initial coding, but review it for accuracy.

Want a data analysis or dashboard built for your business?

I design and build AI agents and automations that run in production, not just in demos. Tell me which process is eating your team's week.

Start a conversation
Sachin Rawat

Written by Sachin Rawat

AI & automation engineer · websites, apps and motion design

I build AI agents, automations, websites, apps and motion design for businesses. These guides answer the questions people actually search, written from hands-on experience building them.

Work with meMore stories

More from Sachin Rawat

Sachin Rawat

How to Integrate Data From Multiple Sources: Methods, Tools, Architecture and a Step-by-Step Plan

A practical guide to integrating data from different sources: why it's hard, the main methods (ETL, ELT, APIs, iPaaS, CDC, streaming, virtualization, reverse ETL), how to match records across systems, tools by budget, a step-by-step plan, data quality and governance, and how AI helps.

7 min read · Nov 12, 2026
Sachin Rawat

Is Data Analytics Hard? Honest Answers on Difficulty, Demand, Career Prospects and How Long It Takes

Is data analytics hard to learn? An honest breakdown of what's easy and what's difficult (SQL, statistics, messy data, communication), how long it takes, whether data analysts are in demand, whether it's a good career and a good major, how AI affects it, and a realistic learning plan.

6 min read · Nov 12, 2026
Sachin Rawat

What Is BI (Business Intelligence)? Meaning, How It Works, Tools, Examples and AI-Powered BI

What BI means in business: how business intelligence turns data into dashboards, reports and decisions, the BI architecture, BI vs business analytics vs data science, popular BI tools (Power BI, Tableau, Looker), examples by department, how to implement BI, and how AI is changing it.

6 min read · Nov 12, 2026
Sachin Rawat

What Does a Data Analyst Do? Daily Tasks, Skills, Tools, Salary Path and How AI Is Changing the Role

What a data analyst actually does day to day, the analysis process, core skills (SQL, Excel, BI, statistics, storytelling), tools, types of data analysts, how the role differs from data scientists and BI developers, career path, and how AI is changing the job.

6 min read · Nov 12, 2026

Want a data analysis or dashboard for you? I'll build it for your business.

Contact now