[英]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.我需要帮助创建一个 IF 公式来定位一个范围内的 MAX 和 MIN 数字。
Looking at the Excel table snip below:查看下面的 Excel 表格片段:
If I7 > 30, highlight MAX and MIN numbers within the range C7:E7如果 I7 > 30,突出显示 C7:E7 范围内的 MAX 和 MIN 数字
This will have to be a conditional formula so I can apply cell color这必须是一个条件公式,所以我可以应用单元格颜色
This was actually more tricky than I thought....这实际上比我想象的要棘手......
So try this:所以试试这个:
For the MAX we use this formula:对于 MAX,我们使用以下公式:
=IF($I$7>30,B$7=MAX(B$7:E$7))
and for the MIN we use this formula:对于 MIN,我们使用以下公式:
=IF($I$7>30,B$7=MIN($B$7:$E$7))
Check that the conditional formatting applies to the expected range:检查条件格式是否适用于预期范围:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.