Skip to content

All-Access: every lesson, no ads. $8.25 a month, billed yearly. First 2 lessons free. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25 a month.See the plans →

How to Analyze Data in Excel: A Step-by-Step Guide

By the LogicExcel Editorial Team••14 min read•2,689 words

How to Analyze Data in Excel: A Step-by-Step Guide

Analyst filtering rows in an Excel spreadsheet

To analyze data in Excel, clean the raw data, turn it into an Excel Table, summarize it with formulas and PivotTables, chart the summaries, and check the results before you share them. The built-in Analyze Data button on the Home tab can give you a fast first look. The steps below cover the full path from a messy export to a report you can trust.

TL;DR

  • Clean first: one header row, no blank rows, no merged cells, real dates and real numbers.
  • Press Ctrl+T to make a Table, then use PivotTables to total, count and average by any category.
  • Use conditional formulas such as SUMIFS and COUNTIFS when you need a number in a specific cell.
  • Try Analyze Data (Home tab) for quick charts and natural-language questions, and the Analysis ToolPak for statistics.
  • Practice on realistic exercises, because formulas stick when you type them yourself.

Table of Contents

Step 1: Prepare your data so the analysis can be trusted

Most bad Excel analysis starts with bad input. One author who teaches Excel for reporting calls dirty data the number-one reason analysis goes wrong and says to clean it before you touch a PivotTable or formula. Microsoft's guidance points the same way: use tabular data organized in columns, with a single row of unique, non-blank column labels.

A practical cleaning checklist, based on that same six-step routine:

  1. Keep the original. Save a copy of the raw file, or keep the raw data on its own sheet, so you can always start over. Data Carpentry's quality-control lesson also recommends preserving the original before you start fixing anything.
  2. Remove duplicates. Select the relevant columns, then Data tab, Remove Duplicates.
  3. Fix blanks. Use Find & Select, Go To Special, Blanks to see every empty cell at once, then decide whether to fill or exclude them.
  4. Standardize text. TRIM removes stray spaces, and PROPER or UPPER makes "north", "North " and "NORTH" count as one region. The BI Team's Excel guide recommends TRIM, Find & Replace and conditional formatting to highlight missing values.
  5. Check dates and numbers. DATEVALUE converts text dates into real dates, and VALUE converts numbers stored as text.
  6. Remove formatting noise. Merged cells and blank rows break sorting, filtering and PivotTables.
Data Carpentry adds a quick trick: sort by each field one at a time and scan the top and bottom of the column, because bad values tend to collect at the ends.

When the data is clean, click any cell in it and press Ctrl+T. An Excel Table expands automatically when you add rows, and every PivotTable or formula that points to it picks up the new data.

Step 2: Explore with sorting, filtering and conditional formatting

Before you calculate anything, look at the data. Sort by amount, date or category. Filter to one region or one month. Add conditional formatting to highlight the top 10 values or anything below a target.

This step answers a question that sounds simple: what does this dataset contain? You will often find an outlier that is a typo, a category spelled two ways or a date range that is shorter than you assumed. Finding those now is cheaper than finding them after a report goes out.

The University of Minnesota's hiring-data exercise is a good model of this stage. In a project built on New York City job postings, students create derived columns such as Midpoint Salary, Salary Range Width and Days Until Closing. They then sort, filter and apply conditional formatting and IF before building any summary. The author's point is that each calculation shapes what you are able to notice in the data.

Step 3: Summarize with formulas

Formulas give you specific answers in specific cells. These are the ones analysts use most.

QuestionFormula to learn
Total for one categorySUMIF
Total for several conditionsSUMIFS
How many rows meet a ruleCOUNTIF, COUNTIFS
Average by categoryAVERAGEIFS
Pull a value from another tableXLOOKUP, or INDEX with MATCH
Handle errors cleanlyIFERROR
Work with datesDATE, TEXT
Workday's list of useful financial-analysis functions includes SUMIF and SUMIFS, XLOOKUP, INDEX plus MATCH, COUNTIFS, TEXT and DATE, among others. Of these, SUMIFS does the most work in everyday reporting.

Here is a worked example. Say column C holds the amount, column B the category and column A the date. To total fuel spending in January 2018, Vertex42 shows a formula like this:

=SUMIFS(amount_range, category_range, "Fuel", date_range, ">=1/1/2018", date_range, "<=1/31/2018")

The Vertex42 guide describes SUMIFS as especially useful in budgets and account registers for summarizing expenses by category between two dates. In your own file, replace the range names with real references. If the data is in a Table, use structured names such as Sales[Amount] so the formula grows with the data.

Practice matters here more than reading. Typing a SUMIFS with the wrong range order and seeing it fail teaches you more than watching someone else get it right. Our Excel practice exercises let you enter formulas and get instant feedback in an Excel-like environment, with nothing to install.

Step 4: Summarize with PivotTables

A PivotTable is the fastest way to answer "how much by what?" Microsoft describes it as a tool to calculate, summarize and analyze data that shows comparisons, patterns and trends.

The workflow:

  1. Click inside your Table.
  2. Go to Insert, PivotTable.
  3. Drag a category field (Region, Product, Month) to Rows.
  4. Drag a numeric field (Sales, Hours, Cost) to Values.
  5. Right-click a value and choose Summarize Values By to switch between Sum, Average and Count.
One instructor notes that a PivotTable can show total sales by region, product and month from 5,000 rows of transactions in about 30 seconds. A PivotTable is also a quality check. Drag a text field to Rows and every spelling variant shows up as its own line. Data Carpentry notes that pivot tables give a quick, visual way to spot things that are amiss.

Add slicers and a timeline

Slicers are clickable filters. Select the PivotTable, choose Insert, Slicer, and pick a field. For date fields, a Timeline lets you filter by month, quarter or year. To make one slicer control several PivotTables, use the Slicer tab, then Report Connections, and check each PivotTable. The iTechGuides walkthrough notes that the PivotTables must share the same underlying Table, range or compatible Data Model, and that you should test every chart after connecting.

Step 5: Let Analyze Data suggest a starting point

If you are asking where the Analyze Data option is, it sits on the Home tab. Per Microsoft's documentation, you select a cell in your data range and click the button. A task pane opens with visual summaries, and you can type a question in plain language to get a table, chart or PivotTable that you can insert into the workbook. Insight types include Rank, Trend, Outlier and Majority.

Two practical limits from the same page: the feature is available to Microsoft 365 subscribers in a set list of languages, and it does not support datasets over 1.5 million cells. If you do not see the button, your version of Excel may not include it. Everything in Steps 3 and 4 works in any modern desktop version.

Use Analyze Data as a way to generate ideas, then rebuild the useful ones as PivotTables you control. That way you know exactly what each number means.

Step 5: Let Analyze Data suggest a starting point

Step 6: Use the Analysis ToolPak for statistics

When you need descriptive statistics, correlations, t-tests or regression, the Analysis ToolPak is the built-in option. Microsoft explains that it is an add-in you load from File, Options, Add-Ins: choose Excel Add-ins in the Manage box, click Go, and check Analysis ToolPak. After that, a Data Analysis button appears on the Data tab. You provide the input range and parameters, and it writes the results to an output table.

One formatting rule trips people up in regression. OpenStax's business statistics text explains that the X variables must be in a single contiguous block. If your Y column sits between two X columns, rearrange the columns first.

Step 7: Chart the results and build a dashboard

A chart should answer one question. Build it from a PivotTable (a PivotChart) so it updates with the data and responds to your slicers.

A clean dashboard layout, following the method in the research:

  • Raw data on a sheet called Data.
  • PivotTables on a separate calculation sheet.
  • PivotCharts moved onto a blank Dashboard sheet.
  • Slicers and a timeline at the top.
  • Conditional formatting for color-coded KPI cells.
That structure comes from Mark's Excel Tips. Keeping data, calculations and presentation separate makes the file easier to fix later.

Step 8: Automate repeat imports with Power Query

If you rebuild the same report every week from a CSV export, stop cleaning by hand. Microsoft explains that Power Query connects to multiple data sources and lets you shape and transform data in the Query Editor. The typical flow is Data, Get Data, fix column types, remove blanks, standardize text, then Close & Load to a Table or the Data Model. Next week you click Refresh instead of repeating every step. Microsoft also offers a tutorial on importing data and building a Data Model for combining related tables.

Power Query steps for repeat data imports

Once you can build reusable analysis workbooks, some people go further and package them as products. If that interests you, this guide on selling spreadsheet templates online covers the US side of it.

Three analysis examples to try

1. Salary comparison. Take a list of job postings. Add a Midpoint Salary column (average of minimum and maximum) and a Range Width column. Build a PivotTable of average midpoint by career level. This mirrors the Minnesota project.

2. Monthly spending by category. Convert a bank export to a Table. Use SUMIFS for each category and month, then check the total against a PivotTable of the same data. If the two disagree, you have found a data problem.

3. Sales by region and month. Build a PivotTable with Region in Rows, Month in Columns and Sales in Values. Add a slicer for Product. Then chart it.

If you work with accounting data, our 5-day accounting spreadsheet course applies the same ideas to ledgers and reports.

Checks that keep your results honest

Excel will calculate whatever you give it. These checks catch problems before your manager does.

  • Count the records. Compare the row count in Excel to the source system.
  • Reconcile totals. A PivotTable total should match a SUM of the raw column.
  • Look for silent changes. A paste over old values, a filter you forgot was on or a lookup that matched the wrong row can each change a result without any warning. Michael Nocito's checklist lists these among the steps that can go wrong, as summarized in Tom Meagher's data-work checklist, which also stresses checking headings, duplicates and formula references.
  • Use Excel's error checking. Microsoft explains you can mark and correct errors one at a time or as you enter data, and that these rules do not guarantee a worksheet is error-free. Your own review still matters.
  • Refresh PivotTables. They do not update until you right-click and choose Refresh, unless they are tied to a query that refreshes.

Perspective: Why we teach analysis by doing

> We built LogicExcel around one belief: nobody learns Excel analysis by watching someone else click. Video tutorials feel productive, but when you open your own spreadsheet, the muscle memory is not there.
>
> That is why every exercise on our platform asks you to type the formula yourself and gives instant feedback in an Excel-like environment. When you make a mistake, we explain it, because the error is where the learning happens. There is nothing to install, so the only thing between you and practice is opening the page.
>
> For analysts, managers and career changers, the goal is not to memorize a menu. It is to look at a business question, know which tool answers it, and trust the number you get. Short, repeated practice on SUMIFS, lookups, PivotTables and charts builds that confidence faster than any long course.
>
> Thomas Houza

Practice the skills on LogicExcel

Reading about SUMIFS is easy. Writing it correctly under time pressure is a skill. LogicExcel is a free platform for interactive Excel and SQL practice, with guides and tutorials on formulas, charts, pivot tables, conditional formatting and data validation.

LogicExcel

Start with the 95 Excel exercises, move through the Excel I to IV lessons when you want a structured path, or try the free Excel test for interviews and assessments if you are preparing for a job screen. If you want a credential-focused route, see our Microsoft Excel certification prep. The Excel test and the first two lessons are free; everything else comes with All-Access. You can also browse the full site at LogicExcel.

FAQ

Where is the Analyze Data option in Excel?

It is on the Home tab, at the right end of the ribbon. Select any cell inside your data range and click Analyze Data to open the task pane. If you cannot see it, your Excel version may not include the feature, which Microsoft lists as available to Microsoft 365 subscribers.

What is the best tool to analyze data in Excel?

For most business questions, PivotTables are the best starting point because they total, count and average by any category in seconds. Add SUMIFS and COUNTIFS when you need a result in a specific cell. Use the Analysis ToolPak when you need statistical tests such as regression or t-tests.

Do I need the Analysis ToolPak to analyze data?

No. Sorting, filtering, formulas, PivotTables and charts cover most reporting work without it. The ToolPak is for statistical analysis. You turn it on under File, Options, Add-Ins, and the Data Analysis button then appears on the Data tab.

How can I practice Excel data analysis?

Work on realistic datasets and type the formulas yourself. Start with SUMIFS, COUNTIFS and lookups, then build PivotTables from a sample file. LogicExcel offers interactive exercises with instant feedback, the first two lessons free, so you can check each answer as you go.

Sources

Keep going

Guides people read next.