Example 1
The most common shoe size
B11 =MODE.SNGL(B2:B9)
Result: 9
Size 9 sold three times, more than any other size.
B11 =MODE.SNGL(B2:B9) returns 9
Returns the most frequently occurring number in a set. If no number repeats, it returns #N/A.
Syntax
=MODE.SNGL(, [number2], ...)
Excel 2010 and later, including Excel for Microsoft 365 and Excel for the web. The older MODE function works in every version.
Try it
Edit the formula in B11 or change the inputs. The sheet recalculates as you type.
B11 =MODE.SNGL(B2:B9) returns 9
MODE.SNGL returns the number that appears most often. It answers "which size sells the most?", "what is the usual number of items per order?" and "what score did most people give?".
MODE.SNGL looks through the numbers and counts how often each appears. It returns the one with the highest count.
#N/A.MODE.SNGL was introduced in Excel 2010 to sit alongside MODE.MULT. The older MODE function returns the same answer and still works in every version. Microsoft keeps MODE for compatibility and files it as a compatibility function, so new work should use MODE.SNGL. If a workbook must open in Excel 2007 or earlier, use MODE.
The #N/A result is correct, but unfriendly in a report. Wrap the formula:
=IFERROR(MODE.SNGL(B2:B9), "No repeats")
Be careful with IFERROR, because it also hides errors that come from bad data. If the range might hold errors, test the count of repeats directly instead.
The mode is the right "typical" value for discrete data, such as shoe sizes, ratings from 1 to 5, or the number of bags per order. It is a poor summary of continuous data, such as exact prices or timings, where repeats are rare and a single repeated value tells you little. For those, use MEDIAN or AVERAGE.
The mode, median and mean can all differ. Ratings of 1, 2, 2, 2, 5 have a mode of 2, a median of 2 and a mean of 2.4. Ratings of 5, 5, 5, 4, 1 have a mode and median of 5 but a mean of 4.
B2:B9.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B11 =MODE.SNGL(B2:B9)
Result: 9
Size 9 sold three times, more than any other size.
B11 =MODE.SNGL(B2:B9) returns 9
Example 2
B9 =MODE.SNGL(B2:B7)
Result: 8
Both 8 and 9 appear twice. MODE.SNGL returns 8, because it comes first in the list.
B9 =MODE.SNGL(B2:B7) returns 8
Example 3
B7 =MODE.SNGL(B2:B5)
Result: #N/A
Every value appears once, so there is no mode.
B7 =MODE.SNGL(B2:B5) returns #N/A
Example 4
B7 =IFERROR(MODE.SNGL(B2:B5),"No repeats")
Result: No repeats
IFERROR replaces the #N/A with a message.
B7 =IFERROR(MODE.SNGL(B2:B5),"No repeats") returns No repeats
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B11, return the most common size sold in Store 1.
Answer in B11.
#N/A. That is a valid answer, so decide how to show it rather than assuming the formula is broken.Nothing in the result. MODE.SNGL is the newer name, introduced in Excel 2010, and MODE is kept for compatibility. Use MODE.SNGL in new work.
MODE.SNGL only handles numbers. For text, use `=INDEX(A2:A9,MODE.SNGL(MATCH(A2:A9,A2:A9,0)))`, which matches each entry to its first position and finds the most common position.
No number in the range appears more than once. Wrap the formula in IFERROR to show a message instead.
Use MODE.MULT. In Microsoft 365 it spills every tied value into the cells below.
Tracks take you from the basics to modelling, one graded exercise at a time.