跳到主要內容

如何根據Google表格中的其他表格進行條件格式設置?

如果要應用條件格式來突出顯示另一張工作表中的數據列表中的單元格(如Google工作表中所示的以下屏幕截圖),那麼您有任何簡單而有效的方法來解決它嗎?

條件格式以突出顯示基於Google表格中其他工作表中的列表的單元格


條件格式以突出顯示基於Google表格中其他工作表中的列表的單元格

 

 

請執行以下步驟來完成此工作:

1。 點擊 格式 > 條件格式,請參見屏幕截圖:

2。 在 條件格式規則 窗格,請執行以下操作:

(1.)點擊 按鈕以選擇要突出顯示的列數據;

(2.)在 如果格式化單元格 下拉列表,請選擇 自定義公式是 選項,然後輸入以下公式: = match(C2,indirect(“ data list!A2:A”),0) 進入文本框;

(3.)然後從 格式化風格 如你所需。

備註:在以上公式中: C2 是要突出顯示的列數據的第一個單元格, 數據列表!A2:A 是工作表名稱和列表單元格範圍,其中包含要突出顯示單元格的條件。

3。 並且所有基於列表單元格的匹配單元格都立即突出顯示,然後您應點擊 完成 按鈕關閉 條件格式規則 所需的窗格。

 

最佳辦公生產力工具

🤖 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 (27)
Rated 5 out of 5 · 2 ratings
This comment was minimized by the moderator on the site
Hi! skyyang ! Thank you, =match(C2,indirect("data list!A2:A"),0) works for me.

But I would like to format more than one column, so column A in sheet a is checked against column B in sheet b , and so.
There are so many columns so I can not apply one format per column, but a whole conditional format for the whole sheet.


How should I modify the range and the formula?

Thanks!
This comment was minimized by the moderator on the site
What if the cell values you're trying to match are hyperlinks?
Rated 5 out of 5
This comment was minimized by the moderator on the site
Pardon, il fallait lire =A1<>INDIRECT("PreviousVersion!"& CHAR (COLUMN () + 64) & ROW ()) ...
This comment was minimized by the moderator on the site
Bonjour,
J'ai une autre question du même type au sujet d'un formatage conditionnel qui fonctionne sur Excel mais que je n'arrive pas à porter sur Google Sheet :
L'idée est de comparer 2 versions d'une même feuille que l'on stock à l'aide de 2 onglets (2 feuilles du même workbook)

La formule est la suivante : =A1<>'previousVersion'!A1 avec un formatage fond jaune pour mettre en évidence les changements sur toute la feuille car l'idée est d'appliquer ce
formatage conditionnel sur toutes les cellules de la feuille ($A$1:$V:1000)

Sur Google sheet cette formule m'est interdite et si je passe par un "indirect("previousVersion!A1"), je perds le coté dynamique sur le "A1" de la feuille precious version
Si j'essaye =A1<>indirect("previousVersion!"&A1) j'ai une erreur car c'est la valeur de A1 qui est interprétée et concaténée avec "previousVersion!"

Si j'essaye la formule =C3<>INDIRECT("PreviousVersion!"& CHAR (COLUMN () + 64) & ROW ()) cela ne fonctionne pas non plus....

Si vous avez une solution...
Merci d'avance
This comment was minimized by the moderator on the site
Bonjour,
Dans Feuille google je cherche la formule suivante
Si dans la cel A1 = text alors dans la Cel B1 ecire telle valeur ou texte automatiquement
Merci d avance pour votre aide
This comment was minimized by the moderator on the site
What if it's not an exact match but contains the reference data.
This comment was minimized by the moderator on the site
Hello, ashley
To solve your problem, please apply the below formula:
=REGEXMATCH(C2:C21,INDIRECT("Sheet2!$A$2"))

Please try, hope it can help you!
This comment was minimized by the moderator on the site
What happens if the data in my list is in more than one column? When I try to use datalist!A2:M or datalist!A:M or datalist!A2:M17 none of those work.
This comment was minimized by the moderator on the site
I have even tried naming the specific range I want to refer to and using that in the formula, no luck.
This comment was minimized by the moderator on the site
How to highlight the entire row data with conditional formatting using other sub-sheet
This comment was minimized by the moderator on the site
Hello, Ranganath
To highlight the entire row based on the data list, please do as this:
1. In the Apply to range box, select the whole sheet;
2. Apply this formula: =match($C2,indirect("datalist!A2:A"),0) into the Custom formula is textbox.
Please try, hope it can help you!

https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-highlight-entire-row.png
This comment was minimized by the moderator on the site
Hey, Thanks for replying. I have tried the formula but its not working.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hi,
Have you modified the sheet name and cell reference to your own data?
$C2 is the first cell of the column data that you want to highlight, and the datalist!A2:A is another sheet name and list range which contains the criteria you want to highlight the cells based on.
Please check them, thank you!
This comment was minimized by the moderator on the site
This doesn't work for me. I have triple checked everything.

Apply to range: K1:K2158

=match(K2,indirect("TorontoCitys!A1:A"),0)

It highlights random other city names, not in the TorontoCity's list.

K2 (is my main sheet and the starting column cell of the column I want to be affected.
TorontoCitys (is the name of the sheet)
A1 is the start of the column of the list of city names.
A is the column.

Could be that my punctuation's are incorrect?

Thanks in advance.
This comment was minimized by the moderator on the site
Hello friend,

Glad to help. Your formula is correct, please don't worry. The problem is the range you apply to. It shouldn't be K1:K2158, but K2:K2158.

Please see the screenshots. The example is simple but enough to explain the problem.

The correct "Apply to Range" is A2:A20. And the correct formula is =match(A2,indirect("TorontoCitys!A1:A"),0). Then correct cities can be highlighted. Please see screenshot 2.
But if I change the "Apply to Range" to A1:A20, the wrong city name is highlighted. Please see screenshot 3.

So please change your "Apply to Range" from K1:K2158 to K2:K2158. The problem should be solved. Looking forward to your reply.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
how do you do this but with the entire row highlighted
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