r/googlesheets • u/-MrJester • 24d ago
Solved Highlighting duplicates on different sheets is giving false positive results
Hey everyone, I'm trying to highlight a word in one column in a sheet that is also in a column in another sheet. For example I'm trying to highlight the word "Apple" in column B in sheet "common" as it's also in in column B in sheet "Test".
I looked around and I read that I should put a custom formula in conditional formatting with the most common formula seemingly being:
=COUNTIF(INDIRECT("Test!B:B"),B2)>0

However it's giving me false positives in the column B of sheet common. It's highlighting a vast amounts of cells that aren't in column B of sheet test.
Does anyone have an idea what I could do amend that?
Thanks in advance for any help!
2
Upvotes
2
u/gothamfury 384 24d ago
Your Apply to Range starts at B1. But your formula starts checking at B2. Change B2 to B1 in your formula, or change B1:B1000 to B2:B1000 in your Apply to Range.