MAX(IF and MIN(IF not giving results expected

alec1986

New Member
Joined
Sep 29, 2014
Messages
9
Hi all,

I have created a MAX(IF command in order to find the maximum temperature, from a table, between two times. it looks like this:

<h5,c16:c28226,0)))}, and="" it="" works="" great!
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
=MAX(IF(J16:J28226>G5,IF(J16:J28226"lessThan"H5,C16:C28226,0)))<h5,c16:c28226,0)))


Temperatures are tabled in C16:C28226
Times the temperatures were taken in J16:JJ28226
Reference Temperatures in G5 and H5.

I would also like to create exactly the same formula, using MIN, to look like this:
<h5,c16:c28226,0)))}
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))

=MAX(IF(J16:J28226>G5,IF(J16:J28226<h5,c16:c28226,0)))
"lessThan"H5,C16:C28226,0)))

But every time I do, it produces 0, insisting that is it 'FALSE'. Both formulas have {}, i just haven't added them here.

Can anyone see any logical reason why this might be?
Other times i get a 'false' reading are when the times (based in hours) are the same, next to each other (say, 9 as a minimum and 10 as a maximum) or inverse (say 10 as a minimum and 9 as a maximum).

Any help would be hugely appreciated, i feel like its something minor. Also, my apologies, the formulas will not paste correctly (even in plain text!) the both end with "Less than"H5,C16:C28226,0))). apologies for the poor formatting.
<h5,c16:c28226,0)))". sorry.

Thankyou!</h5,c16:c28226,0)))".></h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))}
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))},>
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi all,

I have created a MAX(IF command in order to find the maximum temperature, from a table, between two times. it looks like this:

Code:
<h5,c16:c28226,0)))}, and="" it="" works="" great!
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
=MAX(IF(J16:J28226>G5,IF(J16:J28226<H5,C16:C28226,0)))
<h5,c16:c28226,0)))


Temperatures are tabled in C16:C28226
Times the temperatures were taken in J16:JJ28226
Reference Temperatures in G5 and H5.

I would also like to create exactly the same formula, using MIN, to look like this:
<h5,c16:c28226,0)))}
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))
<h5,c16:c28226,0)))

Code:
=MIN(IF(J16:J28226>G5,IF(J16:J28226<h5,c16:c28226,0)))
<H5,C16:C28226,0)))

But every time I do, it produces 0, insisting that is it 'FALSE'. Both formulas have {}, i just haven't added them here.

Can anyone see any logical reason why this might be?
Other times i get a 'false' reading are when the times (based in hours) are the same, next to each other (say, 9 as a minimum and 10 as a maximum) or inverse (say 10 as a minimum and 9 as a maximum).

Any help would be hugely appreciated, i feel like its something minor. Also, my apologies, the formulas will not paste correctly (even in plain text!) the both end with "Less than"H5,C16:C28226,0))). apologies for the poor formatting.
<h5,c16:c28226,0)))". sorry.

Thankyou!</h5,c16:c28226,0)))".></h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))}
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))
</h5,c16:c28226,0)))},>
 
Upvote 0
Maybe this?


Book1
CDEFGHIJ
1TempsHours
2241:00
3302:00
432Time1Time23:00
5564:009:004:00
6465:00
7126:00
830Min127:00
932Max468:00
10569:00
114010:00
122611:00
133012:00
Sheet1
Cell Formulas
RangeFormula
H8{=MIN(IF(($J$2:$J$28226>G5)*($J$2:$J$28226),$C$2:$C$28226))}
H9{=MAX(IF(($J$2:$J$28226>G5)*($J$2:$J$28226),$C$2:$C$28226))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Worked perfectly, thank you! can I infer from this that instead of using IF after IF after IF, i can use *? does it do the same thing?
 
Upvote 0
you're welcome

AND boolean logic uses * between 2 arrays for True & True in ($J$2:$J$28226>G5)*($J$2:$J$28226<h5< font="">)
</h5<>
<h5< font="">
IF(then IF(cut the array in half.


</h5<>
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,148
Members
448,552
Latest member
WORKINGWITHNOLEADER

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