简体   繁体   English

在 Excel 中标记特定行

[英]Mark an specific row in Excel

I have this table in Excel:我在 Excel 中有这张表:

在此处输入图像描述

I need to compare the first row with the next rows assuming 2 conditions:假设 2 个条件,我需要将第一行与下一行进行比较:

  • The information in column A have to be the same as in column A of the first row. A 列中的信息必须与第一行的 A 列中的信息相同。
  • The number in column B have to be higher than in column B of the first row. B列中的数字必须高于第一行B列中的数字。 But I only want to mark the next row with a higher value not all of them.但我只想用更高的值标记下一行,而不是全部。

I want to get a table with the same format of the attached capture.我想得到一个与附件捕获格式相同的表格。

Thank you.谢谢你。

Use a rule based on a formula, something like this:使用基于公式的规则,如下所示:

=AND($A2=$A$1,$B2>$B$1,COUNTIFS($A$2:$A2,$A$1,$B$2:$B2,">"&$B$1)=1)

在此处输入图像描述

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

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