跳到主要內容

如何將條件格式設置規則復製到另一個工作表/工作簿?

例如,您根據第二列中的重複單元格有條件地突出顯示了整行(水果 列),並為第四列中的前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's將具有條件格式的指定範圍保存為自動圖文集條目 自動文本 實用程序,然後您就可以復制條件格式設置規則,而無需輕鬆打開相應的工作簿。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1。 點擊 庫工具 > 插入 > 自動文本 激活自動圖文集窗格。

2.使用條件格式選擇範圍,然後單擊 加入 按鍵 doc複製條件格式8 在“自動圖文集”窗格中,在打開的“新建自動圖文集”對話框中,為該新的自動圖文集條目鍵入一個名稱,並指定一個保存組,然後單擊“確定”。 加入 按鈕。 看截圖:
doc複製條件格式4

到目前為止,我們已將條件格式的指定範圍保存為Excel中的自動圖文集條目。 而且我們將來只需單擊一下就可以將此範圍插入任何工作簿中。

3.只需單擊“自動圖文集”窗格中的“自動圖文集”條目,此帶條件格式的範圍將插入到工作表中。 然後您可以按照 我們上面介紹的相同步驟 複製條件格式。
doc複製條件格式5

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


演示:將條件格式設置規則從關閉的工作簿複製到另一個工作表/工作簿


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為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