A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Use conditional formatting with a COUNTIF-based rule that checks each ingredient against the full list of ingredients on the Master sheet, and apply that rule to the spilled range on the Lookup sheet.
Assume on the Lookup sheet the spilled ingredients are in column C (adjust as needed):
- Select the ingredient cells in the spilled range on the Lookup sheet (for example
C4:C100). - On the Home tab, select Conditional Formatting > New Rule.
- Choose Use a formula to determine which cells to format.
- Enter a formula that tests whether the ingredient appears only once in the entire Master list. For example:
=COUNTIF(Master!$C:$C, C4)=1-
Master!$C:$Cis the full ingredient column on the Master sheet. -
C4is the first ingredient cell in the Lookup spilled range.
-
- Select Format, choose the fill/font format to highlight unique ingredients, and select OK.
- Confirm with OK again.
Every ingredient that exists only once in Master!$C:$C (i.e., unique to that SKU) will now be highlighted in the Lookup sheet’s spilled table.
If the ingredients are in a different column or multiple columns, repeat the rule for each ingredient column, adjusting the cell reference (C4) and the Master ingredient column as needed.
References: