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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
1. If I understand correct, you want to delete all rows that Clearing time less than 8:00 AM ? Please answer?
2. Are you want VBA code or formula?

Also please update your account detail to we know what version of Excel & Platform you used to we help based on. don't forgot to save it.
 
Upvote 0
1. If I understand correct, you want to delete all rows that Clearing time less than 8:00 AM ? Please answer?
2. Are you want VBA code or formula?

Also please update your account detail to we know what version of Excel & Platform you used to we help based on. don't forgot to save it.
Thanks for giving your valuable time.

I need a formula in the last column when entry is repeated in previous time so cell show fake against row and if no any repetition gives me ok in the cell.
 
Upvote 0
please answer first question,
Are your rows with Clearing time less than 8:00 AM is FAKE ?
if yes try this at column D:
Book1.xlsx
ABCDE
1LocationOccurringClearing
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 0: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(MOD(C2,1)<(1/3),"FAKE","OK")
 
Upvote 0
please answer first question,
Are your rows with Clearing time less than 8:00 AM is FAKE ?
if yes try this at column D:
Book1.xlsx
ABCDE
1LocationOccurringClearing
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 0: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(MOD(C2,1)<(1/3),"FAKE","OK")

Sir, yes if the time is less than 8:00 Am that are fake.

also sir your given formula only working for the first 10 rows of entries but in my sheet, 10000 Entries and many entries are fake like the given example on that entries given formula is not working.
 
Upvote 0
you can drag formula down and formula work on entire Range, No problem.
Go to last Cell has formula (here D11) and mouse over the right-down side of Cell to change mouse icon to black plus icon
Then Double click, formula dragged automatically until last row.
 
Upvote 0
you can drag formula down and formula work on entire Range, No problem.
Go to last Cell has formula (here D11) and mouse over the right-down side of Cell to change mouse icon to black plus icon
Then Double click, formula dragged automatically until last row.
Sorry sir, but not worked for me please check some examples,

All entries are in a different time but the formula gives me fake status.
1631905231027.png
 
Upvote 0
Please Clarify Exactly what is OK & what is False.
1. Only First example of location & Occurring & Clearing Time
2. Only first 3 case?
3. Or ....
At your first example you told with same location 3 case have OK result & I misunderstanding.
 
Upvote 0
Sir
All locations have a different code which is mentioned in column A (Location) also all locations have 3 sectors it means if activity starts on a location software insert 3 Time entries at the same time so the first three entries are correct and As per our rules if a location activity starts and ends in 4Hrs. (example 16:00 to 20:00 Hrs), so next entry of that location is not possible to come again in these 4Hrs.

But due to some software error since the Last Month, software inserts entries multiple times during the that 4Hrs.

The technical team working on software but we need to find previous fake entries.
 
Upvote 0
Try this new formula and drag it at whole column:
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 0: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(COUNTIFS($A$2:A2,A2,$B$2:B2,B2)>3,"FAKE","OK")
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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