Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Modified IF formula for military time

Hi,
I posted a question earlier to figure out a formula that tests whether an
employee was present at a certain hour.

My formula so far is:
=IF(OR(AND($a2<=$b2,c$1=$a2,$b2c$1),AND($a2=$b2 ,OR(c$1=$a2,c$1<$b2))),1,0)

The result is:
Time In Time Out Present @hr 5
Present @hr 20
Employee 1 05:55 20:01 Yes
Yes
Employee 2 22:30 07:15 Yes No
Employee 3 06:05 08:01 No No

I need to change the formula so that if Employee 1 is early 5 minutes he is
not included in the previous hour, and if Employee 1 stays 1 minute late, he
is not included in hour 20.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Modified IF formula for military time

Sorry, the margin of error should be 15 minutes. Thanks!

"kmariab" wrote:

Hi,
I posted a question earlier to figure out a formula that tests whether an
employee was present at a certain hour.

My formula so far is:
=IF(OR(AND($a2<=$b2,c$1=$a2,$b2c$1),AND($a2=$b2 ,OR(c$1=$a2,c$1<$b2))),1,0)

The result is:
Time In Time Out Present @hr 5
Present @hr 20
Employee 1 05:55 20:01 Yes
Yes
Employee 2 22:30 07:15 Yes No
Employee 3 06:05 08:01 No No

I need to change the formula so that if Employee 1 is early 5 minutes he is
not included in the previous hour, and if Employee 1 stays 1 minute late, he
is not included in hour 20.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Modified IF formula for military time

What's in cells A2, B2 & C1, firstly?

"kmariab" wrote:

Hi,
I posted a question earlier to figure out a formula that tests whether an
employee was present at a certain hour.

My formula so far is:
=IF(OR(AND($a2<=$b2,c$1=$a2,$b2c$1),AND($a2=$b2 ,OR(c$1=$a2,c$1<$b2))),1,0)

The result is:
Time In Time Out Present @hr 5
Present @hr 20
Employee 1 05:55 20:01 Yes
Yes
Employee 2 22:30 07:15 Yes No
Employee 3 06:05 08:01 No No

I need to change the formula so that if Employee 1 is early 5 minutes he is
not included in the previous hour, and if Employee 1 stays 1 minute late, he
is not included in hour 20.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Modified IF formula for military time

A2= Time In
B2= Time Out
C1=Test Time (Present at hr X)

"Harimau" wrote:

What's in cells A2, B2 & C1, firstly?

"kmariab" wrote:

Hi,
I posted a question earlier to figure out a formula that tests whether an
employee was present at a certain hour.

My formula so far is:
=IF(OR(AND($a2<=$b2,c$1=$a2,$b2c$1),AND($a2=$b2 ,OR(c$1=$a2,c$1<$b2))),1,0)

The result is:
Time In Time Out Present @hr 5
Present @hr 20
Employee 1 05:55 20:01 Yes
Yes
Employee 2 22:30 07:15 Yes No
Employee 3 06:05 08:01 No No

I need to change the formula so that if Employee 1 is early 5 minutes he is
not included in the previous hour, and if Employee 1 stays 1 minute late, he
is not included in hour 20.

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
Converting Standard Time to Military Time in Excel mtvschultz Excel Discussion (Misc queries) 3 May 5th 23 11:42 AM
military time "if" formula kmariab Excel Discussion (Misc queries) 9 March 21st 08 04:57 PM
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
Converting Standard Time into Military Time mtvschultz Excel Discussion (Misc queries) 3 February 15th 08 07:34 PM
Show timesheet time in and out in regular time versus military tim John Excel Worksheet Functions 1 November 11th 05 05:14 AM


All times are GMT +1. The time now is 08:56 PM.

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

About Us

"It's about Microsoft Excel"