Excel - Highlight rows based on set conditions

Cam*_*ole 0 excel vba formula

Is it possible to highlight rows where the employee Number is the same, but has more than one Job Name and at least one of those Job Names has to contain the word "Manager"? So in the case below, The employee number 12 rows would be highlighted because it has more than one Job Name and one of those Job names contains the word "Manager". Would something like this be done in VBA, Conditional Formatting, Formulas, or any other methods?

在此处输入图片说明

Jus*_* MK 5

您可以使用条件格式。假设您的数据在单元格A1:D11中,突出显示整个列A,请转到条件格式>新规则>使用公式来确定要格式化的单元格:

=COUNTIFS($A$2:$A$11,$A1,$D$2:$D$11,"*manager*")
Run Code Online (Sandbox Code Playgroud)

希望能帮助到你。

在此处输入图片说明

  • @CameronCole注意:如果要突出显示整个行,而不仅仅是A列的值,请将“ A1”更改为“ $ A1”。 (2认同)