ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   time (https://www.excelbanter.com/excel-worksheet-functions/148959-time.html)

bob

time
 
I am trying to subtract a beginning time from an ending time. If a3 is the
beginning and a4 is the ending, how should I set up those celsl and what
formula should I use to get the answer I would also like to total the total
time column. . I would prefer not to use military time if at all possible
since it would confuse the person who is inputting the times.
thanks in advance
bob




Mike H

time
 
Bob,

Simply subtract them to get the difference but always later time - earlier
time

=B1-A1

The time format is irrelevant because that's just how you see it, the
underlying vlaue of the time doesn't alter.

Mike

"bob" wrote:

I am trying to subtract a beginning time from an ending time. If a3 is the
beginning and a4 is the ending, how should I set up those celsl and what
formula should I use to get the answer I would also like to total the total
time column. . I would prefer not to use military time if at all possible
since it would confuse the person who is inputting the times.
thanks in advance
bob





Mike H

time
 
Bob,

I should have added it gets slightly more complicated for time before/after
midnight so a formula that copes with both is:-

=(B1-A1+(B1<A1))*24

a1= start time
b1 = end time

"bob" wrote:

I am trying to subtract a beginning time from an ending time. If a3 is the
beginning and a4 is the ending, how should I set up those celsl and what
formula should I use to get the answer I would also like to total the total
time column. . I would prefer not to use military time if at all possible
since it would confuse the person who is inputting the times.
thanks in advance
bob





Bob Phillips

time
 
=Mod(B1-A1,1)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"bob" wrote in message
...
I am trying to subtract a beginning time from an ending time. If a3 is the
beginning and a4 is the ending, how should I set up those celsl and what
formula should I use to get the answer I would also like to total the
total
time column. . I would prefer not to use military time if at all possible
since it would confuse the person who is inputting the times.
thanks in advance
bob






bob

time
 
Thanks
bob


"bob" wrote in message
...
I am trying to subtract a beginning time from an ending time. If a3 is the
beginning and a4 is the ending, how should I set up those celsl and what
formula should I use to get the answer I would also like to total the
total
time column. . I would prefer not to use military time if at all possible
since it would confuse the person who is inputting the times.
thanks in advance
bob







All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com