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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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