Google Answers Logo
View Question
 
Q: MICROSOFT EXCEL SPREADSHEET PROBLEM ( No Answer,   4 Comments )
Question  
Subject: MICROSOFT EXCEL SPREADSHEET PROBLEM
Category: Computers > Software
Asked by: haggisman-ga
List Price: $15.00
Posted: 27 Jul 2006 13:56 PDT
Expires: 26 Aug 2006 13:56 PDT
Question ID: 750175
MS EXCEL question here for the smartpants out there! =D  

I need to work out how to find the total hours worked from 2 times
that I enter onto an Excel spreadsheet. BUT, the hours are in 24hr
format AND 0815hrs is 08.25, 1930hrs is 19.50, and 2345hrs is
23.75(!!!) I know it seems mad, but that's how it has to be done.

Anyway, the problem is that I can work out that someone worked 3 hours
between 1700hrs and 2000hrs, but if they work past midnight I come
unstuck!!

Any suggestions would be greatly appreciated!  Many thanks... =D
Answer  
There is no answer at this time.

Comments  
Subject: Re: MICROSOFT EXCEL SPREADSHEET PROBLEM
From: anhebetude-ga on 27 Jul 2006 14:10 PDT
 
Stick time in in column A and time out in column B.  In column c enter:
=IF(B1>A1,B1-A1,B1-A1+24.00).  Copy and paste down column C.

-anhebetude
Subject: Re: MICROSOFT EXCEL SPREADSHEET PROBLEM
From: haggisman-ga on 01 Aug 2006 01:08 PDT
 
Anhebetude - You're a star!!  That works perfectly!! =)

Now I have a new problem.  In the column receiving the formula, if no
time is entered (say for Saturday and Sunday) the hours worked shows
24.00.  Is there something I can add to this formula to stop this?

Many thanks again! =)

(PS Do you get the prize now?) =)
Subject: Re: MICROSOFT EXCEL SPREADSHEET PROBLEM
From: conormul-ga on 01 Aug 2006 01:46 PDT
 
Use the if or statement
=IF(OR(A7="",B7=""),0,IF(B7>A7,B7-A7,B7-A7+24))
Subject: Re: MICROSOFT EXCEL SPREADSHEET PROBLEM
From: haggisman-ga on 01 Aug 2006 04:31 PDT
 
Conormul - I bow to your greatness!!  Many, many thanks for that
brilliant formula!! =)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy