Time Completed

H

hawaiiham2000

I am trying to figure out a formula to use to show if a project is completed
on time. If the due time is 11pm and the project is completed at 9pm it
could show that it was on time by 2 hours; and if the project is not
completed until 1am, how could I show that it was 2 hours late? Any help
would be appreciated. Thanks.
 
R

Ron@Buy

Try this:
Enter start time in A1 and completed time in B1 (enter hours and minutes
seperated by :)
In C1 enter formula:
=IF(B1>A1,TEXT(B1-A1,"h:mm")&" late",TEXT(A1-B1,"h:mm")&" early")
Hope this helps
 
H

hawaiiham2000

We are getting warmer... but if the due time is 11pm and it is completed at 1
am, we want that to be 2 hrs late, not 22 hrs early. Do we have to include a
date?
 
R

Ron@Buy

But why isn't it early? How does excel know you want it to be 2hrs late? A
simple solution would be to enter the date and time: Format the time input
cells to dd/mm/yy hh:mm. But be aware the formula will only calculate up to
23 hours 59 minutes.
 
H

hawaiiham2000

Thanks so much! It shouldn't be later than 23 hrs. 59 min. so we're on the
right track. How could we convert it so it shows only minutes and have late
in negative minutes so that they can be added and averaged? Also, I
formatted the cells in the
format you recommended (dd/mm/yy hh:mm) but what would be an easy way to
enter the data?

Thanks for your patience!
 
D

David Biddulph

If you don't include a date, how would you want to decide whether it's 2
hours late or 22 hours early? Do you want to say that it can't be 12 hours
or more early or late?
 
H

hawaiiham2000

You're right. I think a date has to be included.

This is the scenario:

The deadline is 11 p.m. each night. We want to figure the out the total
minutes late or early for each project and eventually then be able to Sum
those and come up with an average.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top