ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding MAX number (excluding a particular number) (https://www.excelbanter.com/excel-programming/328075-finding-max-number-excluding-particular-number.html)

Johnny[_9_]

Finding MAX number (excluding a particular number)
 
I did a search for help on this, but didn't find anything.
Using MAX to find the largest number in a column: =MAX(D3:D7)

If one of those numbers = 125, then I would like to exclude it from the
calculation. I've tried using DMAX, and IFs, but I can't get it to
work.


Ron Rosenfeld

Finding MAX number (excluding a particular number)
 
On 24 Apr 2005 04:06:53 -0700, "Johnny" wrote:

I did a search for help on this, but didn't find anything.
Using MAX to find the largest number in a column: =MAX(D3:D7)

If one of those numbers = 125, then I would like to exclude it from the
calculation. I've tried using DMAX, and IFs, but I can't get it to
work.


Use this **array** formula:

=MAX(IF(D3:D7<125,D3:D7))

To enter an **array** formula, after typing it in, hold down <ctrl<shift
while hitting <enter. Excel will place braces {...} around the formula.


--ron


All times are GMT +1. The time now is 11:16 AM.

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