{"id":"sheet-sb-reorder-highlight-rules","audience":"small-business","category":"spreadsheets","track":"data","technique":"constraints","title":"Write highlight rules for items that need reordering","free":false,"task":"You want your Inventory sheet (A2:F200) to color whole rows red when stock is at or below the reorder point, and yellow when it's within 5 units above it, but discontinued items must never be colored. Ask for exactly 3 numbered lines: Red: with its custom formula, Yellow: with its custom formula, and Apply to: with the range. Plain text, under 70 words.","materialLabel":"Your Inventory sheet (attached to your prompt automatically)","material":"Sheet: Inventory (Google Sheets) - Juniper Pet Supply\n\nA SKU | B Item | C On hand | D Reorder point | E Supplier | F Status\nJP-101 | Salmon kibble 5lb | 12 | 15 | Northfield | Active\nJP-102 | Chicken kibble 5lb | 18 | 15 | Northfield | Active\nJP-117 | Rope toy | 4 | 10 | Pawcraft | Discontinued\nJP-130 | Cat litter 20lb | 30 | 20 | Clearsand | Active\nJP-142 | Dental chews | 15 | 15 | Pawcraft | Active\nJP-155 | Bird seed mix | 2 | 8 | Featherly | Discontinued\n\nNotes:\n- 199 rows; Status is Active or Discontinued\n- Last month the discontinued rope toys showed red every day and my staff reordered them by mistake\n- I check this on Monday mornings before calling suppliers","rules":[{"type":"numberedItems","count":3},{"type":"maxWords","max":70},{"type":"plainText"}],"mistakes":[{"title":"Forgetting discontinued items","why":"The AI's rule turns discontinued rows red, the same mistake that got rope toys reordered.","fix":"Add: \"Never color rows where Status is Discontinued.\"","checks":["r0","r1"]},{"title":"Leaving the yellow band vague","why":"The AI picks its own warning range, like 20% above.","fix":"Add: \"Yellow: within 5 units above the reorder point.\"","checks":["r1"]},{"title":"Coloring one cell, not the row","why":"Without $ on the columns, the rule only works in one column.","fix":"Add: \"Color whole rows; lock columns with $.\"","checks":["r2"]},{"title":"Getting menu steps","why":"The AI explains where to click instead of giving the rules.","fix":"Say: \"Exactly 3 lines: Red:, Yellow:, Apply to:. Plain text.\"","checks":["numberedItems","maxWords","plainText"]}],"promptHints":[{"label":"Excludes discontinued items","patterns":["discontinued","status"]},{"label":"Defines the yellow band","patterns":["5 units","\\+5","within 5"]},{"label":"Colors whole rows","patterns":["whole row","\\$c2","a2:f200","entire row"]},{"label":"Names the 3 lines","patterns":["red:","yellow:","apply to"]},{"label":"Asks for plain text","patterns":["plain","no bold","no markdown"]}],"hint":"Color rules need an exception list. Tell the AI which rows must never light up and exactly where yellow starts and stops.","rubricLabels":["The Red: formula checks on hand at or below the reorder point ($C2<=$D2) and that Status isn't Discontinued (for example =AND($F2<>\"Discontinued\",$C2<=$D2))","The Yellow: formula covers on hand above the reorder point by at most 5 ($C2>$D2 and $C2<=$D2+5) and also excludes Discontinued","Both formulas lock the columns with $ (like $C2, $D2, $F2) so whole rows color, and the Apply to: line gives A2:F200"]}