Work shift allocation

awagdarikar

Board Regular
Joined
Jun 20, 2008
Messages
115
Based on the Access Card Swipe data of a employee I have to find out whether he is on time in First / General /Second shift. The Swipe Time data for each employee is in One Column and the Work Shift timings are First= 6:00:00 AM, General= 9:00:00 AM, Second shift= 3:00:00 PM. I do not have shift allocation details of each employee and I want to find out Result, which shift the employee is in (Early / Shift (On Shift time) / Late) based on following 8 conditions
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
1. If Swipe Time is from 12:15:59 AM to 5:59:59 AM, Result should be “Early in First Shift”<o:p></o:p>
2. If Swipe Time is from 6:00:00 AM to 6:30:00 AM, Result should be “First Shift”<o:p></o:p>
3. If Swipe Time is from 6:30:01 AM to 7:59:59 AM, Result should be “Late in First Shift”<o:p></o:p>
4. If Swipe Time is from 8:00:00 AM to 8:29:59 AM, Result should be “Early in General Shift”<o:p></o:p>
5. If Swipe Time is from 8:30:00 AM to 12:30:00 PM, Result should be “Late in General Shift”<o:p></o:p>
6. If Swipe Time is from 12:30:01 PM to 2:59:59 PM, Result should be “Early in Second Shift”<o:p></o:p>
7. If Swipe Time is from 3:00:00 PM to 3:30:00 PM, Result should be “Second Shift”<o:p></o:p>
8. If Swipe Time is from 3:30:01 PM to 8:30:00 PM, Result should be “Late in Second Shift”<o:p></o:p>
I have been trying very hard to create a Result Column based on above 8 conditions but not able to do so,

Whooooosh :confused: Such a long description of a problem,<o:p></o:p>

Please help,<o:p></o:p>
Ani
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,029
How is it a long description if that's what it takes to completely describe the problem? {grin} And, yes, your post did a good job of describing what you want.

You have two choices:
1) Create a series of nested IF statements.
2) Put the first time (12:15:59, 6:00:00, etc.) in one column. In the adjacent column put in the corresponding result. Now, use VLOOKUP to look up the table.

If you need any more help please share what you've tried and how it doesn't meet the desired result.
 
Upvote 0

Forum statistics

Threads
1,191,516
Messages
5,987,026
Members
440,074
Latest member
Emmanuelian

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