Array Formula for Max Value with Conditions

PoggiPJ

Active Member
Joined
Mar 25, 2008
Messages
330
Originally I only needed the latest date in a list - simple, Max(A2:A7). Now I need to only consider end dates where the Extended Total is >0. I understand the basics of how array formulas work and have written some simple ones, but I am struggling with an array formula that will give me the max of col A when Col B > 0. In the following example rows 3 and 5 would be excluded and the result would be 5/31/2016. Would really appreciate some help.

Excel 2003
AB
1Coverage Ends Extended Total
23/1/2013 4,339.00
312/31/2017 -
45/15/2015 39,992.00
57/31/2016 -
64/1/2013
75/31/2016 5,422.00

<tbody>
</tbody>
Sheet1
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Robert Mika

MrExcel MVP
Joined
Jun 29, 2009
Messages
7,256
Originally I only needed the latest date in a list - simple, Max(A2:A7). Now I need to only consider end dates where the Extended Total is >0. I understand the basics of how array formulas work and have written some simple ones, but I am struggling with an array formula that will give me the max of col A when Col B > 0. In the following example rows 3 and 5 would be excluded and the result would be 5/31/2016. Would really appreciate some help.

Excel 2003
AB
1Coverage Ends Extended Total
23/1/2013 4,339.00
312/31/2017 -
45/15/2015 39,992.00
57/31/2016 -
64/1/2013
75/31/2016 5,422.00

<tbody>
</tbody>
Sheet1


Excel 2010
ABCD
1Coverage EndsExtended Total
23/1/20134,339.005/31/2016
312/31/2017
45/15/201539,992.00
57/31/2016
64/1/2013
75/31/20165,422.00
Sheet3
Cell Formulas
RangeFormula
D2{=MAX(IF(B2:B7>0,A2:A7))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 

PoggiPJ

Active Member
Joined
Mar 25, 2008
Messages
330
Robert, thank you very much. I was definitely going down the wrong path with my thinking. That worked perfectly.
 

Forum statistics

Threads
1,171,585
Messages
5,876,311
Members
433,193
Latest member
BruxoTrader

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
Top