The request

From Anna Chen, Sales Manager
Your goal
In F2:F38, return TRUE when the line_total in column E is greater than the green threshold in K1. In G2:G38, TRUE when it is less than the red threshold in K2. In H2:H38, TRUE when it is above the average of all line totals in E2:E38 (use AVERAGE over the locked range).
- Fill
F2:H38with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
AVERAGEnot done yet
Your sheet
| A | B | C | D | E | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | order_item_id | product | category | quantity | line_total | green | red | above_avg | Green when over | 150.00 | ||
| 2 | 25846 | Oakley Enamel Dutch Oven | Kitchen | 1 | 109.00 | Red when under | 70.00 | |||||
| 3 | 25847 | Sutton Wool Knit Throw | Textiles | 1 | 70.99 | |||||||
| 4 | 25848 | Bramble Percale Quilt | Textiles | 3 | 417.00 | |||||||
| 5 | 25849 | Oakley Brass Framed Print | Decor | 1 | 104.99 | |||||||
| 6 | 25850 | Delancey Brass Vase | Decor | 1 | 19.99 | |||||||
| 7 | 25851 | Vale Enamel Bowl Set | Kitchen | 1 | 11.99 | |||||||
| 8 | 25852 | Cove Cast Iron Dutch Oven | Kitchen | 2 | 21.98 | |||||||
| 9 | 25853 | Oakley Brass Framed Print | Decor | 1 | 104.99 | |||||||
| 10 | 25854 | Cove Wool Lumbar Pillow | Textiles | 1 | 52.99 | |||||||
| 11 | 25855 | Tidewater Stainless Wine Glasses | Kitchen | 2 | 338.00 | |||||||
| 12 | 25856 | Birch Brass Floor Mirror | Decor | 2 | 41.98 | |||||||
| 13 | 25857 | Thatcher Oak Candle | Decor | 2 | 35.98 | |||||||
| 14 | 25859 | Ridge Soy Wax Vase | Decor | 3 | 327.00 | |||||||
| 15 | 25860 | Oakley Jute Knit Throw | Textiles | 1 | 23.99 | |||||||
| 16 | 25861 | Ridge Brass Bud Vase | Decor | 2 | 25.98 | |||||||
| 17 | 25862 | Fairhaven Stoneware Cutting Board | Kitchen | 1 | 70.99 | |||||||
| 18 | 25863 | Birch Brass Floor Mirror | Decor | 1 | 20.99 | |||||||
| 19 | 25866 | Vale Cashmere-Blend Knit Throw | Textiles | 2 | 37.98 | |||||||
| 20 | 25870 | Sutton Wool Knit Throw | Textiles | 1 | 70.99 | |||||||
| 21 | 25871 | Chester Brass Wall Mirror | Decor | 2 | 318.00 | |||||||
| 22 | 25872 | Harbor Oak Floor Mirror | Decor | 1 | 44.99 | |||||||
| 23 | 25874 | Ridge Brass Bud Vase | Decor | 1 | 12.99 | |||||||
| 24 | 25875 | Hazel Porcelain Cutting Board | Kitchen | 1 | 129.00 | |||||||
| 25 | 25876 | Cove Wool Lumbar Pillow | Textiles | 1 | 52.99 | |||||||
| 26 | 25879 | Thatcher Oak Candle | Decor | 1 | 16.19 | |||||||
| 27 | 25883 | Sutton Wool Knit Throw | Textiles | 1 | 70.99 | |||||||
| 28 | 25884 | Harbor Wool Knit Throw | Textiles | 1 | 28.99 | |||||||
| 29 | 25885 | Thatcher Oak Candle | Decor | 1 | 17.99 | |||||||
| 30 | 25888 | Oakley Jute Knit Throw | Textiles | 1 | 23.99 | |||||||
| 31 | 25889 | Harbor Oak Floor Mirror | Decor | 2 | 89.98 | |||||||
| 32 | 25890 | Cove Cast Iron Dutch Oven | Kitchen | 1 | 10.99 | |||||||
| 33 | 25891 | Cove Wool Lumbar Pillow | Textiles | 2 | 105.98 | |||||||
| 34 | 25892 | Willow Acacia Knife Block | Kitchen | 3 | 161.97 | |||||||
| 35 | 25895 | Spruce Enamel Utensil Set | Kitchen | 1 | 239.00 | |||||||
| 36 | 25896 | Hazel Linen Throw Pillow | Textiles | 2 | 41.98 | |||||||
| 37 | 25899 | Willow Acacia Knife Block | Kitchen | 4 | 215.96 | |||||||
| 38 | 25901 | Oakley Brass Framed Print | Decor | 6 | 629.94 | |||||||
| 39 | ||||||||||||
| 40 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Anna gets, and why
The lesson
Conditional formatting colours a cell when a test on it is true. Behind every rule, built-in or custom, Excel evaluates a TRUE/FALSE for each cell. That’s useful to know, because it means you can write the same test in a column, check it row by row, count it, and sort or filter by it. This level does exactly that with Anna’s three rules.
Highlight Cells Rules in Excel
Select the line totals (E2:E38), then Home → Conditional Formatting → Highlight Cells Rules →
Greater Than…, type 150 (or click K1 so the rule follows the input cell) and pick Green Fill
with Dark Green Text. Repeat with Less Than…, 70, Light Red Fill. The same menu has
Between, Equal To, Text that Contains, A Date Occurring and Duplicate Values.
Google Sheets: Format → Conditional formatting, “Format cells if… Greater than”.
The written-out version of the two rules:
F2 =E2>$K$1
G2 =E2<$K$2
Row 4, the Bramble Percale Quilt at 417.00, is TRUE in F: green. Row 6, a Delancey Brass Vase at
19.99, is TRUE in G: red. Filled down, 8 lines come out green and 19 red. Watch the edges: four lines sit at 70.99 (rows 3,
17, 20 and 27). They are not under 70, so they get no colour. “Greater Than” and “Less Than” are strict: a line of exactly 150.00
would stay white. If Anna means “150 or more”, the rule is >=.
Top/Bottom and Above Average
Conditional Formatting → Top/Bottom Rules has Top 10 Items, Top 10%, Bottom 10 Items, Bottom 10%, Above Average and Below Average. Above Average compares each cell with the average of the whole selection:
H2 =E2>AVERAGE($E$2:$E$38)
The average of the 37 lines is 111.34, so 9 lines are above it. The range is locked with $ on
both ends: every row must compare with the same average. Notice how few lines beat the average: a
handful of big lines (629.94, 417.00) pull it up. That’s normal for order values, and a reason to
look at the median too. A Top 10% rule ranks the items and colours the largest tenth of them by
count; it does not mean “lines above 90% of the maximum”.
Data bars, colour scales and icon sets
These don’t test; they draw.
- Data Bars put a bar inside each cell, longest for the largest value. Good for quantities at a glance. By default the shortest bar is the minimum, so check that a small value doesn’t look like zero.
- Color Scales shade from one colour to another, low to high.
- Icon Sets put an arrow or traffic light in each cell. The defaults split the range by
percent; for a rating scale, edit the rule (Manage Rules → Edit) and set the type to
Number: green when ≥ 5, yellow when ≥ 3, red otherwise. Written out, that is
=IFS(E2>=5,"green",E2>=3,"yellow",TRUE,"red").
Manage Rules shows every rule on the sheet, the range it applies to and the order they run in. When two rules colour the same cell, the one higher in the list wins; tick Stop If True to end the checks there.
Common mistakes
- Unlocked thresholds or ranges in a written-out rule:
AVERAGE(E2:E38)filled down slides with the row. - Strict versus inclusive edges: “over 150” is
>, “150 or more” is>=. - Typing the threshold into the rule instead of pointing at a cell, then forgetting to update one of three rules when it changes.
- Formatting text that looks like numbers:
"120"stored as text fails>150and<70both ways, so it never gets a colour.
Lantern lit!
Practised: conditional formattinghighlight rulesabove averagedata barsicon setsabsolute references
- Solved
- No hints
- First run
