Excluding data from "MAX(IF..." array formula

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Josue Barocio said:
Thanks! Works perfectly. I wasn't even close, never thought to remove the "if" statement. :biggrin:

It can also be set up with IF included, although it is not needed in most cases.

BTW, if you have empty cells or formula-blanks in B-range, it is better to use...

{=MAX((A3:A13=F3)*(B3:B13<>1)*(B3:B13<>"")*C3:C13)}
 
Upvote 0
It can also be set up with IF included, although it is not needed in most cases.

BTW, if you have empty cells or formula-blanks in B-range, it is better to use...

{=MAX((A3:A13=F3)*(B3:B13<>1)*(B3:B13<>"")*C3:C13)}

Thank you Aladin. This latest version bullet-proofs the formula.

I tested the formula by inserting subformulas with other LEVEL values to be excluded, e.g., (B3:B13<>x), using the "*" symbol to string them together as as a sort of a logical AND. Is there a limit to the number of subformulas that can be inserted?

Since the subformulas are not actually nested, it would seem there should be no limit, as for the IF worksheet function. Thanks again.
 
Upvote 0
Hi,

I know this is an old post, but I'm taking chances.

I'm using this formula to obtain the greatest number in an array. I am excluding a number in B6.

=MAX((B3:F3)*(B3:F3<>B6))

The result is correctly displayed in the formula box. The result shown in the spreadsheet is different than the result in the formula box.

Instead of showing the max amount it shows the min.

Is there a problem with my excel or my formula?
Thanks
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,213
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top