Computing.Net > Forums > Programming > MIlitary time calculations

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MIlitary time calculations

Reply to Message Icon

Name: PJD
Date: October 24, 2003 at 21:14:07 Pacific
OS: Windows XP
CPU/Ram: Pentium III
Comment:

How can I have Word or Excel automatically calcluate the sum of time values provided in this format?
08:00 AM to 4PM (Monday through Friday) Saturday 12:00 to 4:00 PM
I need total hours calculated automatically with one of these applications. I looked at the VB functions in word and found nothing. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Dr. Nick
Date: October 25, 2003 at 01:53:10 Pacific
Reply:

I looked in Excel, and it supports time formats, but I'm not sure if it can do exactly what you want, because I'm not sure what you're asking.

The sum of two times... how do you add 8:00AM to 3:00PM? Do you mean the time between them and some other set of values? For example, do you want to add the difference of two sets of times? ie: 8:00AM to 12:00PM + 3:00PM to 4:00PM = 5 hours. Is that what you mean?

If you're going to do this in Excel, then there really isn't a limit on what you can do. It's built in functions allow you to take cell values apart and manipulate them in so many ways that you shouldn't even need to use VBA unless you want/have to.


0

Response Number 2
Name: PJD
Date: October 27, 2003 at 21:09:17 Pacific
Reply:

Sorry for not being clear. Sample data that I want to add for a total sum:
Mon 0800 0200
Tues 0800 0230
Wed 0800 0200
Sat 0745 0445
Total Hours xxx

I need the sum of the total hours of all the rows. Also, the hours will NOT be listed in military format so 3:00PM =3:00PM and not 15:00 hours. Only interested in hour and minute totals. Thanks.


0

Response Number 3
Name: davour
Date: October 31, 2003 at 05:52:19 Pacific
Reply:

The formating is done by edditing the format of the cell your working with.

There is an inbuilt function in excell called Average - =AVERAGE(A1:A10) would run a total of all values in A1, A2, A3 etc to A10 and then divide by the number of cells in the formula - try that


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: MIlitary time calculations

Batch to rename file to incl military time www.computing.net/answers/programming/batch-to-rename-file-to-incl-military-time/20240.html

Access 2000 Date/Time help www.computing.net/answers/programming/access-2000-datetime-help/2783.html

Time calculation question www.computing.net/answers/programming/time-calculation-question/15175.html