Macro Help_Urgent

Shantanu_4612

New Member
Joined
Oct 3, 2016
Messages
27
Hi,

Need your help with the below sample of data, I am in a great mess, as my employees are fooling me,
My employee, who I have appointed to do all the data work, is saying this is not possible to do.

Please help me with it, I am running in huge losses.

Summary.: Data is Entry and exit time of a particular person in my office.

Challenge.: Data is not sorted in any manner, it gets updated as people swipe in n swipe out.

For 1 month I have a min data of 10 Lakh, and I have to sort the data of last one year.

Sample.:

DateTimeDirectionReasonConditionTerminalDescription
Card NumberEmployee NumberFirst NameLast Name
2-Oct1:59:46EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
4971481055792PUJASHIRSAT
2-Oct2:05:30EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
684488850390AKASHAGRAWAL
2-Oct2:07:42EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 1210330241036210DEEPIKABATHIJA
2-Oct2:08:29EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 1210332441036363MUKESHNAIR
2-Oct2:08:43EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 121019824868977MANISHBANSI
2-Oct2:10:53EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 124860171053214ABHIJEETNAWGEKAR
2-Oct2:12:19ExitGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 124860171053214ABHIJEETNAWGEKAR
2-Oct2:13:12EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 1210330091036195NARENHAKHU
2-Oct2:13:44EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 125548731063570RAVIDHUSIA
2-Oct2:15:12EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 122689061270117PRASADKARMALKAR
2-Oct2:17:38EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 123572041267950POOJATHADANI
2-Oct2:19:30EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 125697271065083AJITHVASU
2-Oct2:19:50EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12611300773828PRITIKADAM
2-Oct2:23:08EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
2636051269069AMOLNANDURKAR
2-Oct2:23:24EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
692623857676NILESHPUSATKAR
2-Oct2:23:51EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
5318761062353HORMUZDSUKHIA
2-Oct2:23:54EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
2650581269341AMITKATE
2-Oct2:23:56EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
2549361266109AMEYABEDEKAR
2-Oct2:23:57EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 12
1709391247915RAHULPARDESHI
2-Oct2:23:58EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 122643731269212EDWINJOSEPH
2-Oct2:25:25EntryGrantedGRANTED3F_EN4BS3 3F DOOR NO 9 TS 124860171053214ABHIJEETNAWGEKAR

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Out Put,

I want two output files,

1, in another Sheet, In this file, I just want, what was the time that particular person entered office for the first time on that date, and when did he leave office premises fro last time, may be to go home.

DateEmployee NumberFirst NameLast NameTeam LeaderDelivery ManagerProcess
First Entry TimeLast Exit TimeTotal In Shift Time
BlankBlankBlank

<colgroup><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

2, in next sheet, this file has 2 addons,

a.) Talegating.: Tale gating, is when person swiped his card to go out, but did not swipe in to come in, or visa versa.

If this thing has occurred I just want a entry of yes or no.

Eg.: at 1:30 for a person its showing Exit
n in next entry again at 2:30 its showing exit, there is no entry of Entry from 1:30 to 2:30.

b.)
Total Exit to Entry Diffrence

<colgroup><col width="180"></colgroup><tbody>
</tbody>

Time difference between Exit and Entry, for that particular day, which would give me an understanding, for how long was the person out.

DateTimeDirection
ReasonConditionTerminalDescriptionCard NumberEmployee Number
First NameLast NameTeam LeaderDelivery ManagerProcessTaleGating StatusTotal Exit to Entry Diffrence


BlankBlankBlank

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Can you please also explain me the logic that you have used to find In time, out time and Missing swipes, just for my learning
 
Upvote 0

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.
I have a spreadsheet laid out as in post 7, and the formulas give the results as in post 7. If your data is in different rows or columns you need to adjust the formulas. NOTE THAT I HAVE DELETED CERTAIN COLUMNS FOR CLARITY - THIS IS PROBABLY WHY
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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