How to extract Repeated data from specific Time duration

faraz502

Board Regular
Joined
Mar 26, 2014
Messages
98
Office Version
  1. 2016
Platform
  1. Windows
Dear Sir,

Sorry for disturb again,

I need to extract data from my automatic location-wise data entry sheet, in this sheet thousand of rows with two times one is the Occurring and one is the Clearing time.

but from some days datasheet received with fake entries and hard to find fake entries because of a lot of entries.

Below mention one location entry example;
Occurring on 9/16/2021 12:00:00 AM
Cleared on 9/16/2021 8:37:26 AM
But the Next entry again comes from12am to 8 am.

first three rows are genuine others are fake
LocationOccurringClearing
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 08:37:26
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 08:37:25
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 08:37:24
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:18:30
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:56
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:53
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:52
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:51
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:50
CMN0609__S_warid_MDCM60392021-09-16 00:00:002021-09-16 06:15:49
 

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
2,681
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I think this is better for 4 hour limitation also:
Book1.xlsx
ABCDE
1LocationOccurringClearingResult
2CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 8:37OK
3CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 8:37OK
4CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 8:37OK
5CMN0609__S_warid_MDCM60399/16/21 3:009/16/21 6:18FAKE
6CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
7CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
8CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
9CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
10CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
11CMN0609__S_warid_MDCM60399/16/21 0:009/16/21 6:15FAKE
12
13
Sheet1
Cell Formulas
RangeFormula
D2:D11D2=IF(SUMPRODUCT(--($A$2:A2=A2)*(--(ABS($B$2:B2-MIN(INDEX($B$2:B2,MATCH(B2 + (5/6),$B$2:B2,1))))<(1/6)))) >3,"FAKE","OK")
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,148,022
Messages
5,744,368
Members
423,865
Latest member
SimSum

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
Top