Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BFiedler
 
Posts: n/a
Default Excel Time Manipulation


I am building a spreadsheet with an employees start time, end time and
lunch start and end times. I would like to take that information and
add up how many employees are working during a specific half hour time
block through out the day on any given day during the week.

Example:

Name Monday Start Lunch Start Lunch End Monday End Tuesday
Start...
Last, First 7:00 9:00 10:00 4:00
Last, First 8:00 11:00 12:00 5:00
Last, First 16:00 20:00 21:00 00:00


Then for each half hour on monday I would like to know how many
employees are working.

6:30 7:00 7:30 8:00 8:30 9:00 9:30
0 1 1 2 2
2 2 etc.

Here is the formula that I came up
with:=IF(AND($B$3<"",$B$3<=R$2,$E$3R$2,NOT(AND($ C$3<=R$2,$D$3R$2))),1,
0)

B3 Start Time
E3 End Time
C3 Lunch Start Time
D3 Lunch End Time
R2 Half Hour time block (6:30)

This formula works for day 1st and 2nd shift people..but if their start
time is at 21:00 and their end time is 07:00 it does not work....(becaue
of how the greater than and less than signs are set up)

Is there a better way to do this?


+-------------------------------------------------------------------+
|Filename: Excel Sheet.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3824 |
+-------------------------------------------------------------------+

--
BFiedler
------------------------------------------------------------------------
BFiedler's Profile: http://www.excelforum.com/member.php...o&userid=27262
View this thread: http://www.excelforum.com/showthread...hreadid=467719

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Excel Date Time to Unix Time jnorton Excel Discussion (Misc queries) 3 May 24th 05 05:49 PM
in excel totaling weekly hours military time mel Excel Worksheet Functions 1 January 17th 05 04:24 PM
how can i add time in excel? Marcus Excel Worksheet Functions 2 January 7th 05 08:17 PM


All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"