Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Taking 1600-2400 and Converting to Time in different cells

Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Taking 1600-2400 and Converting to Time in different cells

Hi

Excel stores times as fractions of a day (24 hours) so use
=(C1-B1)*24

--

Regards
Roger Govier

"gkarasiewicz" wrote in message
...
Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Taking 1600-2400 and Converting to Time in different cells

=--(LEFT(A1,2)&":"&MID(A1,3,2))

=--(MID(A1,6,2)&":"&RIGHT(A1,2))

and

=(C1-B10*24

--
---
HTH

Bob


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



"gkarasiewicz" wrote in message
...
Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 284
Default Taking 1600-2400 and Converting to Time in different cells

gkarasiewicz

A1 16:00
B1 24:00
C1 =(B1-A1)*24
C1=8.00 (formate as Number)

Because excel stores time as a parts of a day you need to multiply by 24 to
return your answer in hours, otherwise you will have .3333 of a day.

Mike Rogers

"gkarasiewicz" wrote:

Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Taking 1600-2400 and Converting to Time in different cells

Assuming times before 1200 are shown with a leading 0...

A1: '1600-2400
B1: =TIME(LEFT(A1,2),MID(A1,3,2),0)
C1: =TIME(MID(A1,6,2),RIGHT(A1,2),0)
D1: =24*MOD(C1-B1,1)

Format D1 as General

Rick


"gkarasiewicz" wrote in message ...
Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default Taking 1600-2400 and Converting to Time in different cells

Try this formula in B1

=TEXT(LEFT(A1,4),"00\:00")+0

and in C1

=TEXT(RIGHT(A1,4),"00\:00")+0

format both of these cells as hh:mm and then for total hours in D1

=(C1-B1+(B1C1))*24

"Rick Rothstein (MVP - VB)" wrote:

Assuming times before 1200 are shown with a leading 0...

A1: '1600-2400
B1: =TIME(LEFT(A1,2),MID(A1,3,2),0)
C1: =TIME(MID(A1,6,2),RIGHT(A1,2),0)
D1: =24*MOD(C1-B1,1)

Format D1 as General

Rick


"gkarasiewicz" wrote in message ...
Okay here is my issue.

I have the 1600-2400 in A1

now in B1 I want 1600(Start Time) to be a time value

And in C1 i want 2400(End Time) to be a time value

Then in D1 i want to find out the total hours, in this case 8


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
Taking long time to save file to sub folder Bill A Excel Discussion (Misc queries) 3 July 19th 07 08:30 PM
Excel Taking Long TIme to Start Sanford Lefkowitz Excel Discussion (Misc queries) 2 June 1st 07 05:35 PM
Row/Column Delete taking longer time Ananth Excel Discussion (Misc queries) 2 May 11th 07 06:00 PM
time format not taking new entry Liz McLean Excel Discussion (Misc queries) 4 April 23rd 07 09:34 PM
Taking data from another worksheet and converting Annerobbo Excel Worksheet Functions 2 November 9th 05 01:41 PM


All times are GMT +1. The time now is 12:54 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"