Find Duplicate only if date is within X days of original

arcaidius

Board Regular
Joined
Dec 4, 2018
Messages
97
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]B
[/TD]
[TD]F
[/TD]
[TD]J
[/TD]
[/TR]
[TR]
[TD]ID#
[/TD]
[TD]Date
[/TD]
[TD]Duplicate?
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Iwas wondering if you could Help me out with a formula? I need Column “J” tosearch for duplicate values in column “B” and say “Yes” only if the date incolumn “F” is within 180 days (6 months) of the original value.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:


Book1
BFJ
1ID#DateDuplicate?
211/1/2019Yes
322/1/2019
433/1/2019
511/2/2019Yes
622/1/2018
7311/1/2019
Sheet6
Cell Formulas
RangeFormula
J2=IF(COUNTIFS(B:B,B2,F:F,">="&F2-180,F:F,"<="&F2+180)>1,"Yes","")
 
Upvote 0
Solution
Thanks Eric W. This worked, I swear I had it at the tip of my fingers.


=IF(COUNTIFS(B:B,B2,F:F,">="&F2-180,F:F,"<="&F2+180)>1,"Yes","")
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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