Bird
Raised Fist0
Google Sheetsspreadsheet~15 mins

Why advanced rules highlight patterns in Google Sheets - Business Case Study

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Scenario Mode
👤 Your Role: You are a sales analyst at a retail company.
📋 Request: Your manager wants you to find and highlight sales patterns in the monthly sales data to spot trends and outliers quickly.
📊 Data: You have monthly sales data for different products over six months. The data includes product names and sales numbers for each month.
🎯 Deliverable: Create conditional formatting rules in Google Sheets that highlight sales patterns such as increasing trends, decreasing trends, and unusually high or low sales.
Progress0 / 6 steps
Sample Data
ProductJanFebMarAprMayJun
Apples120130150160170180
Bananas200190180170160150
Cherries505560657075
Dates300310290280270260
Elderberries80859095100105
Figs150160170180190200
Grapes220210230240250260
Honeydew908580757065
1
Step 1: Select the sales data range from B2 to G9 (all months for all products).
No formula needed for selection.
Expected Result
Cells B2:G9 are selected.
2
Step 2: Create a conditional formatting rule to highlight increasing sales trends for each product across months.
Use custom formula: =AND(B2<C2, C2<D2, D2<E2, E2<F2)
Expected Result
Rows where sales increase every month are highlighted (e.g., Apples, Cherries, Elderberries, Figs).
3
Step 3: Create a conditional formatting rule to highlight decreasing sales trends for each product across months.
Use custom formula: =AND(B2>C2, C2>D2, D2>E2, E2>F2)
Expected Result
Rows where sales decrease every month are highlighted (e.g., Bananas, Dates, Honeydew).
4
Step 4: Create a conditional formatting rule to highlight unusually high sales in any month compared to the average sales of that product.
Use custom formula: =B2>AVERAGE($B2:$G2)*1.2
Expected Result
Cells with sales 20% higher than the product's average sales are highlighted (e.g., Grapes in Mar, Apr, May, Jun).
5
Step 5: Create a conditional formatting rule to highlight unusually low sales in any month compared to the average sales of that product.
Use custom formula: =B2<AVERAGE($B2:$G2)*0.8
Expected Result
Cells with sales 20% lower than the product's average sales are highlighted (e.g., Honeydew in Jun).
6
Step 6: Apply distinct colors for each rule to easily see patterns: green for increasing trend, red for decreasing trend, blue for high sales, orange for low sales.
Set colors in conditional formatting rules.
Expected Result
Sales patterns are visually clear with different colors.
Final Result
Product   Jan  Feb  Mar  Apr  May  Jun
-------------------------------------
Apples    120  130  150  160  170  180  (green highlight for increasing trend)
Bananas   200  190  180  170  160  150  (red highlight for decreasing trend)
Cherries   50   55   60   65   70   75  (green highlight for increasing trend)
Dates     300  310  290  280  270  260  (red highlight for decreasing trend)
Elderberries 80   85   90   95  100  105  (green highlight for increasing trend)
Figs      150  160  170  180  190  200  (green highlight for increasing trend)
Grapes    220  210  230  240  250  260  (blue highlight on Mar-Jun for high sales)
Honeydew   90   85   80   75   70   65  (red highlight for decreasing trend, orange on Jun for low sales)
Apples, Cherries, Elderberries, and Figs show steady increasing sales over six months.
Bananas, Dates, and Honeydew show steady decreasing sales over six months.
Grapes have unusually high sales from March to June compared to their average.
Honeydew has an unusually low sale in June compared to its average.
Bonus Challenge

Create a new conditional formatting rule to highlight months where sales are equal to the highest sales value for that product.

Show Hint
Use the formula =B2=MAX($B2:$G2) to highlight the highest sales month per product.

Practice

(1/5)
1. What is the main purpose of using advanced conditional formatting rules in Google Sheets?
easy
A. To protect cells from editing
B. To highlight important data patterns automatically
C. To create charts from data
D. To sort data alphabetically

Solution

  1. Step 1: Understand conditional formatting

    Conditional formatting changes cell colors based on rules.
  2. Step 2: Identify the purpose of advanced rules

    Advanced rules highlight patterns to quickly spot important data points.
  3. Final Answer:

    To highlight important data patterns automatically -> Option B
  4. Quick Check:

    Advanced rules highlight patterns = To highlight important data patterns automatically [OK]
Hint: Remember: advanced rules = automatic pattern highlighting [OK]
Common Mistakes:
  • Confusing formatting with sorting
  • Thinking it creates charts
  • Assuming it protects cells
2. Which of the following is the correct way to apply a custom formula rule to highlight cells greater than 100 in column A?
easy
A. =IF(A1>100)
B. =A>100
C. =A1>100
D. =CELL("value", A1)>100

Solution

  1. Step 1: Understand cell referencing in formulas

    Use A1 to refer to the first cell in the range for conditional formatting.
  2. Step 2: Check formula syntax for condition

    =A1>100 correctly tests if the cell value is greater than 100.
  3. Final Answer:

    =A1>100 -> Option C
  4. Quick Check:

    Correct cell reference and condition = =A1>100 [OK]
Hint: Use exact cell reference like A1 in custom formulas [OK]
Common Mistakes:
  • Using column letter without row number
  • Adding IF without a complete condition
  • Using CELL function incorrectly
3. Given the data in column B: 50, 120, 80, 150, and the conditional formatting rule with custom formula =B1>100, which cells will be highlighted?
medium
A. All cells
B. Cells B1 and B3
C. Cells B3 and B4
D. Cells B2 and B4

Solution

  1. Step 1: Evaluate each cell against the formula

    Check if each cell value is greater than 100: B1=50 (no), B2=120 (yes), B3=80 (no), B4=150 (yes).
  2. Step 2: Identify highlighted cells

    Only B2 and B4 meet the condition and will be highlighted.
  3. Final Answer:

    Cells B2 and B4 -> Option D
  4. Quick Check:

    Values > 100 = B2, B4 highlighted [OK]
Hint: Check each cell value against the formula condition [OK]
Common Mistakes:
  • Highlighting cells with values less than 100
  • Confusing cell positions
  • Assuming all cells highlight
4. You applied the custom formula =AND(A1>50, A1<=100) for conditional formatting but no cells are highlighted even though some values are between 51 and 100. What is the likely problem?
medium
A. The formula uses relative references but the range is not set correctly
B. The formula syntax is incorrect and causes an error
C. The values are text, not numbers
D. Conditional formatting only works with built-in rules

Solution

  1. Step 1: Check formula and range alignment

    The formula uses A1 relative reference, so the range must start at A1 for correct application.
  2. Step 2: Understand why no cells highlight

    If the range starts elsewhere, the formula references wrong cells, so no highlight appears.
  3. Final Answer:

    The formula uses relative references but the range is not set correctly -> Option A
  4. Quick Check:

    Relative references need matching range start [OK]
Hint: Match formula cell reference with range start cell [OK]
Common Mistakes:
  • Assuming formula syntax error without checking range
  • Ignoring data type mismatch
  • Thinking conditional formatting needs built-in rules only
5. You want to highlight cells in column C that contain text starting with "Sale" and have a number in column D greater than 500. Which custom formula should you use for conditional formatting on range C1:C100?
hard
A. =AND(LEFT(C1,4)="Sale", D1>500)
B. =AND(LEFT(C1,4)="Sale", $D$1>500)
C. =AND(LEFT($C$1,4)="Sale", D1>500)
D. =AND(LEFT(C1,4)="Sale", D$1>500)

Solution

  1. Step 1: Use relative references for row numbers

    Since formatting applies to C1:C100, use C1 and D1 with relative row references to check each row correctly.
  2. Step 2: Check formula logic

    LEFT(C1,4)="Sale" checks text start; D1>500 checks number in same row column D; AND combines both conditions.
  3. Final Answer:

    =AND(LEFT(C1,4)="Sale", D1>500) -> Option A
  4. Quick Check:

    Relative references for same row = =AND(LEFT(C1,4)="Sale", D1>500) [OK]
Hint: Use relative row references for multi-column conditions [OK]
Common Mistakes:
  • Using absolute references locking row 1
  • Mixing absolute and relative incorrectly
  • Not combining conditions with AND