Conditional format checking duplicate values across multiple columns

Milos

Board Regular
Joined
Aug 28, 2016
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can somebody please lend their knowledge to help me fix a small issue. I have two columns of GPS coordinates values. I need a conditional format to check a couple of thousand numbers to know whether their are any duplicate coordinates. For the values to be duplicates they have to be duplicated across both columns in the same two rows (i.e. the numbers can be the same across one column but not across both columns).

I wanted to avoid doing duplicate values for each individual column as there are a lot of values that are duplicate in one column but not duplicate in both columns.

So far all I came up with was this non working conditional format rule: =AND(A1=A:A,B1=B:B) but I am not smart enough to fix the problem!

Here is an example of what I need in a couple of tables:

CurrentlyWhat I need
ABAB
1880000657414118800006574141
1880000657414118800006574141
1880000688000018800006880000
2678959688000026789596880000
2678959688000026789596880000
2678959789456326789597894563
2678959897654426789598976544
2678959987456126789599874561

<tbody>
</tbody>
















Thanks in advance

Milos
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Re: Conditonal format checking duplicate values across multiple columns

Select columns A:B. Click Conditional Formatting > New Rule > Use a formula > and enter:

=COUNTIFS($A:$A,$A1,$B:$B,$B1)>1

click Format... and choose a red font color.
 
Upvote 0
Re: Conditonal format checking duplicate values across multiple columns

Thanks Eric!
 
Upvote 0
Re: Conditonal format checking duplicate values across multiple columns

Glad to help! :cool:
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top