Use conditional formatting rules in Google Sheets - Computer (2024)

Cells, rows, or columns can be formatted to change text or background color if they meet certain conditions. For example, if they contain a certain word or a number.

Use conditional formatting rules in Google Sheets - Computer (1)

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the cells you want to apply format rules to.
  3. Click Format Use conditional formatting rules in Google Sheets - Computer (2) Conditional formatting. A toolbar will open to the right.
  4. Create a rule.
    • Single color: Under "Format cells if," choose the condition that you want to trigger the rule. Under "Formatting style, choose what the cell will look like when conditions are met.
    • Color scale: Under "Preview," select the color scale. Then, choose a minimum and maximum value, and an optional midpoint value. To choose the value category, click the Down arrow Use conditional formatting rules in Google Sheets - Computer (3).
  5. Click Done.

Example

A teacher can highlight test scores to see which students scored less than 80%.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the test scores.
  3. Click Format Use conditional formatting rules in Google Sheets - Computer (4) Conditional formatting.
  4. Under "Format cells if," click Less than. If there's already a rule, click itorAdd new ruleUse conditional formatting rules in Google Sheets - Computer (5)Less than.
  5. Click Value or formula and enter 0.8.
  6. To choose a red color, click Fill Use conditional formatting rules in Google Sheets - Computer (6).
  7. Click Done. The low scores will be highlighted in red.

Use advanced conditional formatting

Use custom formulas with conditional formatting

You can use custom formulas to apply formatting to one or more cells based on the contents of other cells.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the cells you want to format.
  3. Click Format Use conditional formatting rules in Google Sheets - Computer (7) Conditional formatting.
  4. Under the "Format cells if" drop-down menu, click Custom formula is.If there's already a rule, click it orAdd new ruleUse conditional formatting rules in Google Sheets - Computer (8)Custom formula is.
  5. Click Value or formulaand add the formula and rules.
  6. Click Done.

Note: Formulas can only reference the same sheet, using standard notation "(='sheetname'!cell)." To reference another sheet in the formula, use the INDIRECT function.

Example 1

To highlight when there's more than one occurrence of the same value in your data:

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the range you want to format. For example, cells A1 to A100.
  3. Click Format Use conditional formatting rules in Google Sheets - Computer (9) Conditional formatting.
  4. Under the "Format cells if" drop-down menu, click Custom formula is.If there's already a rule, click it orAdd new ruleUse conditional formatting rules in Google Sheets - Computer (10)Custom formula is.
  5. Write the rule for the first row. In this case the rule would be, "=COUNTIF($A$1:$A$100,A1)>1."
  6. Choose other formatting properties.
  7. Click Done.

Example 2

To format an entire row based on the value of one of the cells in that row:

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the range you want to format, for example, columns A:E.
  3. Click Format Use conditional formatting rules in Google Sheets - Computer (11) Conditional formatting.
  4. Under the "Format cells if" drop-down menu, click Custom formula is.If there's already a rule, click it orAdd new ruleUse conditional formatting rules in Google Sheets - Computer (12)Custom formula is.
  5. Write the rule for the first row. For example, if you want to make the whole row green if the value in column B is "Yes", write a formula like "=$B1="Yes"."
  6. Choose other formatting properties.
  7. Click Done.

Absolute vs. relative references

Often, you will need to add dollar signs ($) in front of letters and numbers in formulas so that the formatting is applied using absolute references as opposed to relative references (A1 to B1, A2 to B2).

Use wildcard characters with conditional formatting

You can use wildcard characters to match multiple expressions. Wildcard characters can be used with the "Text contains" or "Text does not contain" fields while formatting.

  • To match any single character, use a question mark (?). For example, a text rule containing "a?c" would format cells with "abc," but not "ac" or "abbc."
  • To match zero (0) or more characters, use an asterisk (*) . For example, a text rule containing "a*c" would format cells with "abc," "ac," and "abbc" but not "ab" or "ca."
  • To match a question mark or asterisk in text, you can escape the wildcard characters by adding a tilde (~) in front of them. For example, a text rule containing "a~?c" would format cells with "a?c" but not "abc" or "a~?c."

Notes:

  • To remove a rule, point to the rule and click RemoveUse conditional formatting rules in Google Sheets - Computer (13).
  • Rules are evaluated in the order listed. The first rule found to be true will define the format of the cell or range. To reorder rules, click and drag them.
  • If you copy and paste from a cell or range that has formatting rules, these rules will be applied when you paste the copied data.

Need more help?

Try these next steps:

Post to the help community Get answers from community members

Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Use conditional formatting rules in Google Sheets - Computer (2024)
Top Articles
Netherlands Travel Facts - The World Factbook
What Is The 80 20 Rule In Real Estate | InvestNext
Crete Il Forum
Golden Grain Pizza East Greenbush - Rensselaer
Brenda Song Wikifeet
Western Razor David Angelo Net Worth
Mercy Baggot Street Mypay
SUN WOOD ➠ the ultimate alternative to reclaimed wood & precious wood
Vados X Male Reader
Reston, VA | Reston Demographics in 2024
pittsburgh gigs - craigslist
Tmj4 Weather Milwaukee
Umn Pay Calendar
Imponte Phoenix
Walgreens On Osborn And Scottsdale
Hdmovieshub In
Puff Hall Road
Tampa Bay Times Mugshots
M3Gan Showtimes Near Regal City North
Dinar Guru Recaps Updates
Publix Super Market At Lockwood Commons
Marylynn Lee
Varsity Competition Results 2022
Fruit Of Enchantment Bdo
Christmas Days Away
385-437-2602
Cvs Minuteclinic Locations Near Me
Vermont Free Stuff Craigslist
Monster Hunter Rise Steam Unlocked
Standard Page Field
The Hub.fcagroup.com Login Page
_Ashleyjoyyy
According To The Wall Street Journal Weegy
Sharp Charts
How To Get The Unphased Badge In Slap Battles
Tristatehomepage Evansville
Two Number Lunchtime Today Come
Please Help Me: What to Do When You Need Help
Craigslist Kalispell Montana Personals
Yellow Sun Of Ecuador by The Classics
Tvlistings.com
Go Karts For Sale Near Me Used
B&B Auto Salvage Okc
Tyrones Unblocked Games Basketball Stars
Www.socialserve.com Ga
Steamunlocked Starfield
Soap Central Message Boards Bold And Beautiful
Kristenhart Cam
Sweaty Gta Names Tryhard Gamertags
Busted Mugshots Buena Vista Va
Zuercher Portal Marion County Wv
Metro Pcs Locations Near Me
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5291

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.