Excel 365 - 在条件格式中将单元格背景更改为另一个单元格背景
我有A列A,根据您从单元格列表中选择的内容(好的,正在进行,迟到),将单元格绿色,黄色或红色变为绿色,黄色或红色。
在B列到MI中,有一个时间表,我有一个简单的条件格式格式公式,当我在它们中输入一个值时,将单元格绿色。这是为了在计划当前活动的时间范围内可视化。
=B1:M1000 <> ""
相反,我想要的是将B中的细胞转换为相应行上的单元A的颜色。因此,如果将活动(一行)标记为“确定”,我希望该行上的时间表是绿色的,但是如果我将活动更改为“迟到”,我希望时间表变成红色。
我还没有找到任何解决方案,以有条件的格式,有什么想法吗?最好是避免使用VBA,因为然后我必须以不同的格式保存文件,并且每次打开它时都会发出警告。
I have column A which turn cells green, yellow or red depending on what you chose from the cells dropdown list (Ok, In progress, Late).
In column B to M I have a time schedule where I have a simple conditional formatting formula that turns the cells green when I enter a value in them. This is to visualize over what time periods the current activity is planned.
=B1:M1000 <> ""
What I would like instead is to turn cells in B to M to the color of cell A on the corresponding row. So if an activity (a row) is marked as "Ok" I want the time schedule to be green on that row, but if I change activity to "Late" I want the time schedule to turn red.
I have not found any solution to do this with conditional formatting, any ideas? Preferably I would like to avoid VBA since I then have to save the file in different format and I get a warning each time I open it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选择区域 A1:M1000 并输入条件公式:
=AND($A1="ok",NOT(ISBLANK(A1)))
这将使从 A 到 M 的列与 A 的颜色相同.Select the area A1:M1000 and put as conditional formula:
=AND($A1="ok",NOT(ISBLANK(A1)))
This will let the columns from A to M same color as A.