Advanced If Statement using Time
I work for a distribution house, each day drivers make picks up from our depot, I need to log the frequency of the drivers pick up, an efficient driver should make the least amount of picks as possible.
Drivers have numbers,
when a driver picks up a delivery a task number is raised, the time and date of the task is logged, each pick falls within a certain time group.
A driver can raise different task numbers at the same visit or use the same task number depending on the drop off
address; therefore I cannot use the task number to count the number of visits.
(Example below)
Driver Number
Driver Name
Task Number
Date
Time
Group
YOU123
Young
Q67893
12/09/2012
08:35
08:30-08:59
YOU123
Young
U89744
09/09/2012
14:23
14:00-14:29
YOU123
Young
U89744
09/09/2012
14:24
14:00-14:29
YOU123
Young
Y24639
27/09/2012
14:07
14:00-14:29
CUN345
Cunningham
Y53683
04/09/2012
15:17
15:00-15:29
CUN345
Cunningham
Y53683
04/09/2012
15:20
15:00-15:29
MAD567
Maddox
Q67292
23/09/2012
13:23
13:30-13:59
MAD567
Maddox
G78309
23/09/2012
12:23
12:00-12:29
SMI678
Smith
I37393
02/09/2012
09:12
09:00-09:29
SMI678
Smith
O9372
12/09/2012
11:23
11:00-11:29
SMI678
Smith
O9372
12/09/2012
11:28
11:00-11:29
SMI678
Smith
E24157
27/09/2012
16:45
16:30-16:59
JOH567
Johnston
B74832
27/09/2012
16:47
16:30-16:59
JOH567
Johnston
L39847
11/09/2012
12:16
12:00-12:29
JOH567
Johnston
D67833
21/09/2012
13:12
13:30-13:59
JOH567
Johnston
T73920
15/09/2012
13:15
13:30-13:59
JOH567
Johnston
L38201
31/09/2012
09:12
09:00-09:29
COX556
Cox
N30192
26/09/2012
12:45
12:30-12:59
COX556
Cox
N30192
26/09/2012
12:47
12:30-12:59
COX556
Cox
H27192
12/09/2012
09:12
09:00-09:29
FOL567
Foley
D87292
19/09/2012
08:23
08:00-08:29
FOL567
Foley
K29329
19/09/2012
14:12
14:00-14:29
FOL567
Foley
L28392
24/09/2012
13:12
13:30-13:59
FOL567
Foley
R28721
21/09/2012
15:13
15:00-15:29
KIN456
Kingston
J02820
11/09/2012
13:12
13:30-13:59
KIN456
Kingston
J02820
11/09/2012
13:12
13:30-13:59
KIN456
Kingston
J02820
11/09/2012
13:14
13:30-13:59
KIN456
Kingston
G82720
24/09/2012
11:23
11:00-11:29
KIN456
Kingston
L29732
28/09/2012
11:24
11:00-11:29
KIN456
Kingston
L20290
06/09/2012
16:07
16:00-16:29
KIN456
Kingston
L20290
06/09/2012
16:12
16:00-16:29
KIN456
Kingston
R10292
30/09/2012
12:23
12:00-12:29
KIN456
Kingston
D38392
27/09/2012
16:01
16:00-16:29
AND568
Anderson
J38303
18/09/2012
08:12
08:00-08:29
AND568
Anderson
J38303
18/09/2012
08:13
08:00-08:29
AND568
Anderson
G27209
13/09/2012
15:00
15:00-15:29
AND568
Anderson
M0282
07/09/2012
12:33
12:30-12:59
AND568
Anderson
S26918
02/09/2012
11:23
11:00-11:29
The end product I need is the below table:
Driver Number Driver Names Number of Visits (Month)
???? ???? 3
The number of visits can be attained two ways:
1) Quick way – the half an hour time groups equals one visit (on the same day), doesn’t matter how many tasks are raised, if a driver has one task
in any time group on a day it counts as one visit.
If a driver raises another task in another time group later on that day, it counts as another visit.
2) Hard way – task time, if an task is raised 15 mins after the same customers last task it counts as two different task, regardless of task numbers.
If possible I would like to stay away from macros but if it’s the only way I will give it a go, I would be interested in 2) above since it will be more accurate, I believe a IF statement is the best way to do this but all
the ones I've tried haven't work...HELP.
Any questions let me know.
Thanks Jay.
Keys to the Problem Advanced If Statement using Time
Download SmartPCFixer to Fix It (Free)
To install drivers and other optional updates
- To install optional updates, you need to review and then select them from the list of updates that Windows finds for your computer. Optional updates are not installed automatically.
- Open Windows Update by clicking the Start button Picture of the Start button, clicking All Programs, and then clicking Windows Update.
- In the left pane, click Check for updates, and then wait while Windows looks for the latest updates for your computer.
- If any updates are found, click View available updates.
- Select the optional updates that you want, and then click Install. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Recommended Method to Repair the Problem: Advanced If Statement using Time:
How to Fix Advanced If Statement using Time with SmartPCFixer?
1. Click the button to download SmartPCFixer . Install it on your computer. Open it, and it will scan your system. The junk files will be shown in the scan result.
2. After the scan is finished, you can see the errors and problems which need to be repaired.
3. The Repair part is done, the speed of your computer will be much higher than before and the errors have been fixed. You can also use other functions in SmartPCFixer. Like dll downloading, junk file cleaning and print spooler error repair.
Related: How to Fix - 64g ssd with a 500g regular drive?,Allow Unhide Rows in Protected Workbook [Solved],[Solved] Get in Excel 2007 data from Access 2007 out of self-built Queries,[Solution] How can I temporarily disable 'service manager' to install Adobe flashplayer?,[Anwsered] When I try to watch a flash video, I am told occasionally that I don't have Adobe Flash.,Solution to Error: Black screen during boot sequence,[Solved] Can't restore Windows 7 64-bit from external hard drive,How to Fix - IE 11 Enhance Protect Mode reset issue with add-on's?,Solution to Error: Internet Explorer 9 update/install error - Error Code 80092004,Upgrading to IE 8 causes cookies to get deleted when starting IE [Anwsered],Solution to Problem: All programs try to start from windows component
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,How to Fix Error - Getting an error "not connected to the internet" while trying to install Samsung Kies?
,How to Fix - Internet Explorer shuts down and reopens tab when attaching to email or uploading files.?
,Fast Solution to Problem: Sending Error Message
,[Anwsered] Thinkpad 8611 Boot,How to Resolve - Svchost Helper?,Fast Solution to Problem: L30 101 Driver Windows 7,Troubleshooter of Error: Io Device,How to Fix Error - Dell Laptop Code 39?
Read More: Tech Support: Adding new data for a spreadsheet to the master spreadsheet.,Fast Solution to Problem: Adobe is requesting to close Internet Explorer before installing,How to Fix Problem - Adding TV (wirelessly) to network?,[Anwsered] adware :win32\/ShopperReports.... BrowserModifier: win32\/Zwangi,Adobe Flash-how to install [Solved],a file called mDNSResponse.exe. is causing bonjour not to operate properly,what should I do?,A QUESTION USING THE "IF'S" Formula.,A continuos flashing window with which title is C:Windows\System32\cmd.exe, and has the following message: The syntax of the command is incorrect.,Acrobat compatibility issue and you tube problems____,ActiveX on IE 9 not loaded
No comments:
Post a Comment