If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Changing time hh:mm:ss field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-08, 05:58
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 127
Changing time hh:mm:ss field

I’m currently working on time (hh:mm:ss) field.

I currently have 3 fields: -

Time Out (populated)
Time In (populated)
Total Time (empty)

The Total Time field is worked out by Time Out less (minus) Time In.

=SUM(AZ2-AW2)

I’ve noticed that when the time goes over the 24hr (12pm) I get an error, so I use the following

=SUM(AZ2-AW2)+1

What I need is to show it in hours – i.e. “04:15:00” should be shown as 4.25 hours

Is this possible? And how?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 07-08-08, 09:12
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Quote:
Originally Posted by akhlaq768
I’m currently working on time (hh:mm:ss) field.

I currently have 3 fields: -

Time Out (populated)
Time In (populated)
Total Time (empty)

The Total Time field is worked out by Time Out less (minus) Time In.

=SUM(AZ2-AW2)

I’ve noticed that when the time goes over the 24hr (12pm) I get an error, so I use the following

=SUM(AZ2-AW2)+1

What I need is to show it in hours – i.e. “04:15:00” should be shown as 4.25 hours

Is this possible? And how?

Thanks in advance
Hi

On the basis that if AZ is always the next day if it is before AW (ie not the day after or day before !?) then try this

=(AZ2-AW2+IF(AZ2<AW2,1,0))*24

The cell with this formula should be formatted as a number (2 dec places)

HTH


MTB
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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