[英]Excel - Highlight Rows based on look up value from another sheet
Hi I have an excel sheet, that has a column called as Company name 嗨,我有一个Excel工作表,该工作表的列名为“公司名称”
in another sheet there is there are couple of look ups.. i need to look up those and highlight them in different colors based on the look up list. 在另一张纸中,有几个查找对象。我需要查找这些对象,并根据查找列表以不同的颜色突出显示它们。
for example, in the above scenario, i need Company A Highligted in oone color and company C in another. 例如,在上述情况下,我需要使用A颜色的公司A Highliged和在另一种颜色的公司C。
If highlighting is challgeng, i dont mind even having a seperate coloumn next to it that says, if it is a partner or competitor. 如果突出显示是挑战,那么即使是合伙人还是竞争对手,我也不介意旁边有一个单独的提示。
i tried the below formula under conditional formatting .. but doesnt work for different colours... it colors everything the same 我在条件格式下尝试了以下公式..但不适用于不同的颜色...它的颜色都一样
=NOT(ISNA(VLOOKUP(B1,'Lookup List'!$A$2:$D$200,1,FALSE)))
Please try selecting Company Name column and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true: : 请尝试选择“公司名称”列,然后选择“首页>样式-条件格式,新规则...”, 使用公式来确定要格式化的单元格,并在此公式为true的情况下设置值的 格式 ::
=COUNTIF('Lookup List'!$A:$A,B1)
Format... , select colour Fill (highlight) of your choice, OK , OK . 格式... ,选择颜色填充(突出显示), 确定 , 确定 。
Then repeat with: 然后重复:
=COUNTIF('Lookup List'!$B:$B,B1)
with a different fill. 用不同的填充。
If every entry is one colour or the other then one CF rule is sufficient, with the other colour applied as standard fill. 如果每个条目是一种颜色或另一种颜色,则一种CF规则就足够了,另一种颜色用作标准填充。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.