Как посчитать mean в excel
When analyzing numerical data, you may often be looking for some way to get the "typical" value. For this purpose, you can use the so-called measures of central tendency that represent a single value identifying the central position within a data set or, more technically, the middle or center in a statistical distribution. Sometimes, they are also classified as summary statistics.
The three main measures of central tendency are Mean, Median and Mode. They all are valid measures of central location, but each gives a different indication of a typical value, and under different circumstances some measures are more appropriate to use than others.
How to calculate mean in Excel
Arithmetic mean, also referred to as average, is probably the measure you are most familiar with. The mean is calculated by adding up a group of numbers and then dividing the sum by the count of those numbers.
For example, to calculate the mean of numbers , you add them up, and then divide the sum by 6, which yields 3: (1+2+2+3+4+6)/6=3.
In Microsoft Excel, the mean can be calculated by using one of the following functions:
-
- returns an average of numbers. - returns an average of cells with any data (numbers, Boolean and text values). - finds an average of numbers based on a single criterion. - finds an average of numbers based on multiple criteria.
For the in-depth tutorials, please follow the above links. To get a conceptual idea of how these functions work, consider the following example.
In a sales report (please see the screenshot below), supposing you want to get the average of values in cells C2:C8. For this, use this simple formula:
To get the average of only "Banana" sales, use an AVERAGEIF formula:
=AVERAGEIF(A2:A8, "Banana", C2:C8)
To calculate the mean based on 2 conditions, say, the average of "Banana" sales with the status "Delivered", use AVERAGEIFS:
=AVERAGEIFS(C2:C8,A2:A8, "Banana", B2:B8, "Delivered")
You can also enter your conditions in separate cells, and reference those cells in your formulas, like this:
How to find median in Excel
Median is the middle value in a group of numbers, which are arranged in ascending or descending order, i.e. half the numbers are greater than the median and half the numbers are less than the median. For example, the median of the data set is 3.
This works fine when there are an odd number of values in the group. But what if you have an even number of values? In this case, the median is the arithmetic mean (average) of the two middle values. For example, the median of is 2.5. To calculate it, you take the 3rd and 4th values in the data set and average them to get a median of 2.5.
In Microsoft Excel, a median is calculated by using the MEDIAN function. For example, to get the median of all amounts in our sales report, use this formula:
To make the example more illustrative, I've sorted the numbers in column C in ascending order (though it is not actually required for the Excel Median formula to work):
In contrast to average, Microsoft Excel does not provide any special function to calculate median with one or more conditions. However, you can "emulate" the functionality of MEDIANIF and MEDIANIFS by using a combination of two or more functions like shown in these examples:
How to calculate mode in Excel
Mode is the most frequently occurring value in the dataset. While the mean and median require some calculations, a mode value can be found simply by counting the number of times each value occurs.
For example, the mode of the set of values is 2. In Microsoft Excel, you can calculate a mode by using the function of the same name, the MODE function. For our sample data set, the formula goes as follows:
In situations when there are two or more modes in your data set, the Excel MODE function will return the lowest mode.
Mean vs. median: which is better?
Generally, there is no "best" measure of central tendency. Which measure to use mostly depends on the type of data you are working with as well as your understanding of the "typical value" you are attempting to estimate.
For a symmetrical distribution (in which values occur at regular frequencies), the mean, median and mode are the same. For a skewed distribution (where there are a small number of extremely high or low values), the three measures of central tendency may be different.
Since the mean is greatly affected by skewed data and outliers (non-typical values that are significantly different from the rest of the data), median is the preferred measure of central tendency for an asymmetrical distribution.
For instance, it is generally accepted that the median is better than the mean for calculating a typical salary. Why? The best way to understand this would be from an example. Please have a look at a few sample salaries for common jobs:
- Electrician - $20/hour
- Nurse - $26/hour
- Police officer - $47/hour
- Sales manager - $54/hour
- Manufacturing engineer - $63/hour
Now, let's calculate the average (mean): add up the above numbers and divide by 5: (20+26+47+54+63)/5=42. So, the average wage is $42/hour. The median wage is $47/hour, and it is the police officer who earns it (1/2 wages are lower, and 1/2 are higher). Well, in this particular case the mean and median give similar numbers.
But let's see what happens if we extend the list of wages by including a celebrity who earns, say, about $30 million/year, which is roughly $14,500/hour. Now, the average wage becomes $2,451.67/hour, a wage that no one earns! By contrast, the median is not significantly changed by this one outlier, it is $50.50/hour.
Agree, the median gives a better idea of what people typically earn because it is not so strongly affected by abnormal salaries.
This is how you calculate mean, median and mode in Excel. I thank you for reading and hope to see you on our blog next week!
There are many functions in order to find the average in Excel (although it does not matter what kind of value it is: numerical, textual, percentage or other). And each of them has its own peculiarities and advantages. After all, certain conditions can be put in this task.
For example, the average in Excel is counting using statistical functions. You can also manually enter your own formula. Consider the various options.
How to find the arithmetic mean?
It is necessary to add all the numbers in the set and divide the sum by the number in order to find the arithmetic mean. For example, the student's marks in computer science: 3, 4, 3, 5, 5. The average rating is 4 for a quarter. We found the arithmetic mean using the formula: =(3 + 4 + 3 + 5 + 5) / 5.
How can you quickly do this with Excel functions? Take for example a number of random numbers in a row:
- We put the cursor in cell A2 (under a set of numbers). In the menu – «HOME»-«Editing»-«AutoSum»-«Average» button. A formula appears after clicking in the active cell. Select the range: A1: H1 and press ENTER.
- The second method is based on the same principle of finding the arithmetic mean. But we will call the function AVERAGE differently. Using the function wizard (use fx button or key combination SHIFT + F3).
- The third way to call the AVERAGE function from the panel: «FORMULAS»-«More Function»-«Statistical»-«AVERAGE».
Or you can make cell to be active and just manually enter the formula: =AVERAGE(A1:A8).
Now let's see what the AVERAGE function be able to:
Let us find the arithmetic mean of the first two and three last numbers. Formula: =AVERAGE(A1:B1,F1:H1).
Average value by condition
A numerical criterion or a textual criterion can be the condition for finding the arithmetic mean. We will use the function: = AVERAGEIF().
Find the arithmetic mean for numbers that are greater or equal to 10.
The result of using the function "AVERAGEIF" by the condition ">=10" is next:
The third argument "Averaging Range" is omitted. Firstly, it is not necessary. Secondly, the range analyzed by the program contains ONLY numeric values. In the cells specified in the first argument, the search will be performed according to the condition specified in the second argument.
Attention! You can specify the search criteria in the cell. And in the formula make a reference to it.
Let's find the average value of numbers by the text criterion. For example, the average sales of goods "Tables".
The function will look like this:
Range is a column with the names of goods. Search criteria is a link to a cell with the word "Tables" (you can insert the word "Tables" instead of the A7 link). The averaging range is the cells from which data will be taken to calculate the arithmetic mean.
We get the following value as a result of calculating using the function:
Attention! It is mandatory to point the averaging range for the text criterion (condition).
How to calculate the weighted average price in Excel?
How to calculate the average percentage in Excel? For this purpose, the SUMPRODUCTS and SUM functions are suitable. Table for an example:
How did we know the weighted average price?
Using the formula =SUMPRODUCT() we learn the total revenue after the realization of the entire quantity of goods. And the =SUM() function sums the goods quantity. We found a weighted average price having divided the total revenue from the sale of goods by the total number of units of the goods. This indicator takes into account the "weight" of each price and its share in the total mass of values.
The standard deviation: the formula in Excel
There is a standard deviation in the entire population and in the sampling. In the first case, this is the square root of the general variance. In the second, this is a square root of the sampling variance.
A dispersion formula is compiled to calculate this statistical indicator. The square root is extracted from it. But in Excel, there is a ready-made function for finding the root-mean-square deviation.
The root-mean-square deviation is related to the scope of the initial data. This is not enough for a figurative representation of the variation of the analyzed range. The coefficient of variation is calculated to obtain the relative level of the data variability.
standard deviation / arithmetic mean
The formula in Excel is as follows:
STDEV.P (range of values) / AVERAGE (range of values).
The coefficient of variation is considered as a percentage. Therefore, set the percentage format in the cell set.
Понятие среднее значение за частую подразумевает среднее арифметическое число. То есть результат после разделения суммы чисел на их количество. Так работает функция СРЗНАЧ. Но в программе Excel можно получить еже 2 вида средних значений: МЕДИАНА и МОДА – самое популярное и часто встречаемое значение в списке данных.
Примеры как найти медиальное, популярное и арифметическое среднее
Ниже на рисунке представлен список из 20 студентов с оценками их контрольных работ. Допустим, что мы хотим проанализировать все их оценки по всем трем видам средних значений в Excel:
- Арифметическое.
- Медиана.
- Мода - наиболее популярное значение.
На основе полученных значений сделаем соответствующие выводы.
Три формулы, используемые для расчетов среднего арифметического, медиального и самого популярного значения в диапазоне исходных данных, которые изображены выше на рисунке:
В результате вычислений формул получаем 3 разных значения средний для одной и той же самой группы чисел.
Как найти среднее значение в Excel с помощью функции СРЗНАЧ
Среднее арифметическое число оценок равно 85,1 медиальное – 90,5 и наиболее часто встречаемая оценка 93 балла. Среднеарифметическое число рассчитано с помощью функции СРЗНАЧ, которая суммирует все значения в указанном диапазоне и делит их сумму на их же количество. Сравнение медианы и наиболее часто встречающегося числа со средним арифметическим позволяет получить дополнительную информацию после такого анализа данных.
Формула вычисления среднего значения в Excel по функции МЕДИАНА
Медиану в Excel вычисляют с помощью функции со соответствующим названием МЕДИАНА. Если все оценки будут отсортированы по возрастанию, функция МЕДИАНА будет возвращать значение, которое находится точно по середине списка данных. Так как общее количество оценок представляет собой парное число, данный список не содержит конкретного числового значения. В такие случаи функция возвращает среднее арифметическое число двух значений находящийся наиболее близко к центру. Как видно на рисунке после сортировки списка по убыванию наиболее близко к центру находятся сразу два числа 90 и 91:
Соответственно функция МЕДИАНА возвращает в итоговом результате своих вычислений число 90,5. Что из этого следует?
Большая разница между средним арифметическим числом и медианой означает, что показатели оценок весьма неравномерные. Например, в данному случае большая разница возникает между наибольшими и наименьшими оценками. Если же среди статистических данных находится одно аномально большое или малое значение, оно может существенно влиять на показатель среднего арифметического числа, но не на медиану!
Формула расчета среднего значения в Excel с функцией МОДА
Функция МОДА.ОДН возвращает массив средних значений в Excel
Начиная с версии 2010-й в Excel были введены две новые функции служащие для поиска наиболее популярных значений МОДА.НСК и МОДА.ОДН. Функция МОДА.НСК работает также, как и обычная МОДА возвращает наиболее часто встречаемое значение, если их есть несколько. А функция МОДА.ОДН возвращает целый одномерный массив значений со всеми популярными значениями.
Формула, которая содержит функцию МОДА.ОДН выполняется в массиве с помощью нажатия комбинации клавиш CTRL+SHIFT+Enter (а не просто Enter как обычно выполняется ввод формул). Если все сделано правильно в строке формул по краям появятся фигурные скобки (<>), которые информируют пользователя о том, что введена формула массива.
wikiHow работает по принципу вики, а это значит, что многие наши статьи написаны несколькими авторами. При создании этой статьи над ее редактированием и улучшением работали авторы-волонтеры.
В математике (и статистике) среднее значение – это некоторое число, заключенное между наименьшим и наибольшим из значений из некоторого множества чисел. Есть три распространенных средних величины: среднее арифметическое, медиана и мода. В Microsoft Excel вы можете вычислить все три величины, а также найти среднее взвешенное, которое используется при подсчете средней цены.
- В большинстве случаев числа вводятся в столбцах (как и в нашем примере), поэтому введите числа в ячейки A1 – A10.
- Числа для ввода: 2, 3, 5, 5, 7, 7, 7, 9, 16, и 19.
- Если хотите, найдите сумму чисел, введя формулу «=СУММ(A1:A10)» в ячейке A11 (без кавычек).
- Нажмите на пустую ячейку, например, А12, а затем введите «=СРЗНАЧ(A1:10)» (без кавычек).
- Нажмите на пустую ячейку, а затем нажмите на кнопку «fx» (в строке формул непосредственно над рабочим листом Excel). В открывшемся окне в списке «Выберите функцию» найдите и выделите «СРЗНАЧ», а затем нажмите OK. Введите диапазон «A1:A10» в строке «Число 1» открывшегося окна и нажмите ОК.
- Введите знак равенства (=) в строке формул. Слева от строки формул в раскрывающемся списке «Функции» найдите и выберите «СРЗНАЧ». Введите диапазон «A1:A10» в строке «Число 1» открывшегося окна и нажмите ОК.
- Для проверки правильности ответа в любой пустой ячейке введите формулу «=A11/10».
- Среднее арифметическое хорошо применимо для центрирования распределения, когда отдельные числа в некотором множестве чисел не очень отличаются друг от друга.
Введите числа, медиану которых вы хотите найти. Например, рассмотрим множество из десяти чисел (2, 3, 5, 5, 7, 7, 7, 9, 16 и 19). Введите эти числа в ячейки А1 – А10.
- Нажмите на пустую ячейку, например, А13, а затем введите «=МЕДИАНА(A1:10)» (без кавычек).
- Нажмите на пустую ячейку, а затем нажмите на кнопку «fx» (в строке формул непосредственно над рабочим листом Excel). В открывшемся окне в списке «Выберите функцию» найдите и выделите «МЕДИАНА», а затем нажмите OK. Введите диапазон «A1:A10» в строке «Число 1» открывшегося окна и нажмите ОК.
- Введите знак равенства (=) в строке формул. Слева от строки формул в раскрывающемся списке «Функции» найдите и выберите «МЕДИАНА». Введите диапазон «A1:A10» в строке «Число 1» открывшегося окна и нажмите ОК.
В ячейке, в которую вы вели формулу, отобразится значение медианы, при котором половина чисел в некотором множестве чисел имеет более высокие значения, чем медиана, а другая половина имеет более низкие значения, чем медиана (в нашем примере медиана равна 7). Медиана может быть равна или не равна одному из чисел в некотором множестве чисел.
Соавтор(ы): Jack Lloyd. Джек Ллойд — автор и редактор, пишущий о технологиях для wikiHow. Имеет более двух лет опыта в написании и редактировании статей на технические темы. Энтузиаст всего связанного с технологиями и учитель английского языка.
Из этой статьи вы узнаете, как в Excel 2007 найти среднее значение и стандартное отклонение набора данных.
- Если у вас есть готовая таблица Excel с нужными данными, дважды щелкните по файлу, чтобы открыть его в Excel, а затем вычислите среднее значение
- Выберите ячейку в столбце, в котором будут находиться все числа.
Нажмите ↵ Enter . Число отобразится в выбранной ячейке, а курсор перейдет в следующую ячейку столбца.
Введите оставшиеся числа. Введите второе число, нажмите «Enter» и так до тех пор, пока не введете все числа в один столбец. Это облегчит вычисление среднего значения и стандартного отклонения.
Введите формулу для вычисления среднего значения. В ячейке введите =СРЗНАЧ() . [1] X Источник информации
Поставьте курсор между круглыми скобками. Для этого один раз нажмите на клавишу с направленной влево стрелкой или щелкните между двумя скобками в текстовом поле в верхней части таблицы.
- Полная формула должна выглядеть так: =СРЗНАЧ(A1:A11)
- Чтобы вычислить среднее значение нескольких чисел (а не всего диапазона данных), внутри круглых скобок введите адреса ячеек с нужными числами через запятые. Например, чтобы найти среднее значение чисел в ячейках A1, A3 и A10, введите =СРЗНАЧ(A1,A3,А10) .
Нажмите ↵ Enter . Формула будет выполнена, а в ячейке с формулой отобразится среднее значение выбранных данных.
Введите формулу для вычисления стандартного отклонения. В ячейке введите =СТАНДОТКЛОН() . [2] X Источник информации
Поставьте курсор между круглыми скобками. Для этого один раз нажмите на клавишу с направленной влево стрелкой или щелкните между двумя скобками в текстовом поле в верхней части таблицы.
- Полная формула должна выглядеть так: =СТАНДОТКЛОН(A1:A11)
- Чтобы вычислить стандартное отклонение нескольких чисел (а не всего диапазона данных), внутри круглых скобок введите адреса ячеек с нужными числами через запятые. Например, чтобы найти стандартное отклонение чисел в ячейках A1, A3 и A10, введите =СТАНДОТКЛОН(A1,A3,А10) .
Нажмите ↵ Enter . Формула будет выполнена, а в ячейке с формулой отобразится стандартное отклонение выбранных данных.
- Если изменить значение в одной из ячеек диапазона данных, в ячейке с формулой отобразится новое (пересчитанное) среднее значение или стандартное отклонение.
- В принципе, описанные здесь методы можно применить в более поздней версии Excel (например, в Excel 2016).
- Дважды проверьте, правильно ли введены данные, прежде чем вычислять среднее значение или стандартное отклонение.
Дополнительные статьи
Об этой статье
Читайте также: