Conditional Formatting with Multiple Conditions in Google Sheets

Table of Contents

Table of Contents

Google Sheets has several powerful tools, but Conditional Formatting is something extraordinary.

With the Conditional Formatting, you can easily highlight cells of your choice and smartly present the spreadsheet. This article will show multiple conditional formatting applications that will smooth your spreadsheet presentation journey.

Key Takeaways

โžค Using the โ€˜Custom formula isโ€™ function is a great way to add multiple conditions at once.
โžค You can add several built-in conditions simply by clicking the โ€˜add another ruleโ€™ option.

Grade A cells highlighted with a Text is exactly rule and the Add another rule option


1

Using the AND Function

The AND function is one of the most commonly used functions for adding multiple conditions at once. When we use the AND function, the cells will be highlighted only when both conditions are met.

Letโ€™s say we have a student score sheet, and we want to highlight the student rows who have both a score above 80 and an A grade. By using the AND function, this task will be very simple.

Hereโ€™s how you can do it:

Steps:

โžค Select all the rows containing data (A2:E13).
โžค Click on Format > Conditional Formatting.

Format menu with Conditional formatting selected in Google Sheets

โžค Choose Custom Formula is under the formatting rules
โžค Enter this formula:

=AND(C2>80, D2=”A”)

โžค Choose your preferred color
โžค Hit Done, and your cells are highlighted.

Rows with a score above 80 and grade A highlighted by an AND custom formula

Because the rule covers A2:E13, put a $ before the column letters ($C2 and $D2) if you want the whole row to follow columns C and D. Without it, each column checks a different pair of columns, and only some cells are highlighted.


2

Using the OR Function

Highlight rows where the city is either โ€œChristchurchโ€ or โ€œWellingtonโ€. For that, we will again use the โ€œconditional formula isโ€ and the OR function. The OR function allows you to highlight cells when any one of the two conditions is met.

Hereโ€™s how you can do it:

Steps:

โžค Select the dataset from A2:E13.
โžค Go to Format > Conditional Formatting > Custom formula is.
โžค Type in this formula:

=OR(E2=”Christchurch”, E2=”Wellington”)

โžค Select your preferred color and click Done!

Rows for Christchurch or Wellington highlighted by an OR custom formula

The same applies here: use $E2 so every cell in the row checks column E.


3

Applying Exact Match of the Text in the Condition

If you want to highlight all the grades and find students with higher or lower grades at once, using the Text is exactly condition in the formatting rule is a suitable option. The โ€˜text is exactlyโ€™ function finds the exact value you have given in the value box and highlights those cells.

Hereโ€™s how you can do it:

Steps:

โžค Select the Grades column to apply the formula to the grades.
โžค Go to Format > Conditional formatting
โžค Select Text is Exactly from the drop-down.
โžค Type in the Grade you want to highlight. I have written A in the value section because I want to highlight the A grades.

Text is exactly rule with grade A

โžค As I want to highlight all the grades in different colors, I will add a few more conditions for each grade using the Text is Exactly function and change the grades in B, C, and D, respectively.

Grades A, B, C and D highlighted by four Text is exactly rules


4

Using the Greater Than or Equal to Condition

This formatting rule will highlight all the scores above or equal to 80. This way, you can easily identify higher scores. Hereโ€™s how:

Steps:

โžค Select the Score column
โžค Go to Format > Conditional formatting.
โžค Select the Greater Than or Equal to formula.
โžค Enter 80 in the value section. You can change the value to your liking. I entered 80 to highlight cells with scores greater than or equal to 80.
โžค Click Done, and all the scores equal or above 80 will be highlighted.

Scores of 80 or more highlighted with Greater than or equal to


5

Using the Is Between Formatting Rule

What if you want to find students with scores between 60 and 80? Thatโ€™s also very easy:

Steps:

โžค Go to the Conditional formatting and choose Is between.
โžค Enter the value of your choice. I have entered 60 and 80 to highlight the scores between 60 and 80.
โžค Hit Done and voila! Scores between 60 and 80 are highlighted.

Scores between 60 and 80 highlighted with Is between


6

Using The Text Starts With Formula

Another very interesting formula is that text starts with. You can also find out the names of the students beginning with A. That is so easy!

Steps:

โžค Simply go to Conditional formatting.
โžค Choose text starting with a formula.
โžค Enter A (or any other letter you want).
โžค Click Done and thatโ€™s it!

Names starting with A highlighted with Text starts with

Each of these is its own rule. To build them up, click Add another rule in the conditional formatting sidebar, and drag the rules into the order you want.


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Conditional Formatting with Multiple Conditions in Google Sheets [Make a Copy]


Frequently Asked Questions (FAQs)

How does Google Sheets decide which color to show if two rules apply to the same cell?

When more than one rule is true for the same cell, Google Sheets uses the rule nearest the top of the list in the conditional formatting sidebar; rules lower down do not change that cell. Drag the rules to change their order.

Can I highlight an entire row based on a condition in one column?

Yes, you can format the entire row based on a specific condition by selecting the whole row range and using a custom formula that references the specific column with a dollar sign to fix it (e.g., $C2>80).

What should I do if my conditional formatting isnโ€™t working as expected?

Check that your formula references match the top-left cell of your selected range and ensure there are no extra spaces or formatting issues in your data. Also, confirm that rules are applied to the correct range and order.


Concluding Words

Conditional formatting makes your sheets more organized and well-presented. Making the best use of Google Sheets starts with Conditional formatting. Once you master this function, there is no going back.

Although various built-in formulas exist, you can still enlarge your capacity with the custom formula option. Go through this article and get a grip on applying multiple functions. Feel free to reach out to us for any queries. We are always eager to hear from you.

For a rule that checks a single other cell, see conditional formatting based on another cell in Google Sheets; for text checks, see conditional formatting if another cell contains text.

Facebook
X
LinkedIn
WhatsApp
Picture of Anha Nowshin

Anha Nowshin

Nowshin Afroj Anha is a professional B2B and B2C blog writer with experience in ecommerce, SEO, and content strategy. She has two years of experience using Excel and Google Sheets for basic data handling, organization, and workflow support. She is interested in strengthening her spreadsheet skills and contributing to the spreadsheet community by applying her technical and analytical experience to structured data tasks.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo