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:

[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]Currently[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]What I need[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1880000[/TD]
[TD]6574141[/TD]
[TD][/TD]
[TD]1880000[/TD]
[TD]6574141[/TD]
[/TR]
[TR]
[TD]1880000[/TD]
[TD]6574141[/TD]
[TD][/TD]
[TD]1880000[/TD]
[TD]6574141[/TD]
[/TR]
[TR]
[TD]1880000[/TD]
[TD]6880000[/TD]
[TD][/TD]
[TD]1880000[/TD]
[TD]6880000[/TD]
[/TR]
[TR]
[TD]2678959[/TD]
[TD]6880000[/TD]
[TD][/TD]
[TD]2678959[/TD]
[TD]6880000[/TD]
[/TR]
[TR]
[TD]2678959[/TD]
[TD]6880000[/TD]
[TD][/TD]
[TD]2678959[/TD]
[TD]6880000[/TD]
[/TR]
[TR]
[TD]2678959[/TD]
[TD]7894563[/TD]
[TD][/TD]
[TD]2678959[/TD]
[TD]7894563[/TD]
[/TR]
[TR]
[TD]2678959[/TD]
[TD]8976544[/TD]
[TD][/TD]
[TD]2678959[/TD]
[TD]8976544[/TD]
[/TR]
[TR]
[TD]2678959[/TD]
[TD]9874561[/TD]
[TD][/TD]
[TD]2678959[/TD]
[TD]9874561[/TD]
[/TR]
</tbody>[/TABLE]
















Thanks in advance

Milos
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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