Highlighting near duplicates?

kinger15

New Member
Joined
Feb 18, 2022
Messages
3
Platform
  1. Windows
Hello, I am trying to find out how to identify near duplicates in a large excel sheet based on a monetary value. For example, If i have 2 rows I want to be able to highlight these as potential duplicates if the number is within certain criteria. Is there a formula that I can create to say:

If the same date, order#, invoice#, and within $5.00?

I want to be able to highlight this so I can easily look through these manually.

Thank you for your help.

DATEORDER#INVOICE#AMOUNT
2022-02-18123456755667788100.00
2022-02-1812345675566778895.00
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCD
1DATEORDER#INVOICE#AMOUNT
218/02/2022123456755667788100
318/02/202212345675566778895
417/02/202212345675566778890
5
6
7
8
9
10
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D10Expression=COUNTIFS($A$2:$A$10,$A2,$B$2:$B$10,$B2,$C$2:$C$10,"<="&$C2+5,$C$2:$C$10,">="&$C2-5)>1textNO
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCD
1DATEORDER#INVOICE#AMOUNT
218/02/2022123456755667788100
318/02/202212345675566778895
417/02/202212345675566778890
5
6
7
8
9
10
Data
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D10Expression=COUNTIFS($A$2:$A$10,$A2,$B$2:$B$10,$B2,$C$2:$C$10,"<="&$C2+5,$C$2:$C$10,">="&$C2-5)>1textNO
Thanks I will try that. I am just a beginner with excel. How would i apply this formula to a sheet with thousands of rows?
 
Upvote 0
Just select the rows you want the conditional to work on & change the ranges in the formula to suit.
So if you selected A2:D1000 you would use
Excel Formula:
=COUNTIFS($A$2:$A$1000,$A2,$B$2:$B$1000,$B2,$C$2:$C$1000,"<="&$C2+5,$C$2:$C$10,">="&$C2-5)>1
 
Upvote 0
Just select the rows you want the conditional to work on & change the ranges in the formula to suit.
So if you selected A2:D1000 you would use
Excel Formula:
=COUNTIFS($A$2:$A$1000,$A2,$B$2:$B$1000,$B2,$C$2:$C$1000,"<="&$C2+5,$C$2:$C$10,">="&$C2-5)>1
I really appreciate this! Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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