Vincent Shelby
Vincent Shelby

Reputation: 33

Excel - Using IF function to locate MAX and MIN numbers within a range

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

Excel table

Upvotes: 1

Views: 619

Answers (1)

Wizhi
Wizhi

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))

enter image description here

and for the MIN we use this formula:

=IF($I$7>30,B$7=MIN($B$7:$E$7))

enter image description here

Check that the conditional formatting applies to the expected range: enter image description here

Final Result enter image description here

Upvotes: 0

Related Questions