Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Making a cell change time to hours

What I'm trying to do is take a cell with the time at 13:30 and then what I
need to do in the next cell to the right is show no more then 8 hours, then
the next cell to the right of that must show the overage which would be 5.5
hours. If there is any help please let me know . Here is what I'm trying to
do for an example.

D5 is 13:30, E5 would be 8 then F5 would be 5.5 If time was less then 8
hour it would be D5 7, E5 would be 7 and F5 would be 0.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Making a cell change time to hours

hi, Dennis !

What I'm trying to do is take a cell with the time at 13:30 and then
what I need to do in the next cell to the right is show no more then 8 hours
then the next cell to the right of that must show the overage which would be 5.5 hours.
If there is any help please let me know . Here is what I'm trying to do for an example.

D5 is 13:30, E5 would be 8 then F5 would be 5.5
If time was less then 8 hour it would be D5 7, E5 would be 7 and F5 would be 0.


[E5] =min(d5,8/24)
[F5] = d5-e5

hth,
hector.

p.s. you could review your previous post (yesterday) :)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Making a cell change time to hours

hi (again), Dennis !

other approach, if you don't want to see time format in the result cells..

[E5] =min(hour(d5),8)
[F5] =d5*24-e5

probably F5 needs to be (re)formatted

hth,
hector.

__ OP __
What I'm trying to do is take a cell with the time at 13:30 and then
what I need to do in the next cell to the right is show no more then 8 hours
then the next cell to the right of that must show the overage which would be 5.5 hours.
If there is any help please let me know . Here is what I'm trying to do for an example.

D5 is 13:30, E5 would be 8 then F5 would be 5.5
If time was less then 8 hour it would be D5 7, E5 would be 7 and F5 would be 0.


[E5] =min(d5,8/24)
[F5] = d5-e5



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
How do I add 24 hours to a date and time value formated cell? kknight79558 Excel Discussion (Misc queries) 4 August 20th 07 07:20 PM
Change time h:mm to a decimal number based on hours Snort5525 Excel Worksheet Functions 6 May 31st 07 07:44 PM
making copied cells change with change in original cell Jennifer Mcdermeit Excel Worksheet Functions 2 July 20th 06 04:58 PM
How can I change time format to decimal without losing hours? Bushman Excel Discussion (Misc queries) 2 July 16th 06 04:31 PM
Making one cell change with each spreadsheet use? JM Excel Discussion (Misc queries) 1 February 24th 06 06:29 PM


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

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

About Us

"It's about Microsoft Excel"