多张纸上的条件格式 [英] Conditional formatting over multiple sheets

查看:48
本文介绍了多张纸上的条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名MS Excel业余爱好者,但是我很确定Excel可以处理类似的事情.我有一个电子表格,第一个工作表是一个主工作表,其中介绍一些任务的代码和描述,然后是一些(多个)工作表,每个工作表中都有一小部分符合该工作规则的代码.

I am a bit of an MS Excel amateur, but I'm pretty sure that Excel can handle something like this. I have a spreadsheet where the first sheet is a master sheet presenting the codes and description of some tasks, followed by some (multiple) workrole sheets, each having a small subset of those codes that conform to that workrole.

Master Sheet
Code      |  Description   |  Module 1  |  Module 2  |  Module 3 | ...
 4             XYZ                Yes          No           No
 6             ABC                No           Yes          Yes

Workrole Sheet
Code      |  Module 1      |   Module 2 |  Module 3  | ...
 4
 7

我希望如果有人在主表中的代码 6 对应的 Module 2 中输入出现在其中具有特定代码 6 的所有工作表的 Module 2 中.另外,该特定行的颜色变为绿色(但不是很重要).有人可以帮我吗?

I want that if someone types in Yes in Module 2 corresponding to the Code 6 in the Master sheet, Yes appears in Module 2 of all the workrole sheets that have that particular code 6 in them. Plus, that particular row gets coloured green (but not so important). Can someone help me with this?

推荐答案

您要实现的目标涉及两个不同的操作(下面给出最基本的方法):1)要将是"复制到每个工作表:

What you want to achieve involves two different actions (just give the most basic way below): 1) To copy the "Yes" to each Workrole sheet:

  • 假设您没有大量的工作表和代码(否则会很慢)
  • 假设代码是唯一的.
  • 方法:从主表中搜索相同的代码",然后复制相应的模块2"值
  • 在每个Workrole工作表中,使用 = index('Master sheet'![主模块2],match([单元格包含您输入的代码],母版表"![母版中的代码列],0)))

2)突出显示行:

  • 在Workrole工作表中选择所有数据行,添加新的条件格式使用公式的规则
  • 输入 =($ [模块2的列] [第一数据行] =是")<-注意"$"
  • 选择要突出显示行的格式
  • Select all data row in Workrole sheet, add new conditional formatting rule using formula
  • enter =($[column of Module 2][first data row]="Yes") <-- note the "$"
  • Select the format you want to highlight the rows

这篇关于多张纸上的条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆