Find Duplicate only if date is within X days of original

arcaidius

Board Regular
Joined
Dec 4, 2018
Messages
97
B
F
J
ID#
Date
Duplicate?

<tbody>
</tbody>
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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,215,332
Messages
6,124,314
Members
449,153
Latest member
JazzSingerNL

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