=iferror(MODE(IF(AJ15:AJ24<>0,AJ15:AJ24)),"")

If your formula does not result in an error then the result of your formula is displayed. When your formula generates an error, "" or nothing is displayed.

Answer from Forward Ed on Stack Overflow
🌐
Reddit
reddit.com › r/excel › my mode(if formula is returning #n/a no matter what i try.
r/excel on Reddit: My mode(if formula is returning #N/A no matter what I try.
February 7, 2019 -

I'm trying to create a mode if formula. I have an array of data for which I'm looking for the mode of certain variables. Basically, I'm looking to create a table using the mode values for the criteria.
I have tried using the following function: =MODE(IF([DATA ARRAY]=COMPARATIVE VALUE,DATA))
But, I have been unable to get it to work, despite using ctrl, shift, enter.
I need help to figure this out.

🌐
Excel Forum
excelforum.com › excel-formulas-and-functions › 1208669-mode-formula-not-working-as-expected.html
MODE formula not working as expected [SOLVED]
November 14, 2017 - Try this in V2: =IFERROR(MODE(IF(L$2:L$402=U2,M$2:M$402)),INDEX(M$2:M$402,MATCH(1,IF((L$2:L$402=U2)*(M$2:M$402<>""),1),0))) Ctrl Shift Enter If there is no mode (but there is a number), the formula will return the first matched number. If there is no mode and there is no number, the formula ...
Discussions

MODE not working with named range
I've created a named range for a block of data. AVERAGE, MEDIAN, COUNT, COUNTIF, and STDEV all work with the named range. MODE, however, returns a #VALUE error. If I use MODE without the named range by dragging over the data (need to use CTRL as I drag because the data is not contiguous), it... More on mrexcel.com
🌐 mrexcel.com
10
0
June 18, 2021
Mode formula not working - Stack Overflow
I'm struggling with MODE I have some surveys I am analysing. Currently using =MODE(IF(AJ15:AJ24 0,AJ15:AJ24)) One Question's answers are: 0 0 0 0 0 0 0 1 2 3 the formula is giving #VALUE er... More on stackoverflow.com
🌐 stackoverflow.com
Mode.Mult Function not working
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser. ... Hi I am having a problem using the Mode.mult function in excel 2010. When I use the formula to find multiple modes for a data set, it gives me one mode. More on mrexcel.com
🌐 mrexcel.com
16
0
March 15, 2017
My mode(if formula is returning #N/A no matter what I try.
Does your IF suppressed data yield a duplicate of any value? May be obvious but if what emerges is 5 6 7 MODE() can't find a mode.. More on reddit.com
🌐 r/excel
4
1
February 7, 2019
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 40d7cbc7-f98a-41db-ac3f-39188a1cfc77 › problems-with-mode-formula-in-excel
Problems with Mode formula in Excel - Microsoft Q&A
February 13, 2025 - I believe I have formulas that will work for you. ... In the max rows, Row 13, 27, etc. I used: ... Both of these formulas will result in #N/A if there is no data in the Row/Column. That is good. The MODE formulas will replace those with "" so that they will not be counted.
🌐
Microsoft Support
support.microsoft.com › en-us › office › mode-function-e45192ce-9122-4980-82ed-4bdc34973120
MODE function - Microsoft Support
Arguments that are error values or text that can't be translated into numbers cause errors. If the data set contains no duplicate data points, MODE returns the #N/A error value. The MODE function measures central tendency, which is the location of the center of a group of numbers in a statistical ...
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
MODE not working with named range | MrExcel Message Board
June 18, 2021 - If I use MODE without the named range by dragging over the data (need to use CTRL as I drag because the data is not contiguous), it ... Appears MODE doesn't work with non-contiguous named ranges. You can write a custom function as a workaround.
🌐
YouTube
youtube.com › mary bruce
NA for Mode in Excel Toolpak - YouTube
AboutPressCopyrightContact usCreatorsAdvertiseDevelopersTermsPrivacyPolicy & SafetyHow YouTube worksTest new features · © 2024 Google LLC
Published   August 6, 2019
Views   2K
Find elsewhere
🌐
Corporate Finance Institute
corporatefinanceinstitute.com › home › resources › mode function
MODE Function - Overview, Formula, Example
October 10, 2023 - In Excel 2010, the MODE function was replaced by the MODE.SNGL function. Although it’s been replaced, current versions of Excel still provide the MODE function to allow compatibility with earlier versions. It is stored within the list of compatibility functions. However, the MODE function may not be available in future versions of Excel, so it is advised that you use the MODE.SNGL function whenever possible.
🌐
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › excel formulas not working: how to fix formulas not updating or not calculating
Excel formulas not working: how to fix formulas not updating or not calculating
March 21, 2023 - The most common reason for an Excel formula not calculating is that you have inadvertently activated the Show Formulas mode in a worksheet. To get the formula to display the calculated result, just turn off the Show Formulas mode by doing one ...
🌐
W3Schools
w3schools.com › excel › excel_mode.php
Excel MODE Function
The MODE function is a premade function in Excel, which is used to find the number seen most times. This function always returns a single number. ... It returns the most occurring number in a range or array. Note: The mode is a type of average value, which describes where most of the data is located.
🌐
TechOnTheNet
techonthenet.com › excel › formulas › mode.php
MS Excel: How to use the MODE Function (WS)
If all numeric values in the set are unique, the MODE function returns the #N/A error. If a text value such as "A" is entered as a parameter, the MODE function will return the #VALUE! error. If a range or cell reference contains non-numeric values such as text values, logical values or empty cells, these values will be ignored. See also MODE.SNGL and MODE.MULT functions. Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003
🌐
Indeed
indeed.com › career guide › career development › how to calculate mode in excel in 4 steps (plus tips)
How To Calculate Mode in Excel in 4 Steps (Plus Tips) | Indeed.com
July 2, 2024 - One rule to keep in mind when using the functions below is that the functions only work with numbers or names, arrays and references that contain numbers. This means that if a cell contains only non-numeric text, then the mode function outputs an error instead of a number. Calculating mode in Excel has two basic formats: referencing constant values and referencing a range of cells.
🌐
Exceljet
exceljet.net › mode function
Excel MODE function | Exceljet
November 24, 2021 - The Excel MODE function returns the most frequently occurring number in a numeric data set. For example, =MODE(1,2,4,4,5,5,5,6) returns 5. ... A number representing the mode. ... The MODE function returns the most frequently occurring number in a set of numeric data. If supplied data does not contain any duplicate numbers, the MODE function returns a #N/A error.
🌐
Excel Campus
excelcampus.com › home › tutorials (blog) › how to fix excel formulas that are not calculating or updating
How to Fix Excel Formulas that are Not Calculating or Updating - Excel Campus
January 16, 2023 - If you are using the desktop app and open a file that was saved in manual calc mode by someone else, then that can change your Excel into manual calc mode. This ONLY happens if the file is the first file you open in the Excel session. I added a section to the post titled “Calculation Settings are Confusing!” that explains this behavior in more detail. Thanks again! ... I often have issue with user defined functions not calculating when not on the active sheet.
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Mode.Mult Function not working | MrExcel Message Board
March 15, 2017 - But there is only one modal value in that set, i.e. 4 (which occurs 4 times - no other value occurs that number of times). Perhaps you misunderstood the function MODE.MULT? It will only return more than one value if there are several values which share the mode.
🌐
SimpleSheets
simplesheets.co › blog › excel-formulas-not-calculating
How To Fix Excel Formulas Not Calculating, Working, or Updating
Ensure this mode is turned off to display calculated results. The formula uses features unavailable in your version of Excel or references an external source improperly. ... Verify that the formula uses functions supported by your version of Excel.
🌐
The Bricks
thebricks.com › resources › how-to-use-the-mode-function-in-excel-a-step-by-step-guide
How to Use the MODE Function in Excel: A Step-by-Step Guide
November 7, 2025 - MODE: This is an older "compatibility" function from Excel 2007 and earlier. While it still works, Microsoft recommends using MODE.SNGL instead for greater accuracy and consistency with modern versions of Excel.
🌐
YouTube
youtube.com › watch
"how To Fix Excel Formulas That Aren't Calculating Or Updating"
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.