MAX IF array function with multiple criteria

crisrock

New Member
Joined
Jan 1, 2018
Messages
1
Hi there,

I am looking to extract max and min values from an array containing several thousands of records in the following format:

ABCDYear
11082017
73132017
96242017
38322017
99472017
50582018
41692018
54702019

<tbody>
</tbody>

On a different sheet I would like to report max and min value based on Year and Column Header which are selected via a box list.
For example, if user selects Year=2018 and Column Header B max value should be 1 and min value should be 0.
I have been trying to achieve this with a MAX IF array formula without any luck.
Below is my latest attempt:

{=MAX(IF($E$1:$E$9=$H$3,IF($A$1:$D$1=$H$2,$A$2:$D$9,0)))}

Where E1:E9 is the column with the reference years and A1:D1 is the Header row. User selected Year and Header are in H3 and H2 respectively.

This formula seems to search the array only based on the Column Header criteria, while the Year is totally ignored.
Any pointers?
I am also open to suggestions if there is a different approach that might be less computational intensive given the large amount of data in my array.
In advance, thank you very much!

Cheers,

C
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try the following array formula:

=MAX(IF($E$2:$E$9=$H$3,INDEX($A$2:$D$9,0,MATCH($H$2,$A$1:$D$1,0))))
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,743
Members
449,116
Latest member
alexlomt

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