Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Subtracting a duration from a time to calculate a time.

I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Subtracting a duration from a time to calculate a time.

If they are just times:

=IF(B2A2,A2+1-B2,A2-B2)

If they are date and times formatted for time, then use

=A2-B2

In either case, format for time AM/PM.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Subtracting a duration from a time to calculate a time.

Worked Perfectly! Thanks soo much.

"Bernie Deitrick" wrote:

If they are just times:

=IF(B2A2,A2+1-B2,A2-B2)

If they are date and times formatted for time, then use

=A2-B2

In either case, format for time AM/PM.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Subtracting a duration from a time to calculate a time.

So now I would like to see if I can take this formula one step further.
I now have it set where the formula is just like you said, but I changed the
format.

Time - Duration = Time

Format is now

10/2/08 7:51 AM 14:01 10/1/08 5:50 PM

Now I would like to add days to the Duration.

like this? 02:14:01 where the format is: dd:[hh]:mm

is that posible? or would I need to calculate (# of days * 24) + [hh]

I don't know if I am being clear.

"Bernie Deitrick" wrote:

If they are just times:

=IF(B2A2,A2+1-B2,A2-B2)

If they are date and times formatted for time, then use

=A2-B2

In either case, format for time AM/PM.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Subtracting a duration from a time to calculate a time.

You're very clear.

One option would be to use a separate column for the integer number of days:

Time Days Hours New Time


and use the formula

=A2-B2-C2

in cell D2.

Another would be to use the entry

Days + hrs/24 +minutes/1440

in your current time duration cell.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
So now I would like to see if I can take this formula one step further.
I now have it set where the formula is just like you said, but I changed the
format.

Time - Duration = Time

Format is now

10/2/08 7:51 AM 14:01 10/1/08 5:50 PM

Now I would like to add days to the Duration.

like this? 02:14:01 where the format is: dd:[hh]:mm

is that posible? or would I need to calculate (# of days * 24) + [hh]

I don't know if I am being clear.

"Bernie Deitrick" wrote:

If they are just times:

=IF(B2A2,A2+1-B2,A2-B2)

If they are date and times formatted for time, then use

=A2-B2

In either case, format for time AM/PM.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Subtracting a duration from a time to calculate a time.

I don't know why I couldn't figure that out on my own. Worked perfectly yet
again!
Thanks a bunch.

"Bernie Deitrick" wrote:

You're very clear.

One option would be to use a separate column for the integer number of days:

Time Days Hours New Time


and use the formula

=A2-B2-C2

in cell D2.

Another would be to use the entry

Days + hrs/24 +minutes/1440

in your current time duration cell.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
So now I would like to see if I can take this formula one step further.
I now have it set where the formula is just like you said, but I changed the
format.

Time - Duration = Time

Format is now

10/2/08 7:51 AM 14:01 10/1/08 5:50 PM

Now I would like to add days to the Duration.

like this? 02:14:01 where the format is: dd:[hh]:mm

is that posible? or would I need to calculate (# of days * 24) + [hh]

I don't know if I am being clear.

"Bernie Deitrick" wrote:

If they are just times:

=IF(B2A2,A2+1-B2,A2-B2)

If they are date and times formatted for time, then use

=A2-B2

In either case, format for time AM/PM.


HTH,
Bernie
MS Excel MVP


"SRadmin" wrote in message
...
I need a formula that calculates the like this:

Time - Duration = Time

Formated to look like this

8:10 AM 22:17 9:53 AM

where the duration is [hh]:mm (I think)

so I need to know how to format the cells and the formula.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate the duration between the end time and start time of anot Rusty Excel Worksheet Functions 4 May 27th 08 06:28 AM
Subtracting Dates to get total time work time excluding weekends Jon Ratzel[_2_] Excel Discussion (Misc queries) 2 January 31st 08 10:36 PM
How do I add a duration time value and a clock time value? sueb262 Excel Worksheet Functions 3 July 16th 06 10:45 PM
How can I calculate a value using time duration in mins & secs michaeljohnking Excel Worksheet Functions 3 February 16th 06 02:36 PM
Can't stop time duration [hh]:mm:ss converting to time of day Jack Cutrone Excel Discussion (Misc queries) 7 December 27th 04 11:23 PM


All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"