Conditional formatting on large data

Conditional formatting makes a table readable at a glance: overdue invoices in red, the ten biggest customers in green, a colour scale on margins. On a big sheet in Excel, it is also one of the first things to make scrolling sluggish. Here are the rules worth using, the habits that keep them useful, and how to apply them to millions of rows.

Updated

The rules that answer most questions

  • Greater than, less than, between: amounts above a threshold, stock below a minimum.
  • Top or bottom N values: the ten largest orders, the five worst margins.
  • Text that contains a word: every status containing “overdue”.
  • A date occurring: last month, this week, last year.
  • Colour scale: shades a column from low to high, to spot extremes and patterns.
  • Data bar: draws a bar inside each cell, proportional to the value.

Why conditional formatting slows Excel down

Excel evaluates formatting rules cell by cell, and re-evaluates them as you scroll, sort and edit. A rule copied onto a million cells, or many overlapping rules created by copy-pasting formatted ranges, can make a workbook noticeably slower. Rules based on formulas with volatile functions such as TODAY or OFFSET are the heaviest.

Two habits help in Excel: apply each rule to whole columns once rather than to many pasted ranges, and clean up duplicated rules in the Manage Rules dialog.

Conditional formatting in Big Sheets

Big Sheets is a spreadsheet that opens files of several million rows in your browser. Formatting rules belong to a column, and only the rows on screen are drawn, so a rule on a column of 5 million values costs no more to display than on a column of 50.

  1. Select one column by clicking its letter.
  2. Click Conditional formatting, then New rule.
  3. Pick a condition, for example Greater than 800000, or Top N values with 10.
  4. Pick a style: a light red fill with dark red text, a green fill, and so on.
  5. Add more rules if needed. Rules apply in order; move them up or down.
  6. For a colour scale or data bars, choose that rule type and a palette.
  7. To start over, open the column’s rules and remove them all.

Good habits that keep formatting meaningful

  • One colour, one meaning. If red means overdue in one column, do not use it for a low margin in the next.
  • Fewer rules, more filters. Highlighting tells you where to look; a filter shows only those rows. On a big file, filter on the condition to count and export the rows.
  • Clean the data first. A colour scale on a column with a few absurd values, such as a misplaced decimal, turns everything else the same colour.
  • Prefer a colour scale for continuous values and a threshold for decisions. “Above target” is a threshold; “how does margin vary” is a scale.

Three useful set-ups

  • Receivables: a rule on the due date for dates in the past, in red, plus a data bar on the amount. The biggest overdue amounts stand out at once.
  • Sales by rep: a colour scale on the margin column, and the top 10 values of revenue in green. You see who sells a lot at a low margin.
  • Data quality: a rule on a status column for text containing “error” or “unknown”, in yellow. Then filter on it to fix the rows before the analysis.

From highlighting to action

Formatting shows patterns; the next step is usually a number. Once the red cells are visible, filter on them and read the count at the bottom, or build a pivot table of the overdue amounts per customer. In Big Sheets, both work on every row of the file, and nothing is uploaded: your data stays on your device.

Try it on your own file

Open it in Big Sheets: no sign-up, and your file never leaves this browser.

One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing

Questions

Can I apply a colour scale to millions of rows?
Yes. In Big Sheets the rule belongs to the column and only visible rows are drawn, on files tested up to 5 million rows.
Is the formatting kept when I export to Excel?
Yes, as it looks: each exported cell keeps the colours its rules gave it, so the file shows what the sheet showed. The rules themselves are not exported, so the colours do not update if someone edits the values in Excel.
Can a rule use a formula?
Big Sheets offers ready-made conditions on values, text and dates. For a custom condition, add a calculated column with the formula and format or filter on it.
Does the formatting follow sorting?
Yes. The rules belong to the column, not to cell positions, so a highlighted value stays highlighted wherever its row moves when you sort the sheet.