Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i have employees sign-in and sign-out using military time. I want to be able
to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With the Sign-in time in B13, Sign-out time in B14 and the Test time in B15
try: =IF(OR(B15=B13,B15<=B14),"Yes","No") -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "kmariab" wrote in message ... i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I see a problem already as both instances should be Yes. Also you would
need the date as part of the sheet. kmariab wrote: i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(OR(AND($A$1<=$A$2,$A3=$A$1,$A$2=$A3),AND($A$ 1=$A$2,OR($A3=$A$1,$A1=$A$4))),"Yes","No")
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "kmariab" wrote in message ... i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i have employees sign-in and sign-out using military time. I want to
be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? With the Sign-in time in B13, Sign-out time in B14 and the Test time in B15 ... Maybe something like this would work for you: =IF(B14<B13,IF(OR(B15=B13,B15<=B14),"Yes","No"), IF(AND(B15B13,B15<B14),"Yes","No")) Of course, this doesn't work if somebody stays for more than 24 hours. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sorry, I had meant to type in: was the employee present at 15:00?, and the
answer to be NO. "Bob I" wrote: I see a problem already as both instances should be Yes. Also you would need the date as part of the sheet. kmariab wrote: i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for your help. I tried the formula, but it doesn't seem to work for
overnight shifts. "MyVeryOwnSelf" wrote: i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? With the Sign-in time in B13, Sign-out time in B14 and the Test time in B15 ... Maybe something like this would work for you: =IF(B14<B13,IF(OR(B15=B13,B15<=B14),"Yes","No"), IF(AND(B15B13,B15<B14),"Yes","No")) Of course, this doesn't work if somebody stays for more than 24 hours. |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Does mine?
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "kmariab" wrote in message ... Thanks for your help. I tried the formula, but it doesn't seem to work for overnight shifts. "MyVeryOwnSelf" wrote: i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? With the Sign-in time in B13, Sign-out time in B14 and the Test time in B15 ... Maybe something like this would work for you: =IF(B14<B13,IF(OR(B15=B13,B15<=B14),"Yes","No"), IF(AND(B15B13,B15<B14),"Yes","No")) Of course, this doesn't work if somebody stays for more than 24 hours. |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I believe you will need to supply dates for all times involved other
wise you have a problem covering the 2 day shifts. kmariab wrote: Sorry, I had meant to type in: was the employee present at 15:00?, and the answer to be NO. "Bob I" wrote: I see a problem already as both instances should be Yes. Also you would need the date as part of the sheet. kmariab wrote: i have employees sign-in and sign-out using military time. I want to be able to calculate if each employee was present at a certain hour. For example: Sign-in: 8:00 Sign-out: 14:00 Was employee present at 9:00? Yes Was employee present at 13:00? No My problem arises when employee works overnight. For example: Sign-in: 18:00 Sign-out: 3:00 Is there a formula that recognizes whether employee was present between those times? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Formula to count number of time stamps within a range in a column having dates formatted as "custom" | Excel Discussion (Misc queries) | |||
cannot use "Create List" and "Share Workbook" same time | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |