跳到主要内容

如何将条件格式设置规则复制到另一个工作表/工作簿?

例如,您根据第二列中的重复单元格有条件地突出显示了整行(水果 列),并为第四列中的前3个值上色(金额 列),如下图所示。 现在,您要将条件格式设置规则从该范围复制到另一个工作表/工作簿。 本文提供了两种解决方法来帮助您。


使用格式刷将条件格式设置规则复制到另一个工作表/工作簿

通常,我们可以使用Excel中的Format Painter功能将条件格式设置规则从一个范围复制到另一个工作表/工作簿。

1.选择要复制其条件格式的范围,然后单击 主页 > 格式刷doc复制条件格式2.

2.移至目标范围,然后拖动画笔 在这个范围内。
doc复制条件格式12

您可能会注意到,根据第二列中的重复项,目标区域中的行未突出显示。 这是因为单元格引用不会在条件格式公式中自动更改。

3.继续选择目标范围,然后单击 主页 > 条件格式 > 管理规则。 看截图:

4.在“条件格式规则管理器”对话框中,双击在目标范围内不起作用的标尺,以打开“编辑格式规则”对话框。 看截图:
doc复制条件格式11

5.然后在 格式化此公式为真的值 框,根据目标范围更改单元格引用。

备注:在本例中,我们将公式更改为 = COUNTIF($ B $ 23:$ B $ 46,$ B23)> 1 ($ B $ 23:$ B $ 46 是目标范围中的第二列,并且 $ B23 是第二列中的第一个单元格)。

6。 点击 OK > OK 按钮来保存更改。

然后,您将看到条件格式已被复制并精确粘贴到目标范围中。 看截图:
doc复制条件格式13

笔记: 如果要从中复制条件格式的范围和要粘贴条件格式的范围在不同的工作簿中,则应在复制之前打开两个工作簿。


将条件格式设置规则从关闭的工作簿复制到另一个工作表/工作簿

如果您需要经常从指定范围复制条件格式并粘贴到不同的工作簿中,我们建议您将具有条件格式的指定范围保存为Kutools for Excel的自动图文集条目 自动文本 实用程序,然后您就可以复制条件格式设置规则,而无需轻松打开相应的工作簿。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

1。 点击 库工具 > 插页 > 自动文本 激活自动图文集窗格。

2.使用条件格式选择范围,然后单击 地址 按键 doc复制条件格式8 在“自动图文集”窗格中,在打开的“新建自动图文集”对话框中,下一步,为此新自动图文集条目键入一个名称,并指定一个保存组,然后单击“确定”。 地址 按钮。 看截图:
doc复制条件格式4

到目前为止,我们已经将条件格式的指定范围保存为Excel中的自动图文集条目。 而且我们将来可以一键将这个范围插入任何工作簿中。

3.只需单击“自动图文集”窗格中的“自动图文集”条目,该带条件格式的范围将插入到您的工作表中。 然后您可以按照 我们上面介绍的相同步骤 复制条件格式。
doc复制条件格式5

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:将条件格式设置规则从关闭的工作簿复制到另一个工作表/工作簿


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Ik kom er niet uit, hoe ik één enkele regel van de voorwaardelijke opmaak kopieer naar andere werkbladen.
Hoe moet dat?
This comment was minimized by the moderator on the site
Hi there,

I think the article illustrates how to do that. Is there anything not clear so that you cannot follow?

Amanda
This comment was minimized by the moderator on the site
This is not working at all ! What were MS developers thinking !? If i create rule with valid format rules/formulas copy paste data in such formatted cells/table regardless of where in the grid this were copied ! I found out that if i enter data manually in the column then rule for conditional format works accordingly to rule format formula created. If you copy such formatted table into another worksheet in the same document then every rule is passed on to that table. But if u copy data to it, then not even if table contains number and formatted as such conditional format rule doesn't work any more, but is in the same range of column as were created. At my opinion this is a bug ! And now what ? Manually in 2022 to enter data and format cell with creating the same rule set again and again ? Some other software in compare to Excel is much better due how cucumber some Excel handles data trough functions and rulesets ! Excel is only good for simple use of. Sone things get more demanding and complicating then one need to have a Degree not only training to use it ! I have use Excel 2003 and 2007 in past newer experienced problems when task have to be done when edit tables calc and cell formatting ! 2016-2019 version also permanently keeps reporting error in clipboard when cells tables and data is copied !? Seems to me that i need better alternative !
This comment was minimized by the moderator on the site
And how do you copy the colors from a conditional formatting region to another sheet as static colors without copying the conditional formatting rules? Do a copy paste all only shows the values without any static colors...
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations