
An additional upside is that the old solution converted the arrays to text which has limitations should you wish to process a large number of entries. For illustration, in your linked workbook, I created an additional sheet named helper to hold the two columns.

Type the formula that you want to use to perform the calculation. Make sure that the cells are contiguous (i.e., theyre all next to each other).
#HIGHLIGHT DUPLICATES IN GOOGLE SHEETS HOW TO#
Click the Format cells if option and select Custom formula is. 1 day ago &0183 &32 Follow these steps to understand how to use an array formula in Google Sheets: Select the range of cells that you want to perform a calculation on. You are including the conditional formatting on every sheet whereas the other solution is targeted at a single sheetĪ modified conditional formatting formula in concert with 2 helper columns located somewhere in your workbook addresses both these needs. Make sure it includes all the columns you want to find duplicates in.
#HIGHLIGHT DUPLICATES IN GOOGLE SHEETS UPDATE#

If your Apply to range is Q1:Q1000, then REGEXMATCH("➡️"& Q1 &"⬅️" if it is Q3:Q1000 then REGEXMATCH("➡️"& Q3 &"⬅️" If these are mismatched, you will have issues where formatting is applied to the wrong row (OFFSET). In the Conditional format rules editor, the beginning of the range in Apply to range must match the cell whose condition is being tested in the Custom formula.To use a " as the delimiter, use CHAR(34) instead. They can match or not: ⬆️⬆️, ZZZ, ✅XYZ, and so forth. Almost any additional opening and closing characters that serve to delimit the strings would achieve the same objective. In my example I used ➡️⬅️ for stylistic purposes.I tightened up the formula by enclosing all strings in additional unique characters to avoid that partial-match problem.

In practice, full email addresses would be unlikely to trip this ( ≠ Kudos to you for finding the error path, an art unto itself. The original answer didn't work for you because in testing, you were using partial email addresses and the REGEXMATCH function was returning unintended string matches ( email1 = email10).
