简体   繁体   English

许多的每一行中最大值的条件格式

[英]Conditional Formatting of maximum value in each row of many

I have a spreadsheet with 250+ rows of data and need to find the largest value in each row.我有一个包含 250 多行数据的电子表格,需要在每一行中找到最大值。 I tried to use Conditional Formatting, however I need the same rule for each row so can't highlight all the data, and trying to copy and paste it would be too cumbersome.我尝试使用条件格式,但是每行都需要相同的规则,因此无法突出显示所有数据,并且尝试复制和粘贴它会太麻烦。

Is there a faster way of applying the same rule to each row separately?是否有更快的方法将相同的规则分别应用于每一行?

Please select he relevant columns (say A:H) and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true: :请选择相关列(例如 A:H)和 HOME > Styles - Conditional Formatting, New Rule...,使用公式来确定要格式化哪些单元格以及在此公式为真的情况下格式化值::

=A1=MAX($A1:$H1)

Format... , select your choice of formatting, OK, OK.格式... ,选择您选择的格式,确定,确定。

If you want the formatting to stop when there are no values in the row adjust to:如果您希望在行中没有值时停止格式化,请调整为:

 =AND(COUNT($A1:$H1)<>0,A1=MAX($A1:$H1))

Formula: =A1=MAX(A:A) (don't use $)公式:=A1=MAX(A:A)(不要用$)

Applies To: =$A:$D适用于:=$A:$D

在此处输入图片说明

To shift columns, change the starting point of the formula AND the “Applies To” range.要移动列,请更改公式的起点和“适用于”范围。

Formula: =C1=MAX(C:C) (don't use $)公式:=C1=MAX(C:C)(不要用$)

Applies To: =$C:$F适用于:=$C:$F

在此处输入图片说明

Formula: =A2=MAX(2:2) (don't use $)公式:=A2=MAX(2:2)(不要用$)

Applies To: =$2:$11适用于:=$2:$11

*Shift first row down to adjust for header row *向下移动第一行以调整标题行

在此处输入图片说明

Finally, as pnuts shows in the post above , to correct for cell overflow into blanks cells/rows/columns (shown here)最后,如pnuts 在上面的帖子中所示,纠正单元格溢出到空白单元格/行/列(此处显示)

在此处输入图片说明

Use the following variation:使用以下变体:

(the same for rows/columns and MIN/MAX) (行/列和 MIN/MAX 相同)

Formula: =AND(COUNT(C:C)<>0,C1=MAX(C:C)) (don't use $)公式:=AND(COUNT(C:C)<>0,C1=MAX(C:C))(不要使用$)

Applies To: =$C:$F适用于:=$C:$F

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM