Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 06:58
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 111
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, 10:12
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 586
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

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