ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   MODE fx in array using multiple criteria (https://www.excelbanter.com/excel-worksheet-functions/178213-mode-fx-array-using-multiple-criteria.html)

Jon Young

MODE fx in array using multiple criteria
 
I can get SUM, MAX and MIN functions to work in arrays with multiple criteria
like this:

{=MAX(Diameter*(Job=$A6)*(Date=$A$1)*(Date<=$A$2) )}

But, from the example above, I now need to use MODE instead of MAX to return
the most frequently used Diameter within the data subset that meets these
same, multiple criteria. I just get 0.

Thanks in advance for helping.


Bernie Deitrick

MODE fx in array using multiple criteria
 
Jon,

Enter using Ctrl-Shift-Enter:

=MODE(IF(Job=$A6,IF(Date=$A$1,IF(Date<=$A$2,Diame ter))))

Just continue with additional nested IFs to add additional criteria.

HTH,
Bernie
MS Excel MVP


"Jon Young" wrote in message
...
I can get SUM, MAX and MIN functions to work in arrays with multiple criteria
like this:

{=MAX(Diameter*(Job=$A6)*(Date=$A$1)*(Date<=$A$2) )}

But, from the example above, I now need to use MODE instead of MAX to return
the most frequently used Diameter within the data subset that meets these
same, multiple criteria. I just get 0.

Thanks in advance for helping.




Jon Young

MODE fx in array using multiple criteria
 
Worked! Thank you.

"Bernie Deitrick" wrote:

Jon,

Enter using Ctrl-Shift-Enter:

=MODE(IF(Job=$A6,IF(Date=$A$1,IF(Date<=$A$2,Diame ter))))

Just continue with additional nested IFs to add additional criteria.

HTH,
Bernie
MS Excel MVP


"Jon Young" wrote in message
...
I can get SUM, MAX and MIN functions to work in arrays with multiple criteria
like this:

{=MAX(Diameter*(Job=$A6)*(Date=$A$1)*(Date<=$A$2) )}

But, from the example above, I now need to use MODE instead of MAX to return
the most frequently used Diameter within the data subset that meets these
same, multiple criteria. I just get 0.

Thanks in advance for helping.





Bernie Deitrick

MODE fx in array using multiple criteria
 

Worked!


Why does everybody sound so surprised when my suggestions work? ;-)

Thank you.


You're welcome. And thanks for the feedback.

Bernie




Rick Rothstein \(MVP - VB\)[_107_]

MODE fx in array using multiple criteria
 
Worked!

Why does everybody sound so surprised when my suggestions work? ;-)


LOL

Rick


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com