Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Calculating mean, median, and mode

From: Excel 2007: Business Statistics

Video: Calculating mean, median, and mode

When you analyze a data set, you can often gather a great deal of information about the data by finding its central values. In this movie, I'll show you how to calculate three different types of central values: the mean, the median, and the mode. The common word for the arithmetic mean of a data set is the average. It's the sum of the values divided by the number values. So, for example, in this table here, I have seven days and then the sales totals for those days. If I want find the average in cell B1, I can type "=average(" and then the name of the table, which is DailySales. So I will start typing it and then press Tab to accept the formula AutoComplete value.

Calculating mean, median, and mode

When you analyze a data set, you can often gather a great deal of information about the data by finding its central values. In this movie, I'll show you how to calculate three different types of central values: the mean, the median, and the mode. The common word for the arithmetic mean of a data set is the average. It's the sum of the values divided by the number values. So, for example, in this table here, I have seven days and then the sales totals for those days. If I want find the average in cell B1, I can type "=average(" and then the name of the table, which is DailySales. So I will start typing it and then press Tab to accept the formula AutoComplete value.

Now I want the Sales column, so I'll type a left square bracket, start typing Sales, Sales is highlighted, Tab to accept it, right square bracket, and then a right parenthesis to close the formula. When I press Enter, the value appears: 3,825.9. Averages can be misleading if you have one or two disproportionately large values in a data set, such as days where customers made unusually big orders. So let's say, for example, that on March 1, instead of having $5,194 in sales that a customer had ordered enough to push the total up to $20,000.

When you press Enter, you see that the mean has gone up to almost $6,000, when all of the other values except for that one 20,000 are still in the $3,000-$4,000 range for the most part. So always be careful when you're examining your data to make sure that you don't include any really large values, anything that doesn't seem to fit with the rest of the data pattern. Now if those values occur a couple of times, in your estimation, well it's not unusual to have days where there are huge orders, then certainly include them; that's part of the business knowledge that you have about your operation. But if it's just one instance, then don't worry about it; you should exclude it.

So I guess the question is how do you do that? Well you do that by filtering your value out of the table. So, for example, if you want to create a filter, you could click the Sales column's Filter arrow, click Number Filters that are Less Than, and let's say 10,000 as a reasonable upper bound. When we click OK, Excel filters the table, but you'll notice that the mean didn't change; it still looks at all the values. What we can do, however, is add a total row at the bottom of the table, and that will display the average of only the visible values.

To do that, you click any cell in the table, and then on the Design Contextual tab, check the Total Row box. When you do that, it displays a total, but if you click the cell in the Total Row, click the down arrow, and then click the AVERAGE function, Excel displays a value of 3,598, which is the average of only the visible values. If you remove the filter, by clicking the Filter arrow and then clicking Clear Filter from Sales, then Excel's AVERAGE function here in the Total Row gives the same answer as the formula in cell B1.

Next I would like to talk about the median value. The median value of a data set is the value in the middle of the values if they were sorted in ascending order-- that is, from lowest to highest. To discover the median in the data set, you use the MEDIAN function, so you type "=MEDIAN(" and then the name of the table, which is CustomerCount, and we are using the data in the Customers field, or column. Press tab to accept the field name. Right square bracket. Right parenthesis.

Everything looks right. And we get the median value of 116. Now the values aren't sorted in the table by customers, so to do that--to make sure that 116 is the proper value--I will sort these values from smallest to largest. And you see that the value that appears in the middle is 116, which is the median. The median value is not affected by extremely large or extremely small values. So, for example, if I were to change the value 130 to 500, or even 5,000, and press Return, the median doesn't change because 116 is still in the middle.

The reason that happened is because 5,000 is still in the same half, if you were, of the data set. So we have 49, 51, to 74 that are all less than 116, and 123, 126, and 5,000 that are all greater than 116. If I were to change 5,000 to 1 and press Return, it would move to a different half of the data set, and you'll notice that 74 is the new median, which we can verify by resorting the data from smallest to largest. And you see that 74 is now in the median position.

Finally, I would like to talk about the mode. The mode of a data collection is the most common value. In Excel 2007, if multiple values are tied for the highest frequency, the program picks the lowest value as the mode. So, for example, in the data set here, if I want to find the most common value in the Customers column, type "=MODE(" and then the name of the table, which is "HourlyCustomers," and we're looking in the Customers column, using that data. Right square bracket. Right parenthesis to close. Return. And the MODE formula returns a value 28.

And if we sort this data like we did last time, sorting from smallest to largest, then we'll see that indeed the number 28 occurs three separate times. The number 14 occurs twice. And because it's lower than 28, if I were to change one of the 28s to another value that doesn't occur--let's say 30, which doesn't appear anywhere else--and hit Return, then the mode sees that there are two occurrences of 28, two occurrences of 14, and using its own rules, it selects the lower value, 14, as the mode.

Calculating modes is only useful for what's called "discrete data," where the values are whole numbers such as 10, 25, or 50. Continuous data, where the measurements could have decimal components, either won't have the most common value or there will be a duplication that occurs entirely by chance. Most of these statistical techniques you will use in this course rely heavily on the mean, or average, value of a data set. And unless your data set contains one or two extremely large or extremely small values that distort the average, it's the most useful value.

If you're interested in the value that would be in the middle of a range if you sorted the values in ascending or descending order, calculate the median. Calculating the mode, the most common value in a data set, could point out the most common answer in a survey and help you discover information about your customers and their opinions about your business.

Show transcript

This video is part of

Image for Excel 2007: Business Statistics
Excel 2007: Business Statistics

56 video lessons · 14517 viewers

Curt Frye
Author

 
Expand all | Collapse all
  1. 2m 14s
    1. Welcome
      1m 25s
    2. Using the exercise files
      49s
  2. 10m 19s
    1. Introducing statistical analysis
      3m 28s
    2. Understanding statistical terms
      4m 26s
    3. Using statistics
      2m 25s
  3. 11m 14s
    1. Creating and using an Excel table
      4m 50s
    2. Installing the Analysis ToolPak
      2m 41s
    3. Auditing formulas step by step
      3m 43s
  4. 28m 23s
    1. Creating frequency distributions for qualitative data
      4m 42s
    2. Summarizing data using bar graphs and pie charts
      4m 44s
    3. Creating a frequency distribution using the FREQUENCY function
      4m 0s
    4. Creating a histogram
      2m 55s
    5. Calculating a running total
      5m 6s
    6. Summarizing data using a PivotTable
      6m 56s
  5. 55m 3s
    1. Calculating mean, median, and mode
      7m 2s
    2. Calculating a moving average
      3m 10s
    3. Calculating a seasonal forecast
      3m 34s
    4. Calculating percentiles and quartiles
      5m 54s
    5. Calculating variance and standard deviation
      6m 59s
    6. Summarizing data using descriptive statistics
      3m 47s
    7. Summarizing data using z-scores
      3m 24s
    8. Summarizing data using t-scores
      4m 55s
    9. Calculating covariance
      5m 1s
    10. Calculating correlation
      4m 11s
    11. Calculating correlations for more than two data sets
      3m 41s
    12. Calculating and interpreting chi-square values
      3m 25s
  6. 39m 33s
    1. Visualizing the normal data distribution
      6m 19s
    2. Generating random values
      4m 30s
    3. Calculating binomial probabilities
      4m 1s
    4. Calculating probabilities using the exponential distribution
      5m 58s
    5. Calculating values using the Poisson distribution
      5m 6s
    6. Calculating dependent trials using the hypergeometric distribution
      5m 46s
    7. Calculating probabilities, permutations, and combinations
      7m 53s
  7. 48m 23s
    1. Selecting effective data samples
      9m 19s
    2. Inferring a population mean from a sample mean
      6m 9s
    3. Inferring population distributions based on a proportion of the data set
      4m 10s
    4. Estimating the size of a population given numbered samples
      7m 17s
    5. Calculating a confidence interval for a large sample
      5m 45s
    6. Calculating a confidence interval for a small sample using t-tests
      4m 25s
    7. Calculating a confidence interval given a population proportion
      5m 34s
    8. Calculating sample size required for a given confidence level
      5m 44s
  8. 48m 11s
    1. Defining hypotheses and identifying errors
      5m 15s
    2. Performing one-tailed tests on a large sample's mean
      3m 56s
    3. Performing two-tailed tests on a large sample's mean
      5m 46s
    4. Testing a small sample's mean
      4m 16s
    5. Testing the mean of a population proportion
      5m 21s
    6. Estimating the difference between two populations' means
      5m 37s
    7. Testing hypotheses related to population means
      5m 42s
    8. Inferring results from matched samples selected from two populations
      4m 38s
    9. Analyzing variance using an F-test
      3m 48s
    10. Analyzing variance using ANOVA
      3m 52s
  9. 14m 46s
    1. Creating a linear regression line for an XY (scatter) chart
      2m 30s
    2. Analyzing and interpreting data from the Regression tool
      4m 57s
    3. Estimating and predicting data using the regression formula
      3m 20s
    4. Developing a multiple regression model
      3m 59s
  10. 1m 3s
    1. Additional Resources
      1m 3s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Excel 2007: Business Statistics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.