This article was co-authored by wikiHow staff writer, Megaera Lorenz, PhD. Megaera Lorenz is an Egyptologist and Writer with over 20 years of experience in public education. In 2017, she graduated with her PhD in Egyptology from The University of Chicago, where she served for several years as a content advisor and program facilitator for the Oriental Institute Museum’s Public Education office. She has also developed and taught Egyptology courses at The University of Chicago and Loyola University Chicago.
This article has been viewed 172,269 times.
Learn more...
In statistics, “mode” refers to the number that appears most frequently in a set of numbers. When you’re dealing with large sets of data, using a program like Excel can make it much easier to calculate mode. In this article, we’ll talk you through the best way to calculate mode in Excel using the MODE function.
Steps
Single Mode Function
-
1Enter each number in the data set into its own cell. If you’re looking for a single number that occurs most frequently in a group of numbers, use the MODE.SNGL function.[1] For consistency, it helps to enter the number in consecutive cells in either a row or column, and for readability, a column is usually better.
- MODE.SNGL will only display one mode for a group of numbers. If your data has more than one mode (that is, multiple numbers that occur with equal frequency), this function will pick the first one in the set and ignore the others.
-
2Enter the =MODE.SNGL function in the cell where you want the result. The MODE function's format is =MODE.SNGL(Cx:Dy), where C and D represent the letters of the columns of the first and last cell in the range, and x and y represent the numbers of the first and last row in the range. If all your data is in a single column, the 2 column letters will be the same (e.g., A1:A7).[2]
- If you’re using a version of Excel older than 2010, write =MODE(Cx:Dy) without the .SNGL suffix. This will also work in the most recent versions of Excel. Either method will only return one mode result, even if there are multiple modes in the data set.
- You can also specify each cell individually, up to 255 cells, as in =MODE.SNGL(A1, A2, A3), but this can get cumbersome if you have a big dataset. You can also use the function with constants, for example, =MODE.SNGL(4,4,6), but this requires editing the function each time you wish to search for a different mode.
- You may want to format the cell in which the mode will display with bolding or italics to distinguish it from the numbers in the dataset, or put it in a separate column or row from the other numbers.
Advertisement -
3Calculate and display the result. This normally happens automatically in Excel, but if you have set up your spreadsheet for manual calculation, you'll need to press the F9 key to display the mode.[3] Otherwise, as soon as you enter the formula and hit ↵ Enter, the mode should appear in the cell where you entered the function formula.
- For a dataset of 10, 7, 9, 8, 7, 0, and 4 entered in cells 1 through 8 of Column A, the function =MODE.SNGL(A1:A8) will deliver a result of 7, because 7 appears more often in the data than any other number.
- If the data set contains more than one number that qualifies as the mode (such as 7 and 9 each appearing twice and every other number appearing only once), whichever mode number is listed first in the data set will be the result.
- If none of the numbers in the data set appear more often than any other, the MODE function will display the error result #N/A.
- The MODE function will ignore any cells in the range that are blank or contain something other than a number.
Multiple Mode Function
-
1Enter each number in the data set into its own cell. The MODE.MULT function is useful if you have a dataset with more than one mode. To use it, first fill out a row or column with all the numbers in the set.[4]
- The MODE.MULT function is only available in Excel 2010 and later versions.
- As an example of a data set with more than one mode, imagine that your group of numbers is 8, 7, 5, 7, 1, 3, and 8. 8 and 7 both appear twice in the group, and both are more frequent than any of the other numbers. These would be your modes.
-
2Enter the MODE.MULT function into the formula bar. The MODE.MULT function's format is =MODE.MULT(Cx:Dy), where C and D represent the first and last column letters in the range, and x and y are the row numbers of the first and last cells in the range. Select the cell where you want the first mode in the array to appear and type the formula into the formula bar or directly into the cell.[5]
- For example, if your range includes the data in A1 through A29, you’d write =MODE.MULT(A1:A29). You can also type the individual cells or constants in the data set into the formula in place of the range, but this is only practical for very small data sets that you don’t plan to change.
- By default, this function will return all the modes for the selected range in the form of a vertical array—that is, it will create a column listing all the modes in the selected data range.
- If you’d rather view the modes as a horizontal array (that is, a row of results instead of a column), rewrite the formula as =TRANSPOSE(MODE.MULT(Cx:Dy)).
-
3Hit ↵ Enter to display the modes. Once you type in the formula and hit ↵ Enter or ⏎ Return on your keyboard, the modes should automatically appear in an array starting with the selected cell.[6] You might want to select a cell away from the rest of the data or use some type of special formatting (such as bold or italics) so you can tell the modes apart from the other numbers on the spreadsheet.
- If you’ve set the spreadsheet for manual calculations, hit F9 to calculate the modes. Otherwise, the array should update automatically any time you make changes to the data in the selected range.
- Just like MODE.SNGL, MODE.MULT will ignore any cells that are empty or contain data other than numbers.
- If there are no modes in the set—that is, if there’s no number that appears more times than any other in the group—you’ll get a result of #N/A.
Community Q&A
-
QuestionI am using Mode for a series of non-consecutive cells in a row. When text or blanks occur, I get a #value error. How do I get rid of it?Community AnswerYou can't. You need to choose your data so that there are no empty cells (or use a bit of VBA to exclude empty cells).
Warnings
- Using the MODE.MULT formula to find a large number of modes at once may slow down your computer if it lacks sufficient processing speed and memory.⧼thumbs_response⧽
References
- ↑ https://support.microsoft.com/en-us/office/mode-sngl-function-f1267c16-66c6-4386-959f-8fba5f8bb7f8
- ↑ https://support.microsoft.com/en-us/office/mode-sngl-function-f1267c16-66c6-4386-959f-8fba5f8bb7f8
- ↑ https://docs.microsoft.com/en-us/office/troubleshoot/excel/current-mode-of-calculation
- ↑ https://support.microsoft.com/en-us/office/mode-mult-function-50fd9464-b2ba-4191-b57a-39446689ae8c
- ↑ https://support.microsoft.com/en-us/office/mode-mult-function-50fd9464-b2ba-4191-b57a-39446689ae8c
- ↑ https://support.microsoft.com/en-us/office/mode-mult-function-50fd9464-b2ba-4191-b57a-39446689ae8c