
Table of Contents
Introduction
What if two datasets have very different averages but similar relative variation?
The coefficient of variation (CV) helps you compare variability across datasets with different scales. It shows standard deviation relative to the mean. This makes it useful for statistics, research, business, and data analysis.
If you are a beginner in the USA, Excel can make this calculation much easier. You do not need a special CV function or advanced statistical skills. You only need the right Excel formulas and a few simple steps.
In this guide, you will learn how to calculate coefficient of variation in Excel using sample and population data. You will also learn how to calculate CV as a percentage and format the result correctly.
We will explain AVERAGE, STDEV.S, and STDEV.P with simple examples. You will also learn which standard deviation formula to choose and avoid common Excel mistakes.
How to Calculate Coefficient of Variation in Excel
You can calculate the coefficient of variation in Excel with one simple formula. For sample data, enter:
=STDEV.S(A2:A10)/AVERAGE(A2:A10)*100
This formula divides the sample standard deviation by the mean. Multiplying by 100 gives the coefficient of variation as a percentage.
Use STDEV.S when your dataset represents a sample from a larger population. For example, you might analyze test scores from a sample of students.
For an entire population, use STDEV.P instead:
=STDEV.P(A2:A10)/AVERAGE(A2:A10)*100
The formula structure stays the same. Only the standard deviation function changes.
Expert Tip: Choose STDEV.S or STDEV.P based on what your data represents. The choice can affect your CV result.
You don’t need a dedicated coefficient of variation function in Excel. Combining AVERAGE with the correct standard deviation function gives you the CV directly.
What Is the Excel Formula for Coefficient of Variation?

The coefficient of variation Excel formula combines the mean and standard deviation. You first calculate the average, then divide the standard deviation by that average.
For the mean, use:
=AVERAGE(A2:A11)
For sample standard deviation, use:
=STDEV.S(A2:A11)
Then combine both functions to calculate CV:
=STDEV.S(A2:A11)/AVERAGE(A2:A11)*100
This formula gives the coefficient of variation as a percentage. The STDEV.S function is appropriate when your data represents a sample.
If your data includes the entire population, use STDEV.P instead:
=STDEV.P(A2:A11)/AVERAGE(A2:A11)*100
So, if you’re asking what is the Excel formula for coefficient of variation, the answer depends on whether you’re working with sample or population data.
Pro Tip: Keep the mean and standard deviation formulas in separate cells while learning. This makes it easier to check each calculation before using the one-cell CV formula.
Step-by-Step: Calculate CV in Excel

Calculating CV in Excel only takes a few steps. The process combines your dataset’s mean and standard deviation.
Step 1: Enter Your Data
Start by entering your values into one Excel column. For example, place the following dataset in cells A2:A9:
| Cell | Value |
|---|---|
| A2 | 42 |
| A3 | 45 |
| A4 | 47 |
| A5 | 50 |
| A6 | 46 |
| A7 | 49 |
| A8 | 51 |
| A9 | 44 |
Keeping the values in one range makes the formulas easier to use and check.
Step 2: Calculate the Mean
Click an empty cell and enter:
=AVERAGE(A2:A9)
Excel will calculate the average of your eight values.
Step 3: Calculate Standard Deviation
Choose the function based on what your data represents. For sample data, use:
=STDEV.S(A2:A9)
For an entire population, use:
=STDEV.P(A2:A9)
Step 4: Calculate CV
For sample data, enter:
=STDEV.S(A2:A9)/AVERAGE(A2:A9)*100
This calculates the coefficient of variation and returns a percentage value.
Step 5: Format the Result
If your formula includes *100, leave the cell formatted as General or Number. Do not apply Excel’s Percentage format as well.
Alternatively, use:
=STDEV.S(A2:A9)/AVERAGE(A2:A9)
Then select the cell and choose Percentage from Excel’s Home tab. This displays the CV correctly without double-converting the result.
Pro Tip: Use the percentage-formatting method when possible. It keeps the underlying CV value as a decimal and makes later calculations easier.
How to Calculate CV in Excel With a Percentage Result

Excel can display your coefficient of variation as a percentage in two correct ways. Choose one method and use it consistently.
Option 1 β Multiply the Formula by 100
Use this formula:
=STDEV.S(A2:A9)/AVERAGE(A2:A9)*100
If the calculated CV is 0.067, the formula returns approximately 6.7. You can treat this value as 6.7%.
Keep the cell formatted as Number or General when using this approach.
Option 2 β Use Percentage Formatting
You can also leave the calculation as a decimal:
=STDEV.S(A2:A9)/AVERAGE(A2:A9)
Then select the result cell and click Percentage (%) in Excel’s Home tab. A decimal such as 0.067 will display as 6.7%.
Pro Tip: Don’t multiply by 100 and apply percentage formatting to the same result. Excel would convert the value twice and show an inflated percentage.
Should You Use STDEV.S or STDEV.P?
The correct standard deviation function depends on what your dataset represents. This choice affects your coefficient of variation calculation.
| Data Type | Standard Deviation | CV Formula |
|---|---|---|
| Sample | STDEV.S | =STDEV.S(A2:A9)/AVERAGE(A2:A9) |
| Population | STDEV.P | =STDEV.P(A2:A9)/AVERAGE(A2:A9) |
Use STDEV.S when your data represents a sample from a larger population. For example, you might study measurements collected from selected members of a larger group.
Use STDEV.P when your dataset includes the entire population you want to analyze.
For example, if you have data for every employee in a company, that dataset represents the population for that specific analysis.
Example: Calculate Coefficient of Variation in Excel
Let’s calculate CV using a small dataset so you can see each step clearly. Enter these values into cells A2:A6:
| Cell | Value |
|---|---|
| A2 | 10 |
| A3 | 12 |
| A4 | 11 |
| A5 | 13 |
| A6 | 14 |
Calculate the Mean
In an empty cell, enter:
=AVERAGE(A2:A6)
The mean is 12.
Calculate the Standard Deviation
Because we’re treating these values as a sample, use:
=STDEV.S(A2:A6)
The sample standard deviation is approximately 1.58.
Calculate the CV
Now combine the standard deviation and mean:
=STDEV.S(A2:A6)/AVERAGE(A2:A6)
The result is approximately 0.132, or 13.2% when formatted as a percentage.
A CV of about 13.2% means the sample’s standard deviation is roughly 13.2% of its mean. CV is useful for comparing relative variation between datasets.
How to Find Coefficient of Variation in Excel
If you’re wondering how to find coefficient of variation in Excel, you don’t need a dedicated CV function. Excel can calculate it by combining two standard functions.
First, use AVERAGE to find the mean. Then use STDEV.S for sample data or STDEV.P for population data.
For sample data, you can calculate CV in one cell:
=STDEV.S(A2:A6)/AVERAGE(A2:A6)
Then format the result as a Percentage.
For population data, use:
=STDEV.P(A2:A6)/AVERAGE(A2:A6)
This same method works whether you’re asking how to find the coefficient of variation in Excel or how to calculate it on Excel. Just make sure you select the correct standard deviation function for your dataset.
How to Calculate CV in Excel for Different Data Sets
The same CV method works with almost any Excel data range. You only need to change the cell references in the formula.
For example, if your data is in cells B2:B20, use:
=STDEV.S(B2:B20)/AVERAGE(B2:B20)*100
If the data represents an entire population, replace STDEV.S with STDEV.P:
=STDEV.P(B2:B20)/AVERAGE(B2:B20)*100
The method also works when your data appears in another column or uses a different number of rows. Simply update the range in both parts of the formula.
For example, data in C2:C50 would use C2:C50 instead. This makes the formula flexible for small or large datasets.
Pro Tip: Check that the standard deviation and average use the same data range. Mismatched ranges can produce an incorrect CV.
Can You Calculate Coefficient of Variation in Excel?
Yes, you can calculate coefficient of variation in Excel. Excel doesn’t need a dedicated CV function because the calculation uses standard statistical functions.
You simply combine AVERAGE with STDEV.S or STDEV.P. For sample data, the one-cell formula is:
=STDEV.S(A2:A20)/AVERAGE(A2:A20)
Format the result as a percentage to make it easier to interpret.
So, if you’re asking how do you calculate coefficient of variation in Excel, the process is straightforward. Select your data range, choose the correct standard deviation function, and divide it by the mean.
Common Excel Mistakes When Calculating CV

Excel makes CV calculations simple, but a few common mistakes can change your result. Check these points before using your answer.
Mistake 1: Using mean Γ· standard deviation
The correct calculation is standard deviation Γ· mean. Reversing these values produces a different and incorrect result.
Mistake 2: Choosing STDEV.S vs. STDEV.P incorrectly
Use STDEV.S when your data represents a sample from a larger population. Use STDEV.P when your data represents the entire population.
Mistake 3: Double-converting the result to a percentage
Don’t multiply the formula by 100 and then apply Excel’s Percentage format. Choose one method to avoid an inflated result.
Mistake 4: Using a mean of zero
CV is not meaningfully defined when the mean equals zero. Division by zero also prevents Excel from producing a valid result.
Mistake 5: Ignoring a mean close to zero
A mean close to zero can produce a very large CV. Such a result may not provide a useful measure of relative variation.
Pro Tip: Always check the mean before interpreting CV. A very small mean can make the percentage difficult to interpret.
How to Calculate Coefficient of Variation in Google Sheets
You can calculate CV in Google Sheets using the same basic approach as Excel. For sample data, enter:
=STDEV.S(A2:A10)/AVERAGE(A2:A10)
Then format the result as a percentage. Google Sheets also supports STDEV.P when your data represents an entire population.
If you regularly work with Google Sheets, see How to Calculate Coefficient of Variation in Google Sheets for a dedicated walkthrough.
Excel vs. Manual Coefficient of Variation Calculation
Different methods work better for different situations. Choose the approach that matches your needs.
| Method | Best For |
|---|---|
| Excel | Large datasets and repeated calculations |
| Manual | Learning and understanding the formula |
| CV Calculator | Fast individual calculations |
Excel is especially useful when you need to calculate CV across multiple datasets. Manual calculations can help beginners understand how the formula works.
For a quick result, use a Coefficient of Variation Calculator. It can save time when you only need to calculate CV for one dataset.
Conclusion
Calculating CV in Excel is simple once you understand the formula and choose the correct standard deviation function. You can use AVERAGE with STDEV.S or STDEV.P to calculate relative variation.
This guide showed you how to calculate coefficient of variation in Excel, format the result, and avoid common calculation mistakes. You also learned why a mean of zero or a very small mean needs extra care.
If you’re still unsure about the Excel formula, there’s an easier option. Use our free Coefficient of Variation Calculator to calculate CV instantly from the mean and standard deviation.
[Use the Coefficient of Variation Calculator]
For more practical statistics guides, explore our other calculators and tutorials. They can help you handle common data calculations with confidence.
Frequently Asked Questions
Use the standard deviation divided by the mean. For sample data, enter
=STDEV.S(A2:A10)/AVERAGE(A2:A10).
Format the result as a percentage to display CV clearly.
You can calculate CV by combining Excel’s standard deviation and average functions.
For sample data, use
=STDEV.S(A2:A10)/AVERAGE(A2:A10).
Use STDEV.P when your data represents an entire population.
For sample data, the Excel formula is
=STDEV.S(A2:A10)/AVERAGE(A2:A10).
You can also multiply the formula by 100 to display the result numerically as a percentage.
Enter your dataset into a column, calculate its mean, and calculate its standard deviation.
Then divide the standard deviation by the mean.
For sample data, use
=STDEV.S(A2:A10)/AVERAGE(A2:A10).
Use
=STDEV.S(A2:A10)/AVERAGE(A2:A10)
and format the result as Percentage.
Alternatively, multiply the formula by 100 without applying percentage formatting.
Excel doesn’t have a dedicated CV function.
Combine AVERAGE with STDEV.S or STDEV.P.
For sample data, use
=STDEV.S(A2:A10)/AVERAGE(A2:A10).
Yes. Excel can calculate CV using its built-in average and standard deviation functions. You don’t need a special coefficient of variation function.
Use STDEV.S when your data represents a sample from a larger population.
Use STDEV.P when your dataset represents the entire population being analyzed.
Use
=STDEV.S(A2:A10)/AVERAGE(A2:A10)
and apply Excel’s Percentage format.
Don’t multiply by 100 if you also use percentage formatting.
We are the StatisticsTools.com Development Team, dedicated to building accurate, easy-to-use statistical calculators and educational resources for students, educators, researchers, and professionals.
Our mission is to make statistics simple by providing free, reliable tools for data analysis, probability, hypothesis testing, regression, and other statistical calculations. We also create practical guides that explain statistical concepts in a clear and easy-to-understand way.
At StatisticsTools.com, we are continuously improving our platform by adding new calculators and educational resources to help users solve statistical problems quickly and confidently.
