Excel 365 - 在条件格式中将单元格背景更改为另一个单元格背景

发布于 2025-01-17 15:50:27 字数 370 浏览 1 评论 0原文

我有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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终止放荡 2025-01-24 15:50:27

选择区域 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.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文