Conditional Formatting has some amazing built-in features, for example it lets you highlight unique values in a list without entering a CF formula. If you don´t know how to do this, follow these instructions:
- Select your list
- Go to "Home" tab on the ribbon.
- Click Conditional formatting button
- Hover over "Highlight Cells Rules"
- Click "Duplicate values..."
- Change to "Unique"
- Click OK
However, if you then decide to filter the list, the CF rule still highlights unique values as if it is not filtered. The following CF formula highlights unique values in a filtered list.
=SUM(COUNTIF(INDIRECT("Table1[@Description]"), IF(SUBTOTAL(3, OFFSET(INDIRECT("Table1[Description]"), MATCH(ROW(INDIRECT("Table1[Description]")), ROW(INDIRECT("Table1[Description]")))-1, 0, 1)), INDIRECT("Table1[Description]"), "")))=1
You can see in the animated gif below that in the entire list Matsumura Fishworks and QWERTY logistics have duplicate values but in the filtered list Matsumura Fishworks is a unique value and therefor highlighted. That would not be the case if you had used the built-in CF feature.
No comments:
Post a Comment