Note: The other languages of the website are Google-translated. Back to English

How to conditional formatting based on another sheet in Google sheet?

If you want to apply the conditional formatting to highlight cells based on a list of data from another sheet as following screenshot shown in Google sheet, do you have any easy and good methods for solving it?

Conditional formatting to highlight cells based on a list from another sheet in Google Sheets


Conditional formatting to highlight cells based on a list from another sheet in Google Sheets

 


 

Please do with the following steps to finish this job:

1. Click Format > Conditional formatting, see screenshot:

2. In the Conditional format rules pane, please do the following operations:

(1.) Click button to select the column data that you want to highlight;

(2.) In the Format cells if drop-down list, please choose Custom formula is option, and then enter this formula: =match(C2,indirect("data list!A2:A"),0) into the text box;

(3.) Then select one formatting from the Formatting style as you need.

Note: In the above formula: C2 is the first cell of the column data that you want to highlight, and the data list!A2:A is the sheet name and list cells range which contains the criteria you want to highlight the cells based on.

3. And all the matching cells based on the list cells have been highlighted at once, then you should click the Done button to close the Conditional format rules pane as you need.

 


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom

 

Comments (23)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
HI,
This is a very nice tutorial! how can I add a second condition to it? I'm seeking to match the cells and if the cels J:N in the correspondent row is not blank. I'm trying this, but it's not working:

=and(match(H4,indirect("ADMIN!G2:G"),not(isblank(indirect("ADMIN!J2:N"),0))))

Thanks!!
This comment was minimized by the moderator on the site
Have you tried tried just using =if(J2:N<>"") as a new rule?
This comment was minimized by the moderator on the site
Is it possible to do this, but based on more than one column, and also highlight the whole row? I have a set of data that has Last Name and First Name columns as well as other data. I am then taking those names and arranging into groups on another sheet. I want to have a formula where once the particular person has been placed on the second sheet, they are 'done' and so their entire row (name + associated data for them) is highlighted in a color for 'done' on the original sheet.
This comment was minimized by the moderator on the site
How about the opposite? I'd like to highlight a cell that doesn't match. How could I modify this formula to work for me?
This comment was minimized by the moderator on the site
By any chance did you manage to find an answer to this? I have the same query
This comment was minimized by the moderator on the site
Hi. I used this, and it works for me. =AND($D2<>"",ISERROR(MATCH($D2,indirect("Final Assignment!$B$2:B"),0)))- i want to highlight whole row that contain the cell which doesn't match my other list- i don't want blank cells to be highlighted
This comment was minimized by the moderator on the site
I found this really useful for referncing against one sheet, however is it possible to reference against all other sheets?
This comment was minimized by the moderator on the site
Amazing! Thank you! Worked perfectly!
This comment was minimized by the moderator on the site
The "indirect" command information was very helpful. Thank you.
This comment was minimized by the moderator on the site
is it me, or does this not work anymore? As soon as I try to point to a cell in another sheet (something as simple as just "=Othersheet!H17") it doesn't accept this as valid. :'(
This comment was minimized by the moderator on the site
Your = is inside the " " and it shouldn't be.
This comment was minimized by the moderator on the site
how do you do this but with the entire row highlighted
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 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
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
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
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
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations