Stop Excel Conditional Formatting Duplicating & Fragmenting with These Fixes
MyOnlineTrainingHubJuly 29, 20256 min38,745 views
9 connectionsΒ·16 entities in this videoβUnderstanding Conditional Formatting Fragmentation
- π‘ Conditional formatting rules in Excel can duplicate and fragment unexpectedly, especially after inserting rows.
- π― This issue commonly occurs when rules use relative references to rows above or below the current row, causing Excel to misinterpret the applied range.
- π§© The problem is analogous to how formulas behave when rows are inserted, leading to incorrect comparisons.
The Offset Function Fix
- π The OFFSET function can be used to reference the row above without explicitly stating the cell reference, thus avoiding fragmentation.
- β
By comparing the current cell to the result of
OFFSET(current_cell, -1, 0), you effectively reference the cell above without a direct relative link. - β οΈ A drawback of OFFSET is that it's a volatile function, which can slow down large or complex workbooks.
The 'Cell Above' Defined Name Trick
- π§ A more efficient, non-volatile solution involves creating a defined name for the cell above the current selection.
- π This is achieved by going to Formulas > Define Name, naming it (e.g., 'CellAbove'), and setting its 'refers to' field to a relative reference of the cell directly above the currently selected cell (e.g.,
Sheet1!$H$3if H3 is above the selected cell). - π‘ This defined name can then be used within conditional formatting rules, providing a stable reference that doesn't fragment when rows are inserted.
- π οΈ This technique is not volatile and can also be adapted to reference cells below, left, or right, or even wrap around to the last row if used in the first row.
Handling Hidden Rows and Filtering
- π When filtering data that includes hidden rows followed by unhidden rows for the same category, duplicates can appear (e.g., 'Sales' repeating).
- π Using a formula with SUBTOTAL and OFFSET can resolve this issue, ensuring that categories do not repeat when filtered.
Knowledge graph16 entities Β· 9 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
16 entities
Chapters3 moments
Key Moments
Transcript25 segments
Full Transcript
Topics11 themes
Whatβs Discussed
Excel Conditional FormattingFragmenting RulesDuplicating RulesRelative ReferencesOffset FunctionVolatile FunctionsDefined NamesCell Above ReferenceSubtotal FunctionFiltering DataHidden Rows
Smart Objects16 Β· 9 links
ConceptsΒ· 7
ProductsΒ· 5
MediasΒ· 2
PersonΒ· 1
CompanyΒ· 1