Start Free Course

MODE Excel Function

Written by ExcelMojo Editorial Team ExcelMojo Editorial Team ExcelMojo editorial profile and article credentials. Full Bio
Reviewed by Dheeraj Vaidya, CFA, FRM Dheeraj Vaidya, CFA, FRM Reviewed for accuracy, clarity, and editorial standards. Full Bio
Updated Apr 27, 2026
Read Time 11 min

What Is MODE Function In Excel?

The MODE function in Excel determines the most frequently occurring value in a given data set. And if the supplied array contains two or more modes, the function returns the least mode value.

The MODE Excel function is an inbuilt Statistical function that users can use to find the mode of a given data range while performing financial evaluations. However, the functions MODE.MULT and MODE.SNGL replaced the MODE() in Excel 2010, offering improved accuracy. And the MODE() is now available as a Compatibility function in Excel for backward compatibility.

📥Download the ready-to-use Excel template to practice this tutorial yourself.

Download Excel Template

For example, the below table shows a list of smartphone models and their popularity in 2022 as percentage values in columns A and B, respectively.

Frequently Asked Questions (FAQs)

1. Is there a MODE function in Excel?

There is a MODE function in Excel. It is in the Formulas tab. We can click FormulasMore Functions CompatibilityMODE to access it.

MODE Function in Excel - FAQ 1

And to use the latest version of the MODE(), MODE.SNGL() and MODE.MULT(), click FormulasMore FunctionsStatistical.

2. Why is the MODE function in Excel not working?

The MODE function in Excel may not work because of the below reasons:

The MODE() arguments are not numeric values.
The MODE() arguments contain error values or texts that do not translate into numeric values.
The source data set does not contain reoccurring data points.
All data points in the given data set are text, logical values, or empty cells.

3. How to use the MODE() in Excel VBA?

We can use the MODE() in Excel VBA using the below method:
Application.WorksheetFunction.Mode()

Let us see how to use it in Excel VBA with an example.

The table below shows a grocery items list and the corresponding count of units delivered in columns A and B.

MODE Function in Excel - FAQ 3

Suppose we have to determine the mode of units delivered and display the result in cell E2. Then the steps are:

Step 1: With the active sheet containing the above table, press the keys Alt + F11 to open the VBA Editor.

FAQ 3 - Step 1

Step 2: Choose the required VBAProject and select InsertModule to open the Module1 window.

FAQ 3 - Step 2a

FAQ 3 - Step 2b

Step 3: Enter the VBA code containing the MODE function in the Module1 window to determine the mode of units of grocery items delivered.

Sub mode_fn()
Range(“E2”) = Application.WorksheetFunction.Mode(Range(“B2:B6”))
End Sub

FAQ 3 - Step 2c

Step 4: Now click on the Run Sub/UserForm icon in the top menu to execute the code.

FAQ 3 - Step 4

And finally, if we open the active worksheet after the code gets executed, we will see the required mode value, 2000, in the target cell E2.

FAQ 3 - Step 4a

In the above example, the MODE() in Excel VBA checks the supplied array range for the most frequently occurring values. And as the value 2000 appears twice in the given cell range, B2:B6, the VBA code output is 2000.

Download Template

📥Download the ready-to-use Excel template to practice this tutorial yourself.

Download Excel Template

This has been a guide to MODE Excel Function. Here we learn how to use the MODE formula along with step by step examples and a downloadable excel template. You can learn more from the following articles –