The Wayback Machine - https://web.archive.org/web/20250321004748/https://www.geeksforgeeks.org/how-to-calculate-mean-in-excel/
Open In App

How to Calculate Mean, Median and Mode in Excel

Last Updated: 03 Jul, 2024

N

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Understanding the concepts of mean, median and mode in Excel can grow your mathematics and Excel skills. Understanding how to calculate mean in Excel, work out mean on Excel, how to calculate median in Excel, find median in Excel, and calculate mode in Excel can revolutionize how you interpret data. If you’re a data analyst crunching numbers for business insights or a student learning the ropes of statistical analysis, learning these techniques is essential.

How-to-Calculate-Mean-Median-and-Mode-in-Excel

How to Calculate Mean, Median and Mode in Excel

In this article, we’ll walk through each step, from basic formulas to advanced functions of mean and median including how to calculate mode in Excel, ensuring you grasp every aspect of these fundamental statistical measures. By the end, you’ll confidently wield Excel’s capabilities to derive accurate mean, median, and mode values, empowering you to make informed decisions and uncover actionable insights from your data.

What is the Mean in Excel

The Mean, also known as the Average, is a fundamental statistics measure that represents the central tendency of datasets. The term “mean” refers to the average value of a set of numbers when using Excel. It is a common method of obtaining the central value or concept of a set of statistical data. To calculate mean in Excel, one adds up all the numbers present in a dataset and divides them by the number of values in that dataset. There are several ways which can be can be used in Excel to find mean and the easiest way is using the AVERAGE function which quickly computes the average value of a range selected.

How to Calculate Mean in Excel

The Arithmetic mean, commonly known as the average is likely a familiar concept to you. This measure is determined by summing a set of numbers and then dividing the total by the Count of those numbers to calculate mean in Excel.

For example, the numbers {1,2,2,3,4,6}. To know how to calculate mean in Excel, you add these numbers together and then divide the sum by 6, resulting in 3: (1+2+2+3+4+6)/6=3.

Step 1: Open MS Excel

Step 2: Select Data

Step 3: Enter AVERAGE Formula

 Calculate Mean, Median and Mode in Excel

Enter AVERAGE Formula

Step 4: Press Enter

In Microsoft Excel, you can calculate the mean using one of the following functions:

AVERAGE: This Function returns the average of a range of numbers.

AVERAGE: This Function provides the average of cells containing various types of data, including numbers, Boolean values, and text.

AVERAGEIF: When you need to find the average based on a single criterion, this function can be used.

AVERAGEIFS: It can be used for calculating the average based on multiple criteria, you can employ this function.

AVERAGE function in Excel

In this method, we are going to use the AVERAGE function which returns the mean of the arguments. For example, the =AVERAGE(A1:A10) returns the average of the numbers in the range of A1 to A10.

Syntax:

AVERAGE(number1,[number2],…)

Here,

  • number1 (Required): The first cell reference or number for which you want the average
  • number2 (optional): Additional cell references or numbers for which you want the average. The maximum limit is 255.

Notes:

  • Arguments can either be numbers or names, ranges, or cell references that contain numbers.
  • If the argument contains text or logical values or empty cells then those values are ignored. However, if the cell contains the value zero then it is included.
  • If the argument contains error values or text that cannot be translated to numbers then it will cause errors.
  • AVERAGE: This function returns the average of cells with any data (logical values or text representation of numbers)
  • AVERAGEIF: This function is used to calculate the average of only the values that meet a single criterion.
  • AVERAGEIFS: This function is used to calculate the average based on multiple criteria.

Example:

Let us apply the above formula on some rough data as shown below:

 Calculate Mean, Median and Mode in Excel

Functions to calculate Mean

In the above example, we have used 4 different functions.

  • =AVERAGE(c4:e12): Returns the average of the numbers in cells c4 to e12
  • =AVERAGE(c4:f6,6): Computes the average of the values in cells C4 to F6 along with the number 6.
  • =AVERAGE(b4:b12, “sara”, c4:c12): Calculates the average of the numbers in cells C4 to C12 by considering the instances where the name “Sara” appears within the range B4 to B12.
  • =AVERAGE(d4:d12,b4:b12,”sara”,g4:g12,”b”): Determines the average of the numbers in cells D4 to D12, taking into account two conditions: occurrences of the name “Sara” within the range B4 to B12, and occurrences of the grade “B” within the range G4 to G12. .

How to Calculate Mean Using Keyboard shortcuts

In this method first, you need to select the cells for which you have to calculate the average. Then select the INSERT function from the formulas tab, a dialog box will appear.

 Calculate Mean, Median and Mode in Excel

Insert Function

Select the AVERAGE function from the dialog and enter the cell range for your list of numbers in the number1 box. For example, if you need values from column A and from row 1 to row 10 then simply enter A1:A10. You can also simply drag and drop the selected cells and click OK. The result will be shown in the cell you have selected.

 Calculate Mean, Median and Mode in Excel

Functions Argument

What is Median in Excel

Median helps us to find the middle number in a bunch of numbers. It’s the number that sits right in the middle when you put all the numbers in order from smallest to biggest. This middle number divides the group into two halves, with half the numbers being smaller and half being bigger.

In Microsoft Excel, you can find the median using the MEDIAN function. To illustrate, if you want to determine the median of all the sales amounts in our report, apply this formula:

How to Calculate Median in Excel

Follow the below steps to calculate Median in Excel:

Step 1: Enter your data

 Calculate Mean, Median and Mode in Excel

Data Entered

Step 2: Select a Cell

Choose an empty cell within your worksheet where you’d like the median value to be displayed.

 Calculate Mean, Median and Mode in Excel

Cell Selected

Step 3: Use the MEDIAN Function

In the selected cell, type “=MEDIAN(“

 Calculate Mean, Median and Mode in Excel

Enter the MEDIAN Function

Step 4: Select Your Data Range

Now, select the range of cells that contain your data. In this example, you would select cells A1 to I1. You can either manually type this range or click and drag to select it.

 Calculate Mean, Median and Mode in Excel

Select the Data range

Step 5: Close the Parenthesis and Press Enter

Once you’ve chosen your data range and closed the parenthesis, press Enter. Excel will then compute the median of the data you selected and show the result in your chosen cell.

Step 6: Preview the Result

 Calculate Mean, Median and Mode in Excel

Preview the Result

This method works well when dealing with an odd number of values in a dataset. However, what if you have an even number of values? In such a scenario, the median is the average (arithmetic mean) of the two middle values.

For example in the Below example, there are 10 values in the data set.

 Calculate Mean, Median and Mode in Excel

10 Values in the Dataset

Repeat all the steps as of above and preview the result in the Below image:

 Calculate Mean, Median and Mode in Excel

Preview the Result

What is Mode in Excel

The mode represents the number that appears most frequently within a given set of numbers. In simpler terms, it’s the number that occurs the most times in the set is known as mode in Excel. Here are the steps to calculate mode in Excel.

How to Find Mode in Excel

Among all the statistical measures, finding the mode is the simplest and requires the least mathematical computation. Essentially, you identify the mode by locating the score that appears most frequently in a dataset. Here are some steps on how to calculate mode in Excel.

Step 1: Enter the Data Set

 Calculate Mean, Median and Mode in Excel

Data Set

Step 2: Select the Cell where you want the result to be displayed

 Calculate Mean, Median and Mode in Excel

Select the cell and Enter the Formula

Step 3: Enter the Formula and Press Enter

Use the Formula “=MODE(A1:A9)”.

Step 4: Preview Result

 Calculate Mean, Median and Mode in Excel

Preview the Result

Conclusion

In conclusion, learning the calculations of mean in Excel, median in Excel, and mode in Excel opens doors to deeper insights and more informed decision-making. Whether you’re analyzing sales data, evaluating academic performance, or conducting research, these statistical measures are invaluable. Armed with the knowledge gained from this article, you now have the tools to confidently compute mean on Excel, find median in Excel, and calculate mode in Excel using Excel’s powerful features. As you continue to refine your data analysis skills, remember that Excel remains a versatile and indispensable tool for professionals across various fields. By harnessing its capabilities to calculate how to work out mean on Excel, how to calculate median in Excel, and how to calculate mode in Excel, you’re not only enhancing your proficiency in Excel but also empowering yourself to extract actionable intelligence from your data effortlessly

How to Calculate Mean, Median and Mode in Excel – FAQs

What is the formula for mean median mode in Excel?

The formula for mean, median and mode in Excel are as follows:

Mean: =AVERAGE(A1:A10)

Median: =MEDIAN(A1:A10)

Mode: =MODE.MULT(A1:A10)

How to calculate mean, median, and mode?

By using the formula mentioned above you can easily calculate mean, median and mode in Excel.

How to calculate median in Excel?

To calculate the median in Excel, use the MEDIAN function. For example, if your data is in cells A1 to A10, you would use:

=MEDIAN(A1:A10

How to calculate the Mean in Excel?

To calculate the mean in Excel, follow the below steps:

  • Enter your data values in a column.
  • Use the formula ‘=AVEARGE(range)” where “range” refers to the range of cells containing your data.

What is the shortcut way to calculate the Mean in Excel?

Yes, a quick way to calculate the mean in Excel is by using the AutoSum button. Simply select an empty cell below your dataset, click the AutoSum button, and Excel will automatically calculate the mean of the selected range.



N

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

K

How to Calculate Mean Absolute Error in Excel?

Mean absolute error is the measure of error between the observed and the expected values in a given data set. Where, O stands for Observed values,E stands for Expected values,n stands for total no. of observations. Now let us understand it with the help of an example. Example: Follow the below steps to calculate MAE in Excel: Step 1: Suppose we have the following data: Step 2: According to formulae, let's calculate the difference between the observed and the expected values. Step 3: Now let's calculate the absolute values. Step 4: Now we know from the data that n= no of observations and in this the value of n=5. And also the let's calculate the total sum of |O-E|. Step 5: Now we have the value of Sum of |O-E| and the value of n. Now according to formulae, the Mean Absolute Error is calculated as: Step 6: So the value of MAE is:
Read More

K

How to Calculate Mean Squared Error in Excel?

Mean Squared Error is defined as the mean of the square of the difference between the actual values and the expected values.Where,O = Observed value,E = Expected Value,n = No. of observationsExample:Follow the below steps to evaluate the MSE in Excel:Step 1: Suppose we are given the data in form of expected and observed value as follows:Step 2: Now let's calculate the difference between the observed and the expected value.Step 4: Now calculate the square of the difference.Step 5:  We will now calculate the sum of the squared values.Step 6: Now we have the value of the sum of squared values also we have the no. of observations i.e. 5. Now put these values in the MSE formulae and get the final result.Step 7: Now by putting the values in the formulae we get the Mean Squared Error for the given data set as 2.93294.
Read More

How to Calculate Root Mean Square Error in Excel?

In simple terms, Root mean square error means how much far apart are the observed values and predicted values on average. The formula for calculating the root-mean-square error is as follows : Where, n: number of samplesf: Forecasto: observed valuesCalculating Root Mean Square Error in Excel : Follow the below steps to calculate the root means square error in Excel: Fill up the predicted values, observed values, and differences between them in the Excel sheet.To calculate the difference, just type the formula in one cell and then just drag that cell to the rest of the cells. The difference between the cells will be calculated automatically. Then either follow STEP 3 or STEP 4 given below :Calculating the difference between the observed values and predicted valuesNow let us select one cell and apply the formula of root-mean-square error.Method 1: Formula to Calculate Root Mean Square Error (RMSE)We could have not used the difference column at all, we can directly calculate RMS error from Predicted and Observed values Columns as follows :Method 2: Formula to calculate Root Mean Square Error ( RMSE)At Last, we get the required Root Mean Square error value in the selected cell.Root mea
Read More

How to Calculate Mean Absolute Percentage Error in Excel?

article_img
In statistics, we often use Forecasting Accuracy which denotes the closeness of a quantity to the actual value of that particular quantity. The actual value is also known as the true value. It basically denotes the degree of closeness or a verification process that is highly used by business professionals to keep track records of their sales and exchanges to maintain the demand and supply mapping every year. There are various methods to calculate Forecasting Accuracy. So, one of the most common methods used to calculate the Forecasting Accuracy is MAPE which is abbreviated as Mean Absolute Percentage Error. It is an effective and more convenient method because it becomes easier to interpret the accuracy just by seeing the MAPE value. In this article, we are going to see how to calculate Mean Absolute Percentage Error, MAPE in Excel. The formula to calculate MAPE is : The above formula can be interpreted as the average value of Absolute Percentage Error (APE) of all the observations in the data set. Note: The actual value can't be zero. We can observe from the above formula that if the Actual value becomes zero, it will be undefined. Example: Consider the dataset shown below : Calcu
Read More

How to Enable Dark Mode in Excel (Windows & Mac)

article_img
Reduce eye strain and enhance your productivity with Excel's Dark Mode! This guide provides easy-to-follow steps on how to enable Dark Mode in Microsoft Excel for both Windows and Mac. Learn how to customize your Excel experience with a visually appealing and less-distracting interface.Full Dark Mode in ExcelWhat is Excel Dark ModeExcel OWA dark mode is a feature that adjusts the application's interface to darker colors, reducing glare and making it easier to work in dimly lit environments. It is available in Microsoft 365, Excel 2019, and later versions.How to Enable Dark Mode in Microsoft Excel (2025 Updated)Below are the steps to Switch Excel Spreadsheet from Light view to Night View:Step 1: Open ExcelLaunch Microsoft Excel on your computer.Open MS ExcelStep 2: Go to Account or OptionsClick on File in the top-left corner of the screen.Scroll down and select Account or Options (depending on your version of Excel).Go to File Option >>Select "Account" OptionStep 3: Change the ThemeUnder Office Theme, click the dropdown menu.Choose Dark Gray or Black to enable Dark Mode.Change the ThemeStep 4: Apply ChangesThe selected Dark Mode theme will immediately apply to your Excel inter
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More

Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024

article_img
Are you ready to unlock a world of opportunities with Microsoft Excel? In today’s data-driven job market, mastering Excel is essential for launching a successful career, whether you're a fresher or an experienced professional. In this article, we will cover the high-paying Excel jobs available in 2024, including crucial roles like data analyst, business analyst, and many more. We'll explore the qualifications needed for these positions, along with salary estimations to help you understand your earning potential. Whether you’re looking for Excel jobs for freshers or seasoned professionals, we’ll also dive into options for Excel freelancing jobs and work-from-home jobs in Excel. Equip yourself with the knowledge to excel in your career and take the first step toward a lucrative future!Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024Table of ContentWhy choose a career in ExcelWhy Excel Skills Are Essential for Your CareerEssential Excel Skills Required to Boost Your Resume Best Microsoft Excel High-Paying JobsFinancial AnalystsData AnalystAdministrative Assistant Accountants Project ManagersManagement ConsultantRetail Store ManagersBusiness Analyst Market Research A
Read More

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.Excel VLOOKUP FunctionWhat is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).
Read More

AI in Excel: Top 20 Excel AI Tools in 2025 (Free/Paid)

article_img
The integration of AI in Excel is transforming the way professionals manage, analyze, and visualize data. Whether you're handling large datasets, performing financial analysis, or automating repetitive tasks, AI-powered tools can significantly improve efficiency and accuracy. In 2025, advanced Excel AI tools are making complex tasks easier by offering features like data cleaning, predictive analytics, smart automation, and AI-driven insights.In this guide, we’ve gathered a list of the top 20 Excel AI tools for 2025 that are reshaping how users interact with Excel.Table of ContentBest AI Tool in Excel: Top Picks for 2025Top 10 Free Excel AI Tools in 2025Top 10 Excel AI ToolsAI in Excel: OverviewIn Excel, an AI tool (Artificial Intelligence tool) refers to an add-in or extension that leverages artificial intelligence to enhance your spreadsheet experience. These tools can automate tasks, improve data analysis, and generally make you more productive.Excel has always been a powerful tool for data analysis, but with the integration of AI tools, it has transformed into a smarter, more intuitive platform.Best AI Tool in Excel: Top Picks for 2025Explore the below AI tools designed for auto
Read More

How to calculate Sum and Average of numbers using formulas in MS Excel?

article_img
Everyday in school, offices, business sectors or any other field lots of information are there that are required to store for future use. For anyone, it is very difficult to remember that information for a long time. Earlier data and information are stored in a form of a register, file, or by paperwork but finding it may be difficult for us. It takes a lot of time. To resolve this issue Microsoft brings a software called MS Excel. Microsoft Excel is a software that allows users to store or analyze the data in a proper systematic manner. It uses spreadsheets to organize numbers and data with formulas and functions. MS Excel has a collection of columns and rows that form a table. Generally, alphabetical letters are assigned to columns, and numbers are usually assigned to rows. The point where a column and a row meet is called a cell. Generally, it is used to keep records, data in various fields of business. Features of MS Excel Auto calculate: This helps you to calculate a group of data and it automatically shows the result in the status area You can also create your own formulas.Shared: You can share your data file over a network.Templates: It gives us a variety of elegantly designe
Read More
three90RightbarBannerImg