How to Enable the Analysis ToolPak in Excel and Use It
By ExcelReady TeamUpdated 6 min read
The short answer
To enable the Analysis ToolPak in Excel for Windows, go to File > Options > Add-ins, choose Excel Add-ins, click Go, tick Analysis ToolPak and click OK. On a Mac, use Tools > Excel Add-ins. A Data Analysis button then appears on the Data tab, with tools such as Descriptive Statistics, Histogram, Correlation and Regression.
Key takeaways
- The Analysis ToolPak is an add-in that comes with desktop Excel; you switch it on once.
- Windows: File > Options > Add-ins > Manage Excel Add-ins > Go. Mac: Tools > Excel Add-ins.
- After that, Data > Data Analysis opens 19 tools, from Descriptive Statistics to Regression.
- ToolPak results are fixed values, not formulas, so they don't update when the data changes.
- Check key results with formulas like AVERAGE, MEDIAN, MAX and MIN, which do update.
On this page+
The Analysis ToolPak is an Excel add-in that adds a Data Analysis button with 19 statistics tools, such as Descriptive Statistics, Histogram, Correlation and Regression. It comes with desktop Excel but is switched off by default. This guide shows how to enable the Analysis ToolPak in Excel on Windows and Mac, how to run a tool, and how to check the output with everyday formulas. It suits students, analysts and anyone who needs quick statistics without writing every formula.
What is the Analysis ToolPak?#
The Analysis ToolPak is an add-in: an optional part of Excel that adds extra commands when you turn it on. It is installed along with desktop Excel, so there is nothing to download. Once enabled, it puts a Data Analysis button on the Data tab.
Each tool asks for an input range and an output location, then writes a table of results. These are the 19 tools:
| Group | Tools |
|---|---|
| Summaries | Descriptive Statistics, Histogram, Rank and Percentile |
| Relationships | Correlation, Covariance, Regression |
| Tests | Anova (three types), F-Test, t-Test (three types), z-Test |
| Time series | Moving Average, Exponential Smoothing, Fourier Analysis |
| Samples | Random Number Generation, Sampling |
The ToolPak is part of Excel for Windows and Excel for Mac. It isn't available in Excel for the web.
How to enable the Analysis ToolPak on Windows#
You turn it on once, and it stays on every time you open Excel:
- Go to File > Options.
- Click Add-ins on the left.
- At the bottom, check that Manage shows Excel Add-ins, then click Go.
- Tick Analysis ToolPak and click OK.
If Analysis ToolPak isn't in the list, click Browse to find it. If Excel says it isn't installed, click Yes to install it. You can also open the same box from Developer > Excel Add-ins if the Developer tab is showing.
Now look at the right end of the Data tab. In the Analysis group you'll see Data Analysis.
How to enable the Analysis ToolPak on Mac#
On a Mac, the add-in box is on the Tools menu:
- Open Excel and choose Tools > Excel Add-ins from the menu bar.
- Tick Analysis ToolPak and click OK.
- Open the Data tab and click Data Analysis.
If Excel says the ToolPak isn't installed, click Yes to install it, then restart Excel.
How to use the Analysis ToolPak: Descriptive Statistics#
Descriptive Statistics is the tool most people start with. It summarises a column of numbers in one go. Take this weekly sales data:
| A | B | |
|---|---|---|
| 1 | Week | Sales |
| 2 | 1 | 12 |
| 3 | 2 | 15 |
| 4 | 3 | 9 |
| 5 | 4 | 22 |
| 6 | 5 | 18 |
| 7 | 6 | 15 |
| 8 | 7 | 14 |
- Click Data > Data Analysis, choose Descriptive Statistics and click OK.
- Set Input Range to B1:B8, the numbers plus the header.
- Leave Grouped By on Columns and tick Labels in first row, because B1 is a header.
- Choose Output Range and click D1, or choose New Worksheet Ply for a new sheet.
- Tick Summary statistics and click OK.
Excel writes a two-column table. These are the key lines:
| Statistic | Value |
|---|---|
| Mean | 15 |
| Median | 15 |
| Mode | 15 |
| Standard Deviation | 4.1633 |
| Range | 13 |
| Minimum | 9 |
| Maximum | 22 |
| Sum | 105 |
| Count | 7 |
The full output also includes the standard error, sample variance, kurtosis and skewness. The guide to descriptive statistics in Excel explains how to read every line, so this guide won't repeat it.
Which ToolPak tool to use for common questions#
Pick the tool by the question you're asking. Each of these also has a formula route that updates by itself:
| Question | ToolPak tool | Formula route |
|---|---|---|
| What does this column look like overall? | Descriptive Statistics | AVERAGE, MEDIAN, STDEV.S: see descriptive statistics |
| How are the values spread across ranges? | Histogram | FREQUENCY or a histogram chart: see histograms in Excel |
| Do two columns move together? | Correlation | CORREL: see correlation in Excel |
| Where does each value rank? | Rank and Percentile | RANK.EQ, PERCENTILE.INC: see percentiles and quartiles |
| How far is a value from the mean? | No direct tool | STANDARDIZE: see z-scores in Excel |
The Standard Deviation line in Descriptive Statistics is the sample standard deviation, the same as STDEV.S. The guide to standard deviation in Excel explains when to use the sample or population version.
For a very quick look without any add-in, select the numbers and check the status bar, or use the Quick Analysis button for totals and charts.
Check the ToolPak output with formulas#
ToolPak results are static: Excel writes numbers, not formulas. If a sales figure changes, the output stays the same until you run the tool again. For anything you'll update, use formulas, or at least check the key numbers with them:
=AVERAGE(B2:B8)
=MEDIAN(B2:B8)
=MAX(B2:B8)-MIN(B2:B8)These return 15, 15 and 13, matching the Mean, Median and Range lines. AVERAGE adds the values and divides by how many there are; the AVERAGE function guide covers how it treats blanks and text. When the mean and median are far apart, the data is skewed, and the article on average vs median explains which one to report.
Common Analysis ToolPak problems#
Most problems have a quick fix:
- No Data Analysis button. The add-in isn't ticked, or you're in Excel for the web. Enable it in the desktop app.
- "Input range contains non-numeric data." You included a header without ticking Labels in first row, or a cell holds text. Fix the range or tick the box.
- Output on top of your data. Excel warns before it overwrites cells. Pick an empty output cell or a new sheet.
- Results don't change. That is expected: the output is fixed. Run the tool again.
- Only one sheet gets results. The tools work on one worksheet at a time. If several sheets are grouped, ungroup them and run the tool on each.
Practise it#
The ToolPak is handy, but job tests check whether you can get the same numbers with formulas. Practise AVERAGE, MIN and MAX in a live spreadsheet, then practise MEDIAN and MODE to describe any column of numbers. Each lesson checks your formula instantly, and the exercise on this page rebuilds the ToolPak's Range line.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Descriptive Statistics reports a Range: the largest value minus the smallest. In E2, work it out with a formula for the weekly sales in B2:B8, using MAX and MIN.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Sales | |||||
| 2 | Range | |||||
| 3 | ||||||
| 4 | ||||||
| 5 | ||||||
| 6 | ||||||
| 7 | ||||||
| 8 | ||||||
| 9 | ||||||
| 10 | ||||||
| 11 |
Tip: Find the biggest value with MAX(B2:B8), then subtract the smallest, MIN(B2:B8).
Practise this in a lesson
Frequently asked questions
Where is the Analysis ToolPak in Excel?
Once it is turned on, it appears as a Data Analysis button at the right end of the Data tab, in the Analysis group. If the button isn't there, the add-in isn't enabled yet.
Why can't I find Data Analysis in Excel?
The Analysis ToolPak add-in is off by default. Turn it on in File > Options > Add-ins (Windows) or Tools > Excel Add-ins (Mac). It isn't available in Excel for the web.
Is the Analysis ToolPak available on Mac?
Yes. In Excel for Mac, choose Tools > Excel Add-ins, tick Analysis ToolPak and click OK. Data Analysis then appears on the Data tab.
Does the Analysis ToolPak update automatically?
No. The tools write fixed numbers, not formulas. If the data changes, run the tool again, or use formulas such as AVERAGE and STDEV.S, which recalculate by themselves.
What is Analysis ToolPak - VBA?
It is a separate add-in that lets VBA macros call the ToolPak's tools. You only need it if you write macros that run the analysis tools.