跳到主要內容

如何在Excel中對多個單詞應用條件格式搜索?

doc高亮包含任何單詞1

對於我們而言,根據特定值突出顯示行可能很容易,本文中,我將討論如何突出顯示A列中的單元格,具體取決於是否在D列中找到它們,這意味著,如果單元格內容中包含任何文本,特定列表,然後突出顯示如左圖所示的屏幕截圖。

突出顯示單元格的條件格式包含多個值之一

篩選器單元格包含特定值並立即突出顯示它們


突出顯示單元格的條件格式包含多個值之一

事實上, 條件格式 可以幫助您解決這項工作,請執行以下步驟:

1. 首先,請為特定單詞列表創建一個範圍名稱,選擇單元格文本並輸入範圍名稱 我的清單 (您可以根據需要重命名)到 姓名 框,然後按 Enter 鍵,請參見屏幕截圖:

doc高亮包含任何單詞2

2。 然後選擇要突出顯示的單元格,然後單擊 首頁 > 條件格式 > 新規則 新格式規則 對話框中,完成以下操作:

(1.)點擊 使用公式來確定要格式化的單元格選擇規則類型 列錶框;

(2.)然後輸入以下公式: = SUM(COUNTIF(A2,“ *”&Mylist&“ *”)) (A2 是要突出顯示範圍的第一個單元格, 我的清單 是您在步驟1)中創建的範圍名稱 格式化此公式為真的值 文本框;

(3.)然後單擊 格式 按鈕。

doc高亮包含任何單詞3

3。 去的 單元格格式 對話框,然後選擇一種顏色以突出顯示 標籤,請參見屏幕截圖:

doc高亮包含任何單詞4

4. 然後點擊 OK > OK 要關閉對話框,包含任何特定列表單元格值的所有單元格會立即突出顯示,請參見屏幕截圖:

doc高亮包含任何單詞5


篩選器單元格包含特定值並立即突出顯示它們

如果你有 Excel的Kutools,其 超級濾鏡 實用程序,您可以快速篩選包含指定文本值的單元格,然後立即突出顯示它們。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用. 

安裝後 Excel的Kutools,請執行以下操作:

1。 點擊 Kutools 加 > 超級濾鏡,請參見屏幕截圖:

2。 在 超級濾鏡 窗格,請執行以下操作:

  • (1.)檢查 規定 選項,然後單擊 doc高亮包含任何單詞11 按鈕選擇要過濾的數據范圍;
  • (2.)根據需要選擇過濾條件之間的關係;
  • (3.)然後在條件列錶框中設置條件。

doc高亮包含任何單詞8

3。 設置條件後,單擊 篩選 過濾單元格包含所需的特定值。 然後為下面的選中單元格選擇一種填充顏色 首頁 標籤,請參見屏幕截圖:

doc高亮包含任何單詞9

4。 並且所有包含特定值的單元格都突出顯示,現在,您可以通過以下方式取消過濾器: 重設 按鈕,請參見屏幕截圖:

doc高亮包含任何單詞10

單擊立即下載並免費試用Kutools for Excel!


演示:過濾器單元格包含特定值並立即突出顯示它們

Excel的Kutools:具有300多個方便的Excel加載項,可以在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 (34)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=SUMPRODUCT(--ISNUMBER(SEARCH(IF(Mylist<>"",Mylist),A2)))>0
How to Format whole row in this formula
This comment was minimized by the moderator on the site
THANK YOU VERY MUCH, YOU SAVED A LOT OF TIME OF ME.
This comment was minimized by the moderator on the site
Hello, Akash,
Glad it can help you!
Have a good new year! 😄
This comment was minimized by the moderator on the site
Above formula not working, coz , My condition (i.e if my list is blank). And if my list is remaining blank excel formatting all cells. Help me.
This comment was minimized by the moderator on the site
Hello, Akash,
If your data list contains blank cell, please apply the below formula into the Conditional Formatting:
=SUMPRODUCT(--ISNUMBER(SEARCH(IF(Mylist<>"",Mylist),A2)))>0
Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
I want to format whole Row. In this formula how to format whole Row.
This comment was minimized by the moderator on the site
I want to format only the text contained in my list. I do not want to format if my list (one or two cell of my list) is blank
This comment was minimized by the moderator on the site
Hello, AKASH
To solve your problem, the following article may help you:
https://www.extendoffice.com/documents/excel/2499-excel-conditional-formatting-ignore-blank-zero.html

Please have a try, thank you!
This comment was minimized by the moderator on the site
Greetings!

I am trying to use a range of words in a row, from another sheet.
My formula looks like this:

=Info!=SUM(COUNTIF($A1,"*"&LGreen&"*"))

"Info" is the sheet, "LGreen" is the row of words i want to use, and the words start at A1 in "Info" sheet.

But i still get "There is a problem with this formula.......
Does it matter if the words are in a row/column? And how do i make that change in the formula?
I would like to use the whole row (continuous), so that i can put in more words later on.
If not, i can select specific range/cells, as long as i understand whats wrong x)

Thanks in advance!
This comment was minimized by the moderator on the site
Hello, Sykopaten

In fact, you just need follow the method in the article, in the first step, you should create a range name for your data list in aother sheet, which can be applied to the entire workbook. And then use the formula: =SUM(COUNTIF(A2,"*"&Mylist&"*")) into the conditional formatting of the worksheet you want to highlihgt the cells.

Or you can insert your excel file as attachment here for us to check.

Thank you!
This comment was minimized by the moderator on the site
Thank you so much to the reply! This surely helped a lot!
Have a great new year! :D
This comment was minimized by the moderator on the site
Hello, Sykopaten,
Glad it can help you!
Happy new year!😀
This comment was minimized by the moderator on the site
Can you provide instructions for how to reverse this formula. In the same example, how would you format cells that did NOT contain a word from your keyword list?
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
Hello, Jeff,
To solve your problem, please apply the below formula:
=IF(SUM(COUNTIF(A2,"*"&Mylist&"*"))=1, 0,1)

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Consegui, a formula é funcional e adorei!! obrigado!
This comment was minimized by the moderator on the site
Hello,

is the formula sensitive to space?
This comment was minimized by the moderator on the site
I have a List that contains "Numbers" and when I run this formula it only work on "Word/Text". What shall be my approach for numbers? For example, I have two rego ( registration) number for management team eg 1234 and 6789, so my data in A column will contain a lot of different vehicle number, i want to hightlight GREEN only these two regos.
This comment was minimized by the moderator on the site
This is for the "OR" function. How do I go abouts this with the "AND"?

As in I need to highlight ONLY the cells that have all of the list and not just either of the list.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations