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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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.
 
Upvote 0
Robert, thank you very much. I was definitely going down the wrong path with my thinking. That worked perfectly.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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