MIN MAX Question

DHayes

Board Regular
Joined
Nov 12, 2014
Messages
244
Good day,
I have a question that is got me a bit stymied. What I am doing is find the earliest and the latest date. The MIN formula is done completely different to the MAX formula. What I don't understand is why I cannot use the same formula for both Scenarios. If swap the formula's around I get the incorrect outputs but the two differences work 100% for thier respective outputs.
MIN Formula
Code:
{=MIN(INDEX(Contracts!$F$1:$F$10000,MATCH(B2&A2,Contracts!$C$1:$C$10000&Contracts!$E$1:$E$10000,0)))}
MAX fromula
Code:
{=MAX(IF((Contracts!$C$1:$C$10000=B2)*(Contracts!$E$1:$E$10000=A2),Contracts!$U$1:$U$10000,0))}
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Control+shift+enter, not just enter:

=MIN(IF(Contracts!$C$1:$C$10000=B2,IF(Contracts!$E$1:$E$10000=A2,Contracts!$U$1:$U$10000)))

=MAX(IF(Contracts!$C$1:$C$10000=B2,IF(Contracts!$E$1:$E$10000=A2,Contracts!$U$1:$U$10000)))

For faster calculations, use MINIFS and MAXIFS you have them.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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