How to extract Repeated data from specific Time duration

faraz502

Board Regular
Joined
Mar 26, 2014
Messages
127
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
 
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")
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,962
Latest member
Fenes

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