# Highlight Dates, Percentiles and Outliers with Conditional Formatting

> Highlights weekends, date windows, due/overdue items, top percentile ranks, and statistical outli…

Highlights weekends, date windows, due/overdue items, top percentile ranks, and statistical outliers using formula rules. Use for schedules, deadlines, and data-quality review.

- Page: https://ss33.ai/skills/skillstore33/excel-conditional-formatting-dates-stats-93180661661
- Publisher: skillstore33
- Category: [Business](https://ss33.ai/skills/category/business-y1h0vy) › [Operations & productivity](https://ss33.ai/skills/category/business-y1h0vy/operations-and-productivity-ivsf8j)
- License: MIT

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/skillstore33/excel-conditional-formatting-dates-stats-93180661661

# 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)` and `QUARTILE(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 − IQR*1.5; upper fence = Q3 + IQR*1.5. In the example the fences are in E8 (lower) and E7 (upper).
- Rule: `=OR(B3<$E$8,B3>$E$7)`, with the lower fence in `$E$8` and 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.
