Staffed Time, Break Time, Expected time- formula puzzle

friarpop

New Member
Joined
Oct 19, 2010
Messages
17
Hello all, thank you for your curiosity and help. I am a beginner at excel and need help creating a formula at work. Here is the what im up against:

Column B (staffed Time), Format 8 hours = 8:00:00AM=formated 8:00:00

Column E (break time), formated(15 or 30 minutes depending on shift)=12:30:00am= 0:30:00

Column M (expected time) (time on phones if perfect +feeding unused breaktime back into expected time (eg 8 hours shift - 30 break = 7.5hours = 7:30:00am = 7:30:00 or 8:00:00-0:30:00. ( if only used 10 minutes of break of 30 total put 20 minutes back into expected time so that 8:00-0:30:00+0:20:00 = 7:50:00. & also if possible add in any overages from staffed time, If they log in 5 minutes early make that staffed time 7:35:00 assuming 30minutes of break, but no underages if they are late tough. Tough huh? I was using cells to reference different employees shifts eg 8 hours & 30 minute breaks or 4 hours & 15 minute breaks. I have different books for each employee & column a is just dates of each day of the month. Help me if you can. Ask me questions. Would like to know by tomorrow if possible.

Just running windows xp & excel 2003 sp3. I came up with a partial formula =IF(E3>=$M$40, $M$41, ($M$41)+($M$40-E3)) but it didnt work with the staffed time overages & also filled in days that were blank as if they worked 8 hours. I just deleted them but if we can get it to not fill them great.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
kywiqq9d8yleal3y31g.jpg
 
Upvote 0
Hi,

I think you are tryong to get to the following:

Replace your formula =IF(E3>=$M$40, $M$41, ($M$41)+($M$40-E3))

With =IF(E3>=$M$40,$M$41,SUM($M$41+$M$40-E3))

I am not quite sure what you are after though.....

HTH
Ian.
 
Upvote 0
Thanks Buddy your are on the right track, that was amazingly fast too! Bottoms up to you! It worked good enough for me to get by at work, would it be possible to have it take any additional staffed time over their expected shift into the mix also & also have it not auto fill any days they dont work? Say if they worked 8:05 instead of 8 hours make it say 7:35 instead of 7:30. & also take into account the length of their shift to allot the appriate break time eg. 8 hours = 30 mins & 4-8 = 15 min, less than 4 = 0 min, it might need alternate reference cells. its all just beyond my brain capacity.
 
Upvote 0
To return a blank or a value of your choice replace:

=IF(E3>=$M$40,$M$41,SUM($M$41+$M$40-E3))

With the following in cell M3 and drag it down to copy it

=IF(B3="","",IF(E3>=$M$40,$M$41,SUM($M$41+$M$40-E3)))

To enter your choice of text enter something in the 2nd set of "" marks as below example:

=IF(B3="","Day Off",IF(E3>=$M$40,$M$41,SUM($M$41+$M$40-E3)))

I don't really understand your sheet as to where the start times are actually recorded - can you let me know the column and I should be able to do it. Unfortunately it will be tomorrow when I get around to doing it as I need to go to bed now as it is 01:46 over here.

Feel free to post something further and I will pick it up in the morning for you if no-one else jumps in ;)

Cheers,
Ian.
 
Upvote 0
Your the man Ian, it worked. I appreciate your wisdom and most importantly your time. The staffed time in columb B is how much they worked in a day. We dont record start times we just record how long they were logged in.
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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