0

We have the following data

Col. B Col. C
3 noun spring
4 ver. spring
5 ver. spring

We need rows 4 and 5 (both columns B and C) to turn red because they are duplicates

We have tried

=(COUNTIF(B$3:B377,B3)>1)*(COUNTIF(C$3:C377,C3)>1)

=AND((COUNTIF(B$3:B377,B3)>1),(COUNTIF(C$3:C377,C3)>1))

=COUNTIF(B$3:B377&C$3:C377,B3&C3)>1

but cannot make it work.

Using =COUNTIFS(B$3:B377,B3,C$3:C377,C3)>1 works for just column B

Swen
  • 577
  • 2
  • 10

3 Answers3

0

Use the correct mix of absolute and relative references in your conditional formatting custom formula rule:

=countifs($B$3:$B$377, $B3, $C$3:$C$377, $C3) > 1

The question does not specify whether columns B and C should be considered tuples or if columns B and C should be considered separately. To handle the latter case, use countif(), like this:

=(countif($B$3:$B$377, $B3) > 1) * (countif($C$3:$C$377, $C3) > 1)

doubleunary
  • 13,842
  • 3
  • 18
  • 51
0

I use a countif like this, this is only taking consideration column B:

=countif($B$2:$B$377, $B2)>1

And it look like this:

enter image description here

To make it work with all the columns, I simply added the columns as individual ranges. Like this:

enter image description here

Update:

For both columns, you can use:

=AND(countif($B$2:$B$377, $B2)>1,countif($C$2:$C$377, $C2)>1)
Giselle Valladares
  • 2,075
  • 1
  • 4
  • 13
0

Sorry but none of suggested answers or other links worked.

But finally found correct solution.

=COUNTIFS(B$3:$B$377,$B3,C$3:$C$377,$C3)>1

This is the only solution.

Swen
  • 577
  • 2
  • 10