Highlight Dates, Percentiles and Outliers with Conditional Formatting
Highlights weekends, date windows, due/overdue items, top percentile ranks, and statistical outliers using formula rules. Use for schedules, deadlines, and data-quality review.
by skillstore33 · Verified · MIT
If you have the Skill Store MCP or plugin installed, type:
Use the skill on the SS33 Skill Store to shade the weekend days and overdue invoices in my payment tracker spreadsheet and flag the top 10 percent of order values
Don't have the MCP or plugin installed? Get it now!
VERIFIED - scores 96% of Opus, 1/5 the cost Qwen 3.5 9B + this skill (60 of 94): 63% · Qwen 3.6 27B + this skill (79 of 94): 84% · Claude Opus 5.5, no skill (82 of 94): 87% · Claude Opus 5.5 + this skill (94 of 94): 100%.
The skill
Highlights weekends, date windows, due/overdue items, top percentile ranks, and statistical outliers using formula rules. Use for schedules, deadlines, and data-quality review.
Conditional formatting: dates, percentiles, outliers
Rule for using this skill: These are extra tips to add to your answer. They do not replace it. Always give your complete general answer first (explanation, alternatives, built-in rule types, other tools or versions, troubleshooting). Then work these points in wherever they apply. Do not drop what you already know in favour of this list.
Common setup (all rules below)
- Select the target data range first. Then go to Home tab ⇒ Conditional Formatting ⇒ New Rule.
- In the top list box pick Use a Formula to Determine which Cells to Format. The format is applied to each cell where the formula evaluates to TRUE.
- Type the formula in the formula box, click Format (Format Cells: font, border, fill), click OK, then OK again in New Formatting Rule.
- To edit later: click any cell in the formatted range, then Home ⇒ Conditional Formatting ⇒ Manage Rules (opens Conditional Formatting Rules Manager). Select the rule and click Edit Rule.
Reference-style gotcha (the most common silent failure)
- Write the target cell reference without
$(e.g.B3), where B3 is the first cell of the selected range. Each cell is then evaluated on its own value. - Clicking a cell while the formula box is active makes Excel insert an absolute reference (
$B$3). Every cell is then tested against B3 and the rule silently misfires. Type the reference by hand or strip the$signs. - Keep
$on the fixed reference cells (start/end dates, fences) and on the full data range inside PERCENTILE.
Highlight weekend dates
- Formula:
=OR(WEEKDAY(B3)=1,WEEKDAY(B3)=7) - With the default WEEKDAY return type, 1 = Sunday and 7 = Saturday, so TRUE means the date is a weekend.
Highlight dates between two dates
- Start date in
$B$3, end date in$C$3, data in E3:E18:=AND(E3>=$B$3,E3<=$C$3) - Both endpoints are inclusive (
>=,<=). - Changing the start or end cells updates the highlighting automatically.
Highlight overdue dates (past due)
- Formula, for example more than 90 days overdue:
=TODAY()-C4>90 - C4 is the first cell of the selected range (relative, no
$). Change 90 to alter the threshold. - TODAY() recalculates, so highlighting changes as the date changes.
- Pick a red fill or font in Format Cells for a "past due" look.
Highlight by percentile rank
- Get the markers with
=PERCENTILE($B$3:$B$20,0.75)and=PERCENTILE($B$3:$B$20,0.25). PERCENTILE takes two arguments: the data range and the percentile (0–1). - Bottom band rule, red:
=B3<=PERCENTILE($B$3:$B$20,0.25) - Top band rule, green:
=B3>=PERCENTILE($B$3:$B$20,0.75) - Each band is a separate rule with its own Format settings. After creating the first rule you land in the Rules Manager. Click New Rule, choose Use a Formula again, and enter the second formula.
- The data range must be absolute (
$B$3:$B$20). The tested cell (B3) must be relative. - The inequalities include the cutoff value itself. Values equal to the 25th or 75th percentile are also highlighted.
Highlight statistical outliers (IQR method)
- Helper cells:
- Q1 and Q3 via
QUARTILE(range,1)andQUARTILE(range,3). QUARTILE takes the data range and the quartile number. - IQR = Q3 − Q1. The source text words this subtraction backwards, so use Q3 minus Q1.
- Lower fence = Q1 − IQR1.5; upper fence = Q3 + IQR1.5. In the example the fences are in E8 (lower) and E7 (upper).
- Q1 and Q3 via
- Rule:
=OR(B3<$E$8,B3>$E$7), with the lower fence in$E$8and the upper fence in$E$7. Check which cell holds which fence in your own sheet. - In Excel's QUARTILE, quartile 1 is the 25th-percentile value and quartile 3 is the 75th-percentile value. Do not rely on the source's "top 25% is 1st quartile" wording.
- Values strictly beyond either fence are the outliers. Fences use the 1.5 × IQR convention.
- Keep the fence references absolute and the tested cell relative.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/excel-conditional-formatting-dates-stats-93180661661.
Details
- Publisher
- skillstore33
- Category
- Business › Operations & productivity
- License
- MIT
- Updated
- 2026-11-25
References
More from skillstore33
Acrylic Color Reference Cards on White and Black Know exactly how your colors mix before you paint
Stencils, Mouth Atomizer and Glue Gun Stencil Techniques Spray and sponge crisp patterns with homemade stencils
Staging Action and Reaction in Storyboards Show action, character reaction and pacing clearly across panels
Drawing Characters of Different Ages Make babies, kids, teens, adults and seniors read at a glance