LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Is it possible to make Excel assume a time happens after another time?

Hey,

We're trying to create a spreadsheet that will tell us how many people we have working each hour or half hour so we can compare that to our attendance during that time period. The other users are not terribly Excel competent so it's important that on the front end it be very simple to use.

Right now what I'm trying is a page where one puts in the employee and their in and out times. Then beyond that I have a table of times with a conditional that is supposed to determine if the hour in question falls between the in and out times of the employee. It puts a 1 if the employee was working then or a 0 if they were not. Crude diagram below:

Employee | Position | IN | OUT | 16:00 | 17:00 | 18:00 |
John Usher 17:00 19:00 0 1 1

My formula in E2-G2 etc. is =IF(E$1=MEDIAN(E1,$C2:$D2),1,0)

It seems to be working, but there's a serious limitation. We're a movie theatre, so most of our shifts go past midnight. If I put 2:00 in the out time (meaning 2AM the next day), it assumes that it's the same day as the in time when it's technically the next day.

Is there a more elegant way to accomplish what we're doing, or does anyone know a fix for the past midnight problem?

Thanks,
Stevens.judo
 
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
How can I make an Excel time series chart? MA Charts and Charting in Excel 1 January 29th 08 08:00 AM
How can I make Excel recognize a time period Michel Excel Discussion (Misc queries) 3 June 19th 07 05:03 PM
Can I assume everyone has Scripting Run Time (scrrun.dll) on C:\WI Tetsuya Oguma Excel Discussion (Misc queries) 1 March 10th 06 08:36 AM
How can I make excel open every time at 200%? Jim Excel Discussion (Misc queries) 2 August 1st 05 10:54 PM
How do I make a time Stamp in excel? Ben Excel Discussion (Misc queries) 4 April 22nd 05 08:37 PM


All times are GMT +1. The time now is 09:09 AM.

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"