Reputation: 33
I need help with creating an IF formula to locate MAX and MIN numbers within a range.
Looking at the Excel table snip below:
If I7 > 30, highlight MAX and MIN numbers within the range C7:E7
This will have to be a conditional formula so I can apply cell color
Upvotes: 1
Views: 619
Reputation: 6549
This was actually more tricky than I thought....
So try this:
For the MAX we use this formula:
=IF($I$7>30,B$7=MAX(B$7:E$7))
and for the MIN we use this formula:
=IF($I$7>30,B$7=MIN($B$7:$E$7))
Check that the conditional formatting applies to the expected range:
Upvotes: 0