简体   繁体   English

Excel:在列或整行内条件格式化更多(文本)实例

[英]Excel: Conditional formatting more (text) instances inside column or whole row

I have one workbook with more sheets (queries) inside, which are updated regularly.我有一本工作簿,里面有更多的工作表(查询),这些工作表会定期更新。 Among the columns there is a specific one (for groups) where there are many instances in Column D (Vargrouptext) as it is shown on the picture.在列中有一个特定的(用于组),其中D 列(Vargrouptext)中有许多实例,如图所示。 You can see it is repetitive, and it has many of those options.你可以看到它是重复的,而且它有很多这样的选项。 Is there a quicker way to somehow "group" them by color or format them, but not that I go manually one per one, to select column and then manually to do?有没有一种更快的方法可以按颜色对它们进行“分组”或格式化它们,但不是我手动一个一个地选择列然后手动执行? Is there a way to apply that conditional format on a whole row??有没有办法在整行上应用该条件格式?

for example:例如:

CPS101  CSP MODEL

CPS102 CSP MODEL

CPS103 CSP MODEL 

To have whole row (Column A to D) formatted into some color, but to apply that on all instances from Vargrouptex with different color per instance?要将整行(A 列到 D 列)格式化为某种颜色,但要将其应用于 Vargrouptex 中每个实例具有不同颜色的所有实例?

For example I can apply this format painter or copy cond.format to make a bit quicker but I still have to click X times.例如,我可以应用此格式刷或复制 cond.format 以加快速度,但我仍然需要单击 X 次。

在此处输入图片说明

Try:尝试:

  • Select the whole range - A1:D88选择整个范围 - A1:D88
  • Conditional Formatting条件格式
  • Mange Rules管理规则
  • Use a formula to determine which cells to format使用公式确定要设置格式的单元格
  • Formula: $D1=CSP Model"公式: $D1=CSP Model"
  • Format - Fill - Select the color you want格式 - 填充 - 选择你想要的颜色
  • OK好的
  • OK好的
  • Apply申请

Repeat for every group对每组重复

Results:结果:

在此处输入图片说明

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

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