Written by Allen Wyatt (last updated April 11, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365
Barry has a worksheet that contains readings from a production process at his plant. These readings are in column D of the worksheet, and there can be several thousand of them on a daily basis. The readings are always positive integer values. Barry needs to know what reading most frequently occurs in the column. He would like to know what the reading is and how many occurrences there are for that reading.
There are many different ways you can approach this task, but I'll consider the most straightforward. Historically, Excel has provided the MODE function, which returns the most frequently occurring value in a range of cells. So, Barry could return the most frequent value by simply using this formula:
=MODE(D:D)
What this doesn't do, however, is return "ties" where two values may occur at the same frequency. That is why, beginning with Excel 2010, Microsoft introduced the MODE.SNGL and MODE.MULT functions. The MODE.SNGL function returns a single value, so it is effectively the same as the MODE function. MODE.MULT, however, could return multiple values—in other words, ties:
=MODE.MULT(D:D)
Since MODE.MULT could return multiple results, it was necessary to enter it as an array formula. In the most modern versions of Excel, however, no special entry is needed. If you use the MODE.MULT formula in cell F2, Barry could determine the count he wanted by putting this in another cell:
=COUNTIF(D:D,F2)
If you are using Microsoft 365, you could devise a formula that will return all of the info that Barry needs—including ties:
=LET(n,MODE.MULT(D:.D),HSTACK(n,COUNTIF(D:.D,n)))
Note that this formula uses a trimmed version of column D, accessing only those cells that contain values. This is done by using the dot indicator before the second portion of the range. You could also use this variation of the formula if you find it easier to use:
=LET(r,TRIMRANGE(D:D),n,MODE.MULT(r),HSTACK(n,COUNTIF(r,n)))
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13974) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.
Program Successfully in Excel! This guide will provide you with all the information you need to automate any task in Excel and save time and effort. Learn how to extend Excel's functionality with VBA to create solutions not possible with the standard features. Includes latest information for Excel 2024 and Microsoft 365. Check out Mastering Excel VBA Programming today!
The SUMIF function is supposed to work just fine doing comparisons with text values. This isn't a hard-and-fast rule, ...
Discover MoreWhen working with text in a formula, you may need to extract the left-most characters from a string of text or from a ...
Discover MoreNeed to know which week of the year a particular date falls within? Excel provides the WEEKNUM function so you can easily ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-04-11 16:30:40
J. Woolley
I think the Tip's 4th formula should have been
=LET(r, D:.D, n, MODE.MULT(r), HSTACK(n, COUNTIF(r, n)))
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments