Back to Blog

How to Use Conditional Formatting in Google Sheets: Step-by-Step Guide | SheetXAI

D
David DeSouza
Dec 1, 2025
Vector illustration showing two side-by-side panels with colored grid blocks and checkmarks, representing cells changing color based on values or formatting rules

The Problem

You have data in Google Sheets and want to quickly identify important information - like highlighting sales above a target, dates that are overdue, or values that stand out. Conditional formatting automatically changes cell colors, fonts, or borders based on rules you set.

The Easy Way: Use SheetXAI

If you don't want to manually set up conditional formatting rules, the fastest way is to simply ask SheetXAI.

With SheetXAI, you can open the sidebar and type:

Highlight all cells in column B that are greater than 1000 in green.

SheetXAI will instantly apply conditional formatting for you, handling all the rules and colors automatically. You can create complex formatting rules with simple commands.

The Manual Way: Step-by-Step Instructions

To apply conditional formatting manually in Google Sheets, follow these steps:

Step 1: Select Your Data

  1. Select the cells you want to format
  2. You can select:
    • A single cell
    • A range of cells
    • An entire column or row
    • Multiple ranges (hold Ctrl/Cmd while selecting)

Step 2: Open Conditional Formatting

  1. Click Format in the menu bar
  2. Click Conditional formatting
  3. The Conditional format rules panel will appear on the right

Step 3: Choose a Formatting Rule

Google Sheets offers several rule types:

Format cells if:

  • Greater than: Highlight cells above a value
  • Less than: Highlight cells below a value
  • Equal to: Highlight cells matching a value
  • Between: Highlight cells within a range
  • Text contains: Highlight cells containing specific text
  • Text is exactly: Exact text match
  • Text starts with: Text begins with specific characters
  • Text ends with: Text ends with specific characters
  • Date is: Specific date conditions
  • Date is before/after: Date range conditions
  • Is empty/Is not empty: Blank or filled cells
  • Custom formula is: Use a formula for complex conditions

Step 4: Set Up the Rule

  1. In the Conditional format rules panel:
  2. Format cells if: Choose a condition type
  3. Value or formula: Enter the criteria (e.g., "1000" for greater than 1000)
  4. Formatting style: Choose:
    • Fill color: Background color
    • Text color: Font color
    • Bold/Italic/Underline: Text style
  5. Click Done

Step 5: Add Multiple Rules

You can add multiple rules to the same range:

  1. After creating your first rule, click Add another rule
  2. Set up the second rule
  3. Rules are applied in order (top to bottom)
  4. Click Done when finished

Step 6: Manage Rules

To view or edit existing rules:

  1. Select the cells with conditional formatting
  2. FormatConditional formatting
  3. The panel shows all rules for the selected range
  4. Edit: Click the rule to modify it
  5. Delete: Click the trash icon to remove a rule
  6. Drag rules to reorder them (affects priority)

Common Conditional Formatting Examples

Highlight Values Above a Threshold

  1. Select your data
  2. FormatConditional formatting
  3. Format cells if: Choose "Greater than"
  4. Value or formula: Enter the threshold (e.g., 1000)
  5. Formatting style: Choose a fill color (e.g., green)
  6. Click Done

Highlight Duplicates

  1. Select your data
  2. FormatConditional formatting
  3. Format cells if: Choose "Custom formula is"
  4. Value or formula: Enter =COUNTIF($A$1:$A$100,A1)>1
  5. Formatting style: Choose a fill color
  6. Click Done

Color Scale (Heat Map)

  1. Select your data
  2. FormatConditional formatting
  3. Format cells if: Choose "Color scale"
  4. Choose a color scheme (Min-Max colors)
  5. Click Done

Using Custom Formulas

For complex conditions, use custom formulas:

  1. Select your data
  2. FormatConditional formatting
  3. Format cells if: Choose "Custom formula is"
  4. Value or formula: Enter your formula
    • Example: =B2>AVERAGE($B$2:$B$100)
    • Example: =AND(B2>1000, B2<5000)
  5. Formatting style: Choose formatting
  6. Click Done

Common Mistakes to Avoid

  1. Selecting wrong range: Make sure you select the cells you actually want to format
  2. Using relative references incorrectly: In formula rules, be careful with $ signs
  3. Too many rules: Too many conditional formatting rules can slow down Google Sheets
  4. Conflicting rules: Multiple rules on the same cells can conflict - check rule order
  5. Not testing rules: Always verify that your rules work as expected

Tips for Better Conditional Formatting

  • Use color scales for trends: Great for spotting patterns in data
  • Use custom formulas: For advanced conditions, use formula-based rules
  • Combine rules: Apply multiple rules to the same cells for complex formatting
  • Manage rules: Regularly review and clean up unused rules
  • Use SheetXAI for complex rules: For complex conditional formatting, SheetXAI can set it up automatically
  • Test on sample data: Try your rules on a small range first

Copying Conditional Formatting

To copy conditional formatting to other cells:

  1. Select the cell with the formatting
  2. EditCopy (Ctrl+C / Cmd+C)
  3. Select destination cells
  4. EditPaste specialPaste format only

Or use Format Painter:

  1. Select source cell
  2. Click Format Painter icon (paintbrush)
  3. Click and drag over destination cells

Clearing Conditional Formatting

To remove conditional formatting:

  1. Select the cells
  2. FormatConditional formatting
  3. Click the trash icon next to each rule you want to delete
  4. Or click Remove rule to remove all rules

Conditional Formatting Best Practices

  • Use meaningful colors: Choose colors that make sense (red for problems, green for good)
  • Don't overdo it: Too much formatting can make data hard to read
  • Be consistent: Use the same color scheme across related sheets
  • Document rules: Note what your formatting rules mean for others
  • Test thoroughly: Verify rules work correctly before sharing sheets

Conclusion

Now you know how to use conditional formatting in Google Sheets manually. It's a powerful way to visualize data and spot important information quickly.

But for those times when you need to apply complex formatting rules or format multiple ranges, SheetXAI can apply conditional formatting automatically with simple commands, saving you time and ensuring consistent formatting.

Boost your productivity today.
Start automating your spreadsheets.

Join thousands of professionals saving hours every week. No credit card required to start.

Learn more